Prev: 50688 Up: Map Next: 51200
50944: Room 7: Cuckoo's Nest (teleport: 1239)
Used by the routine at 35068.
cuckoo's_nest
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
50944 DEFB 0,0,0,0,0,0,0,0 Room layout
50952 DEFB 0,0,0,0,0,0,0,0
50960 DEFB 0,0,0,0,0,0,0,0
50968 DEFB 0,0,0,0,0,0,0,0
50976 DEFB 0,0,0,0,0,0,0,0
50984 DEFB 0,0,0,0,0,0,0,0
50992 DEFB 0,0,0,0,0,0,0,0
51000 DEFB 0,0,0,0,0,0,0,0
51008 DEFB 0,0,0,0,0,0,0,0
51016 DEFB 0,0,0,0,0,0,0,0
51024 DEFB 0,0,0,0,240,0,0,0
51032 DEFB 0,0,0,1,84,0,0,0
51040 DEFB 0,0,0,5,84,0,0,0
51048 DEFB 170,170,170,169,84,0,0,0
51056 DEFB 0,0,0,5,80,0,0,0
51064 DEFB 0,0,0,0,0,0,0,0
The next 32 bytes contain the room name.
51072 DEFM " Cuckoo's Nest " Room name
The next 54 bytes contain the attributes and graphic data for the tiles used to build the room.
background07 floor07 wall07 nasty07 ramp07 conveyor07
51104 DEFB 0,0,0,0,0,0,0,0,0 Background
51113 DEFB 4,4,3,201,216,48,54,35,1 Floor
51122 DEFB 22,255,96,14,240,3,60,199,56 Wall
51131 DEFB 6,194,52,11,68,136,11,48,8 Nasty
51140 DEFB 7,3,0,12,0,48,0,192,0 Ramp
51149 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.
51158 DEFB 0,0,0,0 Conveyor direction (left), location (x=0, y=0) and length (0)
51162 DEFB 1,141,95,2 Ramp direction (right), location (x=13, y=12) and length (2)
The next byte specifies the border colour.
51166 DEFB 1 Border colour
51167 DEFB 0,0 Unused
The next 8 bytes define the item graphic.
item07
51169 DEFB 32,24,169,219,126,126,60,90 Item graphic
The next 4 bytes specify the rooms to the left, to the right, above and below.
51177 DEFB 8 Room to the left (Inside the MegaTrunk)
51178 DEFB 0 Room to the right (The Off Licence)
51179 DEFB 0 Room above (The Off Licence)
51180 DEFB 2 Room below (Under the MegaTree)
51181 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.
51184 DEFB 39,144 Guardian no. 39 (horizontal), base sprite 4, initial x=16 (41272)
51186 DEFB 111,5 Guardian no. 111 (horizontal), base sprite 0, initial x=5 (41848)
51188 DEFB 60,164 Arrow flying left to right at pixel y-coordinate 82 (41440)
51190 DEFB 255,0 Terminator (41976)
51192 DEFB 0,0 Nothing (40960)
51194 DEFB 0,0 Nothing (40960)
51196 DEFB 0,0 Nothing (40960)
51198 DEFB 0,0 Nothing (40960)
Prev: 50688 Up: Map Next: 51200