Prev: 59392 Up: Map Next: 59904
59648: Room 41: The Attic (teleport: 1469)
Used by the routine at 35090.
the_attic
The first 128 bytes are copied to 32768 and 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.
59648 DEFB 0,0,0,0,0,0,0,0 Room layout
59656 DEFB 0,0,0,0,0,0,0,0
59664 DEFB 0,0,0,0,0,0,0,0
59672 DEFB 0,0,0,0,0,0,0,0
59680 DEFB 0,0,0,0,0,0,0,0
59688 DEFB 0,192,3,0,0,0,0,0
59696 DEFB 85,149,86,80,0,0,0,0
59704 DEFB 160,0,0,0,0,0,0,0
59712 DEFB 164,0,0,0,5,0,0,5
59720 DEFB 160,0,0,0,0,0,0,0
59728 DEFB 164,0,0,0,0,80,0,0
59736 DEFB 160,0,0,0,0,0,0,0
59744 DEFB 164,0,0,0,0,4,0,0
59752 DEFB 160,0,0,0,0,0,0,0
59760 DEFB 164,3,0,192,192,0,0,0
59768 DEFB 85,101,149,150,85,149,86,89
The next 32 bytes are copied to 32896 and specify the room name.
59776 DEFM " The Attic " Room name
The next 54 bytes are copied to 32928 and contain the attributes and graphic data for the tiles used to build the room.
background41 floor41 wall41 nasty41 ramp41 conveyor41
59808 DEFB 0,0,0,0,0,0,0,0,0 Background
59817 DEFB 22,206,255,0,231,0,127,0,251 Floor
59826 DEFB 30,238,17,108,146,17,201,34,156 Wall
59835 DEFB 68,36,18,68,170,85,170,91,255 Nasty
59844 DEFB 255,0,0,0,0,0,0,0,0 Ramp (unused)
59853 DEFB 66,240,170,60,170,85,170,85,170 Conveyor
The next four bytes are copied to 32982 and specify the direction, location and length of the conveyor.
59862 DEFB 1 Direction (right)
59863 DEFW 24344 Location in the attribute buffer at 24064: (8,24)
59865 DEFB 4 Length
The next four bytes are copied to 32986 and specify the direction, location and length of the ramp.
59866 DEFB 0 Direction (up to the left)
59867 DEFW 0 Location in the attribute buffer at 24064 (unused)
59869 DEFB 0 Length: 0 (there is no ramp in this room)
The next byte is copied to 32990 and specifies the border colour.
59870 DEFB 1 Border colour
The next two bytes are copied to 32991, but are not used.
59871 DEFB 0,0 Unused
The next eight bytes are copied to 32993 and define the item graphic.
item41
59873 DEFB 17,34,51,68,85,102,119,136 Item graphic (unused)
The next four bytes are copied to 33001 and specify the rooms to the left, to the right, above and below.
59881 DEFB 42 Room to the left (Under the Roof)
59882 DEFB 40 Room to the right (Dr Jones will never believe this)
59883 DEFB 0 Room above (The Off Licence)
59884 DEFB 34 Room below (Top Landing)
The next three bytes are copied to 33005, but are not used.
59885 DEFB 0,0,0 Unused
The next eight pairs of bytes are copied to 33008 and specify the entities (ropes, arrows, guardians) in this room.
59888 DEFB 82,4 Guardian no. 82 (vertical), base sprite 0, x=4 (41616)
59890 DEFB 83,6 Guardian no. 83 (vertical), base sprite 0, x=6 (41624)
59892 DEFB 84,8 Guardian no. 84 (vertical), base sprite 0, x=8 (41632)
59894 DEFB 85,10 Guardian no. 85 (vertical), base sprite 0, x=10 (41640)
59896 DEFB 86,12 Guardian no. 86 (vertical), base sprite 0, x=12 (41648)
59898 DEFB 87,78 Guardian no. 87 (vertical), base sprite 2, x=14 (41656)
59900 DEFB 69,213 Arrow flying right to left at pixel y-coordinate 536 (41512)
59902 DEFB 60,146 Arrow flying left to right at pixel y-coordinate 73 (41440)
Prev: 59392 Up: Map Next: 59904