PhysicsTilemap (Greedy Meshing)

A 108×40 procedurally-generated platformer level converted to physics with buildTilemapBody. Greedy meshing reduces hundreds of solid tiles into a handful of rectangles. Procedurally-textured dirt + grass tiles, camera follows the player. Click a tile to toggle solid/empty (rebuilds the body). WASD/Arrows + Space to play. O toggles greedy-rect overlay.

Loading engine…
FPS: — Bodies: — Step: — Drag or tap the canvas to interact. Switch renderer with the 2D / 3D / PixiJS buttons.
GitHub

Engine features used

TilemapGreedy MeshingPlatformerCharacterControllerClickCamera

Related guides

More demos

All Physics demos →