Prev: 54528 Up: Map Next: 55040
54784: Room 22: To the Kitchens    Main Stairway (teleport: 2359)
Used by the routine at 35068.
to_the_kitchens____main_stairway
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
54784 DEFB 0,0,128,0,0,0,0,0 Room layout
54792 DEFB 0,0,128,0,0,0,0,0
54800 DEFB 0,0,128,0,0,0,0,0
54808 DEFB 0,0,0,0,0,0,3,0
54816 DEFB 0,0,0,0,0,0,0,0
54824 DEFB 0,1,149,85,85,80,0,85
54832 DEFB 0,0,128,0,0,0,0,0
54840 DEFB 0,0,128,0,0,0,0,0
54848 DEFB 165,85,133,0,0,0,0,0
54856 DEFB 160,0,128,0,0,0,85,64
54864 DEFB 160,0,128,0,1,64,0,0
54872 DEFB 0,0,0,0,0,0,0,0
54880 DEFB 0,0,0,0,0,0,0,0
54888 DEFB 0,0,0,0,0,0,0,0
54896 DEFB 170,170,170,170,170,170,170,170
54904 DEFB 170,170,170,170,170,170,170,170
The next 32 bytes contain the room name.
54912 DEFM "To the Kitchens Main Stairway" Room name
The next 54 bytes contain the attributes and graphic data for the tiles used to build the room.
background22 floor22 wall22 nasty22 ramp22 conveyor22
54944 DEFB 8,0,0,0,0,0,0,0,0 Background
54953 DEFB 13,255,255,0,255,0,0,0,0 Floor
54962 DEFB 58,0,21,191,21,0,81,251,81 Wall
54971 DEFB 77,24,90,189,25,126,153,36,36 Nasty
54980 DEFB 15,192,128,48,32,12,8,3,2 Ramp
54989 DEFB 107,240,170,120,255,170,85,170,85 Conveyor
The next 8 bytes define the direction, location and length of the conveyor and ramp.
54998 DEFB 0,14,95,2 Conveyor direction (left), location (x=14, y=8) and length (2)
55002 DEFB 0,127,95,12 Ramp direction (left), location (x=31, y=11) and length (12)
The next byte specifies the border colour.
55006 DEFB 4 Border colour
55007 DEFB 0,0 Unused
The next 8 bytes define the item graphic.
item22
55009 DEFB 64,160,240,248,252,122,37,2 Item graphic
The next 4 bytes specify the rooms to the left, to the right, above and below.
55017 DEFB 23 Room to the left (The Kitchen)
55018 DEFB 21 Room to the right (Ballroom West)
55019 DEFB 28 Room above (First Landing)
55020 DEFB 0 Room below (The Off Licence)
55021 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.
55024 DEFB 90,4 Guardian no. 90 (horizontal), base sprite 0, initial x=4 (41680)
55026 DEFB 91,16 Guardian no. 91 (horizontal), base sprite 0, initial x=16 (41688)
55028 DEFB 92,150 Guardian no. 92 (horizontal), base sprite 4, initial x=22 (41696)
55030 DEFB 93,4 Guardian no. 93 (horizontal), base sprite 0, initial x=4 (41704)
55032 DEFB 94,150 Guardian no. 94 (horizontal), base sprite 4, initial x=22 (41712)
55034 DEFB 95,11 Guardian no. 95 (horizontal), base sprite 0, initial x=11 (41720)
55036 DEFB 255,0 Terminator (41976)
55038 DEFB 0,0 Nothing (40960)
Prev: 54528 Up: Map Next: 55040