Prev: 58112 Up: Map Next: 58624
58368: Room 36: A bit of tree (teleport: 369)
Used by the routine at 35068.
a_bit_of_tree
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
58368 DEFB 0,0,0,160,0,0,0,3 Room layout
58376 DEFB 0,0,0,160,0,0,0,3
58384 DEFB 0,0,0,160,0,0,0,3
58392 DEFB 0,0,0,160,0,0,0,3
58400 DEFB 0,0,16,160,0,64,0,3
58408 DEFB 0,0,0,160,0,0,0,3
58416 DEFB 0,20,0,160,0,1,64,3
58424 DEFB 0,0,16,160,0,0,0,3
58432 DEFB 0,0,0,160,0,0,0,3
58440 DEFB 0,0,20,160,0,0,64,3
58448 DEFB 85,80,0,165,64,0,0,3
58456 DEFB 0,0,0,160,0,0,1,3
58464 DEFB 0,0,0,160,0,0,64,3
58472 DEFB 0,0,0,160,5,0,0,3
58480 DEFB 0,0,0,160,0,0,0,3
58488 DEFB 0,0,1,164,0,0,0,3
The next 32 bytes contain the room name.
58496 DEFM " A bit of tree " Room name
The next 54 bytes contain the attributes and graphic data for the tiles used to build the room.
background36 floor36 wall36 nasty36 ramp36 conveyor36
58528 DEFB 0,0,0,0,0,0,0,0,0 Background
58537 DEFB 4,173,82,41,0,1,2,0,0 Floor
58546 DEFB 30,214,107,102,219,105,107,217,109 Wall
58555 DEFB 2,21,0,170,85,170,0,21,10 Nasty
58564 DEFB 68,3,8,36,16,64,32,128,128 Ramp
58573 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.
58582 DEFB 0,0,0,0 Conveyor direction (left), location (x=0, y=0) and length (0)
58586 DEFB 1,52,95,2 Ramp direction (right), location (x=20, y=9) and length (2)
The next byte specifies the border colour.
58590 DEFB 5 Border colour
58591 DEFB 0,0 Unused
The next 8 bytes define the item graphic.
item36
58593 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.
58601 DEFB 37 Room to the left (Orangery)
58602 DEFB 35 Room to the right (Master Bedroom)
58603 DEFB 42 Room above (Under the Roof)
58604 DEFB 30 Room below (The Banyan Tree)
58605 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.
58608 DEFB 104,2 Guardian no. 104 (horizontal), base sprite 0, initial x=2 (41792)
58610 DEFB 101,7 Guardian no. 101 (vertical), base sprite 0, x=7 (41768)
58612 DEFB 69,146 Arrow flying right to left at pixel y-coordinate 73 (41512)
58614 DEFB 255,0 Terminator (41976)
58616 DEFB 0,0 Nothing (40960)
58618 DEFB 0,0 Nothing (40960)
58620 DEFB 0,0 Nothing (40960)
58622 DEFB 0,0 Nothing (40960)
Prev: 58112 Up: Map Next: 58624