This is an attempt to make a game with a room and boundaries. From this we can make maze games, PacMan or arcade games like the wonderful Atic Atac.

The game uses tiles (from an array) to set the room boundaries and doors. 0 is a walkable area and 1 is a wall. 2 is a normal door. Obviously in a game you would not display the numbers but they show how the game works. Click here to have a look