Sprite Store
Holds up to ten pictures that a 2D game uses, such as characters, cars or enemies. It also holds a photo or video you add yourself.
Utilities & Storage
Asset stores, saved data, and the core building blocks behind bigger experiences.
Made with this blockInputs
assetName0stringname of asset 0
assetTexture0texturesprite texture 0
assetName1stringname of asset 1
assetTexture1texturetexture of asset 1
assetName2stringname of asset 2
assetTexture2texturetexture of asset 2
assetName3stringname of asset 3
assetTexture3texturetexture of asset 3
assetName4stringname of asset 4
assetTexture4texturetexture of asset 4
assetName5stringname of asset 5
assetTexture5texturetexture of asset 5
assetName6stringname of asset 6
assetTexture6texturetexture of asset 6
assetName7stringname of asset 7
assetTexture7texturetexture of asset 7
assetName8stringname of asset 8
assetTexture8texturetexture of asset 8
assetName9stringname of asset 9
assetTexture9texturetexture of asset 9
Functions
getTextureTextureGet texture by name.
getAllTexturesObjectGet all the textures in this store as a dictionary object { name: texture, ...}
More in Utilities & Storage
- Canvas APIDraws the 2D graphics a game needs, such as a game board, a health bar or puzzle pieces. Ask for a 2D game or a sliding puzzle.
- Core3DBuilds the 3D scene for a game, with objects that move, collide and fall. Ask for a 3D game, for example bowling or a maze you roll a ball through.
- Model StoreHolds up to ten 3D models under names you pick, so other parts of the Lens can find each one. It shows nothing on the screen by itself.
- Persistent StorageSaves small amounts of information on your device, so the Lens remembers it next time you open it. Use it for your settings, your progress or your own best score.
- SortingAdds a game where you drag your friends into roles, for example BFF or Nemesis. Name two to six roles, or sort up to six pictures of your own instead.
- Texture StoreHolds up to ten pictures under names you pick, so other parts of the Lens can find each one. It shows nothing on the screen by itself.
