Prev: 60416 Up: Map Next: 60928
60672: Room 45: Under the Drive (teleport: 13469)
Used by the routine at 35068.
under_the_drive
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
60672 DEFB 160,0,0,0,0,0,170,170 Room layout
60680 DEFB 160,0,0,0,0,0,170,170
60688 DEFB 160,0,0,0,0,0,170,170
60696 DEFB 160,0,0,0,0,5,170,170
60704 DEFB 168,0,0,0,0,0,170,170
60712 DEFB 170,0,0,0,16,0,2,170
60720 DEFB 170,128,0,0,0,80,0,170
60728 DEFB 170,160,0,0,0,0,0,10
60736 DEFB 170,168,0,0,80,0,0,0
60744 DEFB 170,170,0,0,0,192,0,0
60752 DEFB 170,170,128,0,0,0,0,0
60760 DEFB 170,170,160,0,0,0,0,0
60768 DEFB 170,170,168,0,0,0,0,0
60776 DEFB 170,170,170,0,0,0,0,0
60784 DEFB 170,170,170,128,48,12,12,0
60792 DEFB 170,170,170,170,170,170,170,170
The next 32 bytes contain the room name.
60800 DEFM " Under the Drive " Room name
The next 54 bytes contain the attributes and graphic data for the tiles used to build the room.
background45 floor45 wall45 nasty45 ramp45 conveyor45
60832 DEFB 0,0,0,0,0,0,0,0,0 Background
60841 DEFB 6,255,255,165,88,36,66,32,0 Floor
60850 DEFB 12,16,42,85,160,16,32,16,8 Wall
60859 DEFB 4,24,24,20,34,34,85,17,40 Nasty
60868 DEFB 7,128,64,160,80,168,84,170,85 Ramp
60877 DEFB 2,224,170,248,0,255,255,102,102 Conveyor
The next 8 bytes define the direction, location and length of the conveyor and ramp.
60886 DEFB 0,82,95,14 Conveyor direction (left), location (x=18, y=10) and length (14)
60890 DEFB 0,205,95,12 Ramp direction (left), location (x=13, y=14) and length (12)
The next byte specifies the border colour.
60894 DEFB 4 Border colour
60895 DEFB 0,0 Unused
The next 8 bytes define the item graphic.
item45
60897 DEFB 129,100,205,15,97,218,51,26 Item graphic (unused)
The next 4 bytes specify the rooms to the left, to the right, above and below.
60905 DEFB 6 Room to the left (Entrance to Hades)
60906 DEFB 46 Room to the right (Tree Root)
60907 DEFB 4 Room above (The Drive)
60908 DEFB 0 Room below (The Off Licence)
60909 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.
60912 DEFB 28,16 Guardian no. 28 (horizontal), base sprite 0, initial x=16 (41184)
60914 DEFB 29,146 Guardian no. 29 (vertical), base sprite 4, x=18 (41192)
60916 DEFB 68,150 Guardian no. 68 (horizontal), base sprite 4, initial x=22 (41504)
60918 DEFB 255,0 Terminator (41976)
60920 DEFB 0,0 Nothing (40960)
60922 DEFB 0,0 Nothing (40960)
60924 DEFB 0,0 Nothing (40960)
60926 DEFB 0,0 Nothing (40960)
Prev: 60416 Up: Map Next: 60928