All examples · Physics · As Markdown, for AIs

Bodies on a map

What this example shows

Retro bodies on a map. Nothing here is told about the tiles: the world finds the scene's maps, and every dynamic body is stopped by their walls, stands on their ledges from above, and on a slope does what the old games did: a crate stands where it lands, a ball rolls down.

A belt (push on a tile) carries what stands on it. The coins are tiles with nothing solid about them, only props: { coin: true }: a ball rolling over one is told with onTileEnter, which hands it the tile and its cell, and setTile takes it out of the map. Click to drop a ball or a crate.

Starting
Starting
—