Prev: 57856 Up: Map Next: 58368
58112: Room 35: Master Bedroom (teleport: 1269)
Used by the routine at 35090.
master_bedroom
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.
58112 DEFB 170,170,170,170,170,170,170,170 Room layout
58120 DEFB 160,0,0,10,0,0,0,0
58128 DEFB 160,0,0,10,0,0,0,0
58136 DEFB 160,0,0,10,0,0,0,0
58144 DEFB 160,0,0,10,0,0,0,0
58152 DEFB 160,0,0,10,0,0,0,0
58160 DEFB 160,0,0,10,0,0,0,0
58168 DEFB 160,0,0,10,0,0,0,0
58176 DEFB 160,0,0,10,0,0,0,0
58184 DEFB 160,0,0,10,0,0,0,0
58192 DEFB 160,0,0,10,0,0,0,0
58200 DEFB 172,0,0,0,0,0,0,0
58208 DEFB 160,0,0,0,0,0,0,0
58216 DEFB 149,85,85,85,64,0,0,0
58224 DEFB 170,170,170,170,160,0,0,0
58232 DEFB 170,170,170,170,169,85,85,85
The next 32 bytes are copied to 32896 and specify the room name.
58240 DEFM " Master Bedroom " 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.
background35 floor35 wall35 nasty35 ramp35 conveyor35
58272 DEFB 0,0,0,0,0,0,0,0,0 Background
58281 DEFB 6,255,107,181,0,173,0,74,0 Floor
58290 DEFB 51,0,81,251,81,0,170,191,170 Wall
58299 DEFB 71,0,0,0,0,124,254,127,62 Nasty
58308 DEFB 7,192,64,176,0,172,0,83,0 Ramp
58317 DEFB 41,85,85,85,85,81,95,64,170 Conveyor
The next four bytes are copied to 32982 and specify the direction, location and length of the conveyor.
58326 DEFB 1 Direction (right)
58327 DEFW 24450 Location in the attribute buffer at 24064: (12,2)
58329 DEFB 4 Length
The next four bytes are copied to 32986 and specify the direction, location and length of the ramp.
58330 DEFB 0 Direction (up to the left)
58331 DEFW 24530 Location in the attribute buffer at 24064: (14,18)
58333 DEFB 2 Length
The next byte is copied to 32990 and specifies the border colour.
58334 DEFB 1 Border colour
The next two bytes are copied to 32991, but are not used.
58335 DEFB 0,0 Unused
The next eight bytes are copied to 32993 and define the item graphic.
item35
58337 DEFB 0,0,0,0,0,0,0,0 Item graphic (unused)
The next four bytes are copied to 33001 and specify the rooms to the left, to the right, above and below.
58345 DEFB 36 Room to the left (A bit of tree)
58346 DEFB 34 Room to the right (Top Landing)
58347 DEFB 41 Room above (The Attic)
58348 DEFB 29 Room below (The Nightmare Room)
The next three bytes are copied to 33005, but are not used.
58349 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.
58352 DEFB 255,0 Terminator (41976)
58354 DEFB 0,0 Nothing (40960)
58356 DEFB 0,0 Nothing (40960)
58358 DEFB 0,0 Nothing (40960)
58360 DEFB 0,0 Nothing (40960)
58362 DEFB 0,0 Nothing (40960)
58364 DEFB 0,0 Nothing (40960)
58366 DEFB 0,0 Nothing (40960)
Prev: 57856 Up: Map Next: 58368