Prev: 54272 Up: Map Next: 54784
54528: Room 21: Ballroom West (teleport: 1359)
Used by the routine at 35068.
ballroom_west
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
54528 DEFB 0,0,0,0,0,0,0,10 Room layout
54536 DEFB 0,0,0,0,0,0,0,10
54544 DEFB 0,0,0,0,0,0,0,10
54552 DEFB 0,0,0,0,0,0,0,0
54560 DEFB 0,0,0,0,0,0,0,0
54568 DEFB 85,85,85,85,85,85,85,85
54576 DEFB 0,0,160,0,0,0,0,0
54584 DEFB 0,0,160,0,0,0,0,0
54592 DEFB 0,0,160,0,0,0,85,85
54600 DEFB 0,0,160,0,0,0,0,0
54608 DEFB 0,0,160,0,0,0,0,0
54616 DEFB 0,0,160,0,0,0,0,0
54624 DEFB 0,0,0,0,0,0,0,0
54632 DEFB 0,0,0,0,0,0,0,0
54640 DEFB 85,85,85,85,85,85,85,85
54648 DEFB 170,170,170,170,170,170,170,170
The next 32 bytes contain the room name.
54656 DEFM " Ballroom West " Room name
The next 54 bytes contain the attributes and graphic data for the tiles used to build the room.
background21 floor21 wall21 nasty21 ramp21 conveyor21
54688 DEFB 0,0,0,0,0,0,0,0,0 Background
54697 DEFB 50,170,168,173,175,32,170,85,85 Floor
54706 DEFB 35,17,34,136,17,68,136,34,68 Wall
54715 DEFB 66,40,84,170,84,168,84,20,46 Nasty (unused)
54724 DEFB 7,192,192,48,176,12,12,3,11 Ramp
54733 DEFB 70,255,255,255,170,85,24,24,24 Conveyor
The next 8 bytes define the direction, location and length of the conveyor and ramp.
54742 DEFB 1,176,95,12 Conveyor direction (right), location (x=16, y=13) and length (12)
54746 DEFB 0,163,95,4 Ramp direction (left), location (x=3, y=13) and length (4)
The next byte specifies the border colour.
54750 DEFB 1 Border colour
54751 DEFB 0,0 Unused
The next 8 bytes define the item graphic.
item21
54753 DEFB 4,4,174,174,162,66,66,238 Item graphic
The next 4 bytes specify the rooms to the left, to the right, above and below.
54761 DEFB 22 Room to the left (To the Kitchens    Main Stairway)
54762 DEFB 20 Room to the right (Ballroom East)
54763 DEFB 27 Room above (The Chapel)
54764 DEFB 0 Room below (The Off Licence)
54765 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.
54768 DEFB 33,24 Guardian no. 33 (horizontal), base sprite 0, initial x=24 (41224)
54770 DEFB 40,14 Guardian no. 40 (vertical), base sprite 0, x=14 (41280)
54772 DEFB 42,6 Guardian no. 42 (vertical), base sprite 0, x=6 (41296)
54774 DEFB 255,0 Terminator (41976)
54776 DEFB 0,0 Nothing (40960)
54778 DEFB 0,0 Nothing (40960)
54780 DEFB 0,0 Nothing (40960)
54782 DEFB 0,0 Nothing (40960)
Prev: 54272 Up: Map Next: 54784