All examples · Sprites and 2D · As Markdown, for AIs

Minimap

What this example shows

createSpriteTexture({ sees: 'world' }) draws the world of its scene once more, through the camera its component asks for, without running it twice: a minimap of the whole level in the corner. The red marker is drawn by the minimap itself and is seen only there, and hide leaves out the far layers by their tag.

Click the minimap and the hero goes there: viewToWorld turns a point on the sprite showing a view into the world it sees.

Click the preview first so it hears the keyboard. ← → walk, Z or ↑ jump.

Starting
Starting
—