Prev: 57344 Up: Map Next: 57856
57600: Room 33: The Bathroom (teleport: 169)
Used by the routine at 35068.
the_bathroom
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
57600 DEFB 160,0,0,0,0,0,0,10 Room layout
57608 DEFB 160,0,0,0,0,0,0,10
57616 DEFB 160,0,0,0,0,0,0,10
57624 DEFB 0,0,0,0,0,0,0,10
57632 DEFB 0,0,0,0,0,0,0,10
57640 DEFB 85,85,85,80,37,85,85,90
57648 DEFB 128,0,0,0,32,0,0,10
57656 DEFB 128,0,0,0,32,0,0,10
57664 DEFB 128,0,0,0,32,0,0,10
57672 DEFB 128,0,0,0,32,0,0,10
57680 DEFB 128,0,0,0,32,0,0,10
57688 DEFB 128,0,0,0,32,0,0,10
57696 DEFB 128,0,0,0,32,0,0,10
57704 DEFB 0,5,64,0,0,0,0,10
57712 DEFB 0,0,0,0,0,0,0,10
57720 DEFB 85,85,85,85,85,85,85,90
The next 32 bytes contain the room name.
57728 DEFM " The Bathroom " Room name
The next 54 bytes contain the attributes and graphic data for the tiles used to build the room.
background33 floor33 wall33 nasty33 ramp33 conveyor33
57760 DEFB 0,0,0,0,0,0,0,0,0 Background
57769 DEFB 22,0,64,9,100,146,45,150,255 Floor
57778 DEFB 14,31,170,0,85,248,85,0,170 Wall
57787 DEFB 255,0,0,0,0,0,0,0,0 Nasty (unused)
57796 DEFB 7,3,0,12,0,48,0,192,0 Ramp
57805 DEFB 61,165,0,0,0,0,0,0,255 Conveyor
The next 8 bytes define the direction, location and length of the conveyor and ramp.
57814 DEFB 0,212,95,4 Conveyor direction (left), location (x=20, y=14) and length (4)
57818 DEFB 1,137,95,8 Ramp direction (right), location (x=9, y=12) and length (8)
The next byte specifies the border colour.
57822 DEFB 2 Border colour
57823 DEFB 0,0 Unused
The next 8 bytes define the item graphic.
item33
57825 DEFB 31,4,10,119,135,177,170,10 Item graphic
The next 4 bytes specify the rooms to the left, to the right, above and below.
57833 DEFB 34 Room to the left (Top Landing)
57834 DEFB 32 Room to the right (Halfway up the East Wall)
57835 DEFB 39 Room above (Emergency Generator)
57836 DEFB 27 Room below (The Chapel)
57837 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.
57840 DEFB 59,16 Guardian no. 59 (horizontal), base sprite 0, initial x=16 (41432)
57842 DEFB 255,0 Terminator (41976)
57844 DEFB 0,0 Nothing (40960)
57846 DEFB 0,0 Nothing (40960)
57848 DEFB 0,0 Nothing (40960)
57850 DEFB 0,0 Nothing (40960)
57852 DEFB 0,0 Nothing (40960)
57854 DEFB 0,0 Nothing (40960)
Prev: 57344 Up: Map Next: 57856