Ten outlines for 149 rooms
Every room in the castle is one of these ten shapes in one of six colours. A room's own entry in ROOM_TABLE is just those two bytes, and the shape number selects the geometry below -- which is what lets 149 rooms cost barely more than 300 bytes between them. Each outline is a list of points and a list of lines between them, drawn by DRAW_OUTLINE. The pictures are the game's own: a room number goes into $EA91, the redraw at $9147 runs, and the 24 by 24 cells of the play area are captured with the status panel left out. Shapes $00, $03 and $04 share the edge list at $A9EF -- the same topology over a different set of points, which is how the wide and tall variants come for free. Shapes $05 and $08 share the edge list at $ABE9 -- the same topology over a different set of points, which is how the wide and tall variants come for free. Shapes $09 and $0A share the edge list at $BD7E -- the same topology over a different set of points, which is how the wide and tall variants come for free.
$00 — Square hall
room shape $00
Rooms with this outline55 of 151
Player may walk from centre56 across, 56 down
Vertex table$A9DF, 8 points
Edge list$A9EF, 12 lines
Used by rooms $00, $09, $0D, $13, $17, $1B, $27, $29, $2B, $2D, $56, $57, $58, $59, $5A, $5B, $5C, $5D, $5E, $5F, $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $6A, $6B, $6C, $6D, $6E, $70, $75, $76, $78, $7A, $7C, $7E, $7F, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89, $8A, $95. Points: (4,187), (4,4), (187,4), (187,187), (31,160), (31,31), (160,31), (160,160).
$01 — Cave
room shape $01
Rooms with this outline31 of 151
Player may walk from centre40 across, 40 down
Vertex table$AA04, 58 points
Edge list$AA78, 71 lines
Used by rooms $1D, $30, $33, $35, $38, $39, $3A, $3B, $3C, $3D, $3E, $40, $41, $43, $45, $46, $48, $4B, $4C, $4E, $50, $53, $54, $55, $74, $8F, $90, $91, $92, $93, $94. Drawn from 58 points, too many to list here.
$02 — Octagonal hall
room shape $02
Rooms with this outline8 of 151
Player may walk from centre56 across, 56 down
Vertex table$AB34, 16 points
Edge list$AB54, 24 lines
Used by rooms $01, $03, $05, $07, $1F, $21, $23, $25. Points: (2,163), (2,28), (28,2), (163,2), (189,28), (189,163), (163,189), (28,189), (48,160), (31,143), (31,48), (48,31), (143,31), (160,48), (160,143), (143,160).
$03 — Wide hall
room shape $03
Rooms with this outline16 of 151
Player may walk from centre56 across, 24 down
Vertex table$AB7D, 8 points
Edge list$A9EF, 12 lines
Used by rooms $02, $06, $0A, $0B, $0C, $14, $15, $16, $19, $20, $24, $2A, $2E, $73, $77, $7B. Points: (3,156), (3,35), (188,35), (188,156), (31,128), (31,63), (160,63), (160,128).
$04 — Tall hall
room shape $04
Rooms with this outline18 of 151
Player may walk from centre24 across, 56 down
Vertex table$AB8D, 8 points
Edge list$A9EF, 12 lines
Used by rooms $04, $08, $0E, $0F, $10, $11, $12, $18, $1E, $22, $28, $2C, $6F, $79, $7D, $8B, $8C, $8D. Points: (35,3), (156,3), (156,188), (35,188), (63,31), (128,31), (128,160), (63,160).
$05 — Staircase, head-on
room shape $05
Rooms with this outline5 of 151
Player may walk from centre16 across, 48 down
Vertex table$AC4A, 38 points
Edge list$ABE9, 30 lines
Used by rooms $1A, $26, $2F, $71, $72. Drawn from 38 points, too many to list here.
$08 — Staircase, side-on
room shape $08
Rooms with this outline1 of 151
Player may walk from centre48 across, 16 down
Vertex table$ACE2, 38 points
Edge list$ABE9, 30 lines
Used by rooms $1C. Drawn from 38 points, too many to list here.
$09 — Cavern, wide
room shape $09
Rooms with this outline8 of 151
Player may walk from centre48 across, 24 down
Vertex table$BED0, 62 points
Edge list$BD7E, 89 lines
Used by rooms $36, $37, $3F, $44, $47, $4A, $4F, $52. Drawn from 62 points, too many to list here.
$0A — Cavern, tall
room shape $0A
Rooms with this outline7 of 151
Player may walk from centre24 across, 48 down
Vertex table$BE54, 62 points
Edge list$BD7E, 89 lines
Used by rooms $31, $32, $34, $42, $49, $4D, $51. Drawn from 62 points, too many to list here.
$0B — Passage
room shape $0B
Rooms with this outline1 of 151
Player may walk from centre56 across, 56 down
Vertex table$A9D0, 4 points
Edge list$A9D8, 2 lines
Used by rooms $8E. Points: (4,191), (4,0), (31,191), (31,0).
$0C — Trapdoor fall
room shape $0C
Rooms with this outline1 of 151
Player may walk from centre56 across, 56 down
Vertex table$97A9, 48 points
Edge list$9809, 48 lines
Used by rooms $96. Drawn from 48 points, too many to list here.