Prev: 62720 Up: Map Next: 63232
62976: Room 54: West  Wing (teleport: 23569)
Used by the routine at 35068.
west__wing
The first 128 bytes 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
62976 DEFB 0,160,0,0,0,0,0,0 Room layout
62984 DEFB 0,160,0,0,0,0,0,0
62992 DEFB 0,160,0,0,0,0,0,0
63000 DEFB 85,160,0,0,0,0,0,0
63008 DEFB 0,160,0,0,0,0,0,0
63016 DEFB 0,160,0,0,0,0,0,0
63024 DEFB 0,0,0,0,0,0,0,0
63032 DEFB 0,0,0,0,0,0,0,0
63040 DEFB 0,0,0,0,0,0,0,0
63048 DEFB 0,0,0,0,0,0,0,0
63056 DEFB 0,0,0,0,0,0,0,0
63064 DEFB 0,0,0,0,0,0,0,0
63072 DEFB 85,85,85,80,0,85,85,85
63080 DEFB 0,0,0,0,2,170,170,170
63088 DEFB 0,0,0,0,10,170,170,170
63096 DEFB 0,0,0,0,42,170,170,170
The next 32 bytes contain the room name.
63104 DEFM " West Wing " Room name
The next 54 bytes contain the attributes and graphic data for the tiles used to build the room.
background54 floor54 wall54 nasty54 ramp54 conveyor54
63136 DEFB 0,0,0,0,0,0,0,0,0 Background
63145 DEFB 65,249,255,63,213,170,21,74,132 Floor
63154 DEFB 39,172,174,1,173,173,2,172,232 Wall
63163 DEFB 255,0,0,0,0,0,0,0,0 Nasty (unused)
63172 DEFB 7,3,3,12,12,48,48,192,192 Ramp
63181 DEFB 255,0,0,0,0,0,0,0,0 Conveyor (unused)
The next 8 bytes define the direction, location and length of the conveyor and ramp.
63190 DEFB 0,0,0,0 Conveyor direction (left), location (x=0, y=0) and length (0)
63194 DEFB 1,240,95,16 Ramp direction (right), location (x=16, y=15) and length (16)
The next byte specifies the border colour.
63198 DEFB 2 Border colour
63199 DEFB 0,0 Unused
The next 8 bytes define the item graphic.
item54
63201 DEFB 0,0,0,0,0,0,0,0 Item graphic (unused)
The next 4 bytes specify the rooms to the left, to the right, above and below.
63209 DEFB 55 Room to the left (West Bedroom)
63210 DEFB 31 Room to the right (Swimming Pool)
63211 DEFB 56 Room above (West Wing Roof)
63212 DEFB 52 Room below (Back Stairway)
63213 DEFB 0,0,0 Unused
The next 8 pairs of bytes specify the entities (ropes, arrows, guardians) in this room. The first byte in each pair identifies one of the entity definitions at 40960. The meaning of the second byte depends on the entity type: it determines the base sprite index and x-coordinate of a guardian, the y-coordinate of an arrow, or the x-coordinate of the top of a rope.
63216 DEFB 97,14 Guardian no. 97 (vertical), base sprite 0, x=14 (41736)
63218 DEFB 89,196 Guardian no. 89 (vertical), base sprite 6, x=4 (41672)
63220 DEFB 20,9 Guardian no. 20 (horizontal), base sprite 0, initial x=9 (41120)
63222 DEFB 255,0 Terminator (41976)
63224 DEFB 0,0 Nothing (40960)
63226 DEFB 0,0 Nothing (40960)
63228 DEFB 0,0 Nothing (40960)
63230 DEFB 0,0 Nothing (40960)
Prev: 62720 Up: Map Next: 63232