Prev: 63488 Up: Map Next: 64000
63744: Room 57: Above the West Bedroom (teleport: 14569)
Used by the routine at 35068.
above_the_west_bedroom
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
63744 DEFB 0,0,0,0,0,0,0,0 Room layout
63752 DEFB 0,0,0,0,0,0,0,0
63760 DEFB 0,0,0,0,0,0,0,0
63768 DEFB 0,0,0,0,0,0,0,0
63776 DEFB 0,0,0,0,0,0,0,0
63784 DEFB 0,0,0,0,0,0,0,0
63792 DEFB 0,0,0,0,0,0,21,85
63800 DEFB 0,0,0,0,0,0,208,0
63808 DEFB 0,0,0,0,0,3,16,0
63816 DEFB 0,0,0,0,0,12,16,0
63824 DEFB 0,0,0,0,0,48,16,0
63832 DEFB 0,0,0,0,1,85,85,85
63840 DEFB 0,0,0,0,3,0,0,0
63848 DEFB 0,0,4,0,12,0,0,0
63856 DEFB 0,0,0,0,160,0,0,0
63864 DEFB 0,0,16,0,160,85,85,0
The next 32 bytes contain the room name.
63872 DEFM " Above the West Bedroom " Room name
The next 54 bytes contain the attributes and graphic data for the tiles used to build the room.
background57 floor57 wall57 nasty57 ramp57 conveyor57
63904 DEFB 0,0,0,0,0,0,0,0,0 Background
63913 DEFB 4,247,170,85,239,0,0,0,0 Floor
63922 DEFB 35,170,85,170,85,170,85,170,85 Wall
63931 DEFB 6,48,96,192,128,0,0,0,0 Nasty
63940 DEFB 7,1,0,6,9,19,6,108,152 Ramp
63949 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.
63958 DEFB 0,0,0,0 Conveyor direction (left), location (x=0, y=0) and length (0)
63962 DEFB 1,177,95,8 Ramp direction (right), location (x=17, y=13) and length (8)
The next byte specifies the border colour.
63966 DEFB 2 Border colour
63967 DEFB 0,0 Unused
The next 8 bytes define the item graphic.
item57
63969 DEFB 8,16,32,33,18,172,64,32 Item graphic
The next 4 bytes specify the rooms to the left, to the right, above and below.
63977 DEFB 0 Room to the left (The Off Licence)
63978 DEFB 56 Room to the right (West Wing Roof)
63979 DEFB 0 Room above (The Off Licence)
63980 DEFB 55 Room below (West Bedroom)
63981 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.
63984 DEFB 7,203 Guardian no. 7 (vertical), base sprite 6, x=11 (41016)
63986 DEFB 51,78 Guardian no. 51 (vertical), base sprite 2, x=14 (41368)
63988 DEFB 255,0 Terminator (41976)
63990 DEFB 0,0 Nothing (40960)
63992 DEFB 0,0 Nothing (40960)
63994 DEFB 0,0 Nothing (40960)
63996 DEFB 0,0 Nothing (40960)
63998 DEFB 0,0 Nothing (40960)
Prev: 63488 Up: Map Next: 64000