# Gameplay rules
-This is the rulebook for all the rpg elements
-
-## Dice
-
-The game rolls 16-sided (d16) dice to decide what happens.
-The outcome of all mechanics is decided by one or more dice rolls.
-
-## Turns
-
-Each unit can move until all of its moves are used up.
-When all moves are used control is handed over to the next unit.
-
-## Initiative
-
-When a unit ends its turn the unit with the next highest initiative is picked.
-A unit may fail to take initiative if a d16 roll fails (initiative < d16). In such a case another unit may be chosen.
-
-If all units fail to take initiative or have used all their moves all moves are reset and the process is restarted.
ldnull bc
ret
+; template maps
+; maps can be loaded directly
+
#include "map_c.s"
#include "map_ce.s"
#include "map_cw.s"
#include "map_be.s"
#include "map_bc.s"
#include "map_bw.s"
+
+; template rooms
+; rooms are template patterns that can be placed
+; on maps
+; the room pattern tiles used depend on the current floor
+; each pattern entry has a specific flag set that is placed in the map
+; room patterns are 6 by 6 areas with the following properties:
+.se 0
+.de ROOM_PAT_UP_LEFT_CORNER, 1
+.de ROOM_PAT_UP_WALL, 1
+.de ROOM_PAT_UP_RIGHT_CORNER, 1
+.de ROOM_PAT_LEFT_WALL, 1
+.de ROOM_PAT_BOTTOM_LEFT_CORNER, 1
+.de ROOM_PAT_BOTTOM_WALL, 1
+.de ROOM_PAT_BOTTOM_RIGHT_CORNER, 1
+.de ROOM_PAT_RIGHT_WALL, 1
+.de ROOM_PAT_FLOOR, 1
+.de ROOM_PAT_DOOR, 1