
so_long: a small 2D game
The map comes from a .ber file of walls, floor, bombs, one exit and one start.
Before the game starts, the map is checked: it must be rectangular, closed by walls, contain exactly one player and one exit and at least one bomb, and a flood fill must reach every bomb and the exit. The demo below runs the same rules, ported to TypeScript, with the game's own sprites and maps.
Scope & impact
Click the board, then W A S D or arrows. Collect every bomb, then the door opens. Esc to leave.