Prev: 55808 Up: Map Next: 56320
56064: Room 27: The Chapel (teleport: 12459)
Used by the routine at 35090.
the_chapel
The first 128 bytes are copied to 32768 and define the room layout. Each bit-pair (bits 7 and 6, 5 and 4, 3 and 2, or 1 and 0 of each byte) determines the type of tile (background, floor, wall or nasty) that will be drawn at the corresponding location.
Input
Output
56064 DEFB 0,0,0,0,0,0,0,10 Room layout
56072 DEFB 0,0,0,0,0,0,0,10
56080 DEFB 0,0,0,0,0,0,0,10
56088 DEFB 0,0,0,0,0,0,0,10
56096 DEFB 0,0,0,0,0,0,0,10
56104 DEFB 0,0,0,0,0,0,0,10
56112 DEFB 0,0,0,0,0,0,0,10
56120 DEFB 0,0,0,0,0,0,128,26
56128 DEFB 0,0,0,0,0,2,128,26
56136 DEFB 0,0,0,0,0,10,128,26
56144 DEFB 0,0,0,0,0,42,128,26
56152 DEFB 0,0,0,0,0,170,128,26
56160 DEFB 0,0,0,0,0,0,0,26
56168 DEFB 0,0,0,0,0,0,0,26
56176 DEFB 170,170,170,170,170,170,160,170
56184 DEFB 170,170,170,170,170,170,160,170
The next 32 bytes are copied to 32896 and specify the room name.
56192 DEFM " The Chapel " Room name
The next 54 bytes are copied to 32928 and contain the attributes and graphic data for the tiles used to build the room.
background27 floor27 wall27 nasty27 ramp27 conveyor27
56224 DEFB 0,0,0,0,0,0,0,0,0 Background
56233 DEFB 13,73,73,73,73,73,73,73,73 Floor
56242 DEFB 22,168,37,0,37,168,64,221,64 Wall
56251 DEFB 66,40,84,170,85,170,40,40,40 Nasty (unused)
56260 DEFB 7,3,0,12,0,48,0,192,0 Ramp
56269 DEFB 7,0,10,189,255,0,170,85,170 Conveyor (unused)
The next four bytes are copied to 32982 and specify the direction, location and length of the conveyor.
56278 DEFB 0 Direction (left)
56279 DEFW 0 Location in the attribute buffer at 24064 (unused)
56281 DEFB 0 Length: 0 (there is no conveyor in this room)
The next four bytes are copied to 32986 and specify the direction, location and length of the ramp.
56282 DEFB 1 Direction (up to the right)
56283 DEFW 24497 Location in the attribute buffer at 24064: (13,17)
56285 DEFB 7 Length
The next byte is copied to 32990 and specifies the border colour.
56286 DEFB 2 Border colour
The next two bytes are copied to 32991, but are not used.
56287 DEFB 0,0 Unused
The next eight bytes are copied to 32993 and define the item graphic.
item27
56289 DEFB 16,48,56,108,198,198,108,16 Item graphic
The next four bytes are copied to 33001 and specify the rooms to the left, to the right, above and below.
56297 DEFB 28 Room to the left (First Landing)
56298 DEFB 26 Room to the right (East Wall Base)
56299 DEFB 33 Room above (The Bathroom)
56300 DEFB 21 Room below (Ballroom West)
The next three bytes are copied to 33005, but are not used.
56301 DEFB 0,0,0 Unused
The next eight pairs of bytes are copied to 33008 and specify the entities (ropes, arrows, guardians) in this room.
56304 DEFB 16,153 Guardian no. 16 (vertical), base sprite 4, x=25 (41088)
56306 DEFB 17,187 Guardian no. 17 (vertical), base sprite 5, x=27 (41096)
56308 DEFB 18,218 Guardian no. 18 (vertical), base sprite 6, x=26 (41104)
56310 DEFB 103,12 Guardian no. 103 (horizontal), base sprite 0, initial x=12 (41784)
56312 DEFB 100,6 Guardian no. 100 (vertical), base sprite 0, x=6 (41760)
56314 DEFB 102,145 Guardian no. 102 (vertical), base sprite 4, x=17 (41776)
56316 DEFB 255,0 Terminator (41976)
56318 DEFB 0,0 Nothing (40960)
Prev: 55808 Up: Map Next: 56320