Prev: 56832 Up: Map Next: 57344
57088: Room 31: Swimming Pool (teleport: 123459)
Used by the routine at 35090.
swimming_pool
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
57088 DEFB 0,0,0,0,0,0,0,0 Room layout
57096 DEFB 0,0,0,0,0,0,0,0
57104 DEFB 0,0,0,0,0,0,0,0
57112 DEFB 0,0,0,0,0,0,0,0
57120 DEFB 0,0,0,0,0,0,0,0
57128 DEFB 0,0,0,0,0,0,0,0
57136 DEFB 0,0,0,0,0,0,0,0
57144 DEFB 0,0,0,0,0,0,0,0
57152 DEFB 0,0,0,0,0,0,0,0
57160 DEFB 0,0,0,0,0,0,0,0
57168 DEFB 0,0,0,0,0,0,0,0
57176 DEFB 0,0,0,0,0,0,0,0
57184 DEFB 170,85,85,85,85,85,84,170
57192 DEFB 170,85,85,85,85,85,82,170
57200 DEFB 170,85,85,85,85,85,74,170
57208 DEFB 170,170,170,170,170,170,170,170
The next 32 bytes are copied to 32896 and specify the room name.
57216 DEFM " Swimming Pool " 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.
background31 floor31 wall31 nasty31 ramp31 conveyor31
57248 DEFB 7,0,0,0,0,0,0,0,0 Background
57257 DEFB 41,0,0,0,0,0,0,0,0 Floor
57266 DEFB 58,68,68,187,68,68,68,187,68 Wall
57275 DEFB 255,0,0,0,0,0,0,0,0 Nasty (unused)
57284 DEFB 47,3,3,15,15,63,63,255,255 Ramp
57293 DEFB 255,0,0,0,0,0,0,0,0 Conveyor (unused)
The next four bytes are copied to 32982 and specify the direction, location and length of the conveyor.
57302 DEFB 0 Direction (left)
57303 DEFW 0 Location in the attribute buffer at 24064 (unused)
57305 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.
57306 DEFB 1 Direction (up to the right)
57307 DEFW 24537 Location in the attribute buffer at 24064: (14,25)
57309 DEFB 3 Length
The next byte is copied to 32990 and specifies the border colour.
57310 DEFB 2 Border colour
The next two bytes are copied to 32991, but are not used.
57311 DEFB 0,0 Unused
The next eight bytes are copied to 32993 and define the item graphic.
item31
57313 DEFB 112,32,32,80,80,136,136,136 Item graphic
The next four bytes are copied to 33001 and specify the rooms to the left, to the right, above and below.
57321 DEFB 54 Room to the left (West  Wing)
57322 DEFB 30 Room to the right (The Banyan Tree)
57323 DEFB 37 Room above (Orangery)
57324 DEFB 0 Room below (The Off Licence)
The next three bytes are copied to 33005, but are not used.
57325 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.
57328 DEFB 78,12 Guardian no. 78 (horizontal), base sprite 0, initial x=12 (41584)
57330 DEFB 1,16 Rope at x=16 (40968)
57332 DEFB 255,0 Terminator (41976)
57334 DEFB 0,0 Nothing (40960)
57336 DEFB 0,0 Nothing (40960)
57338 DEFB 0,0 Nothing (40960)
57340 DEFB 0,0 Nothing (40960)
57342 DEFB 0,0 Nothing (40960)
Prev: 56832 Up: Map Next: 57344