Prev: 63744 Up: Map Next: 64256
64000: Room 58: The Beach (teleport: 24569)
Used by the routine at 35068.
the_beach
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
64000 DEFB 0,0,0,0,0,0,0,0 Room layout
64008 DEFB 0,0,0,0,0,0,0,0
64016 DEFB 0,0,0,0,0,0,0,0
64024 DEFB 0,0,0,0,0,0,0,0
64032 DEFB 0,0,0,0,0,0,0,0
64040 DEFB 0,0,0,0,0,0,0,0
64048 DEFB 0,0,0,0,0,0,0,0
64056 DEFB 0,0,0,0,0,0,0,0
64064 DEFB 0,0,0,0,0,0,170,170
64072 DEFB 0,0,0,0,0,0,170,170
64080 DEFB 170,160,0,0,0,0,170,170
64088 DEFB 0,0,0,0,0,0,170,170
64096 DEFB 0,0,0,0,0,0,170,170
64104 DEFB 0,0,0,0,0,0,170,170
64112 DEFB 0,5,213,117,93,117,170,170
64120 DEFB 0,21,85,85,85,85,170,170
The next 32 bytes contain the room name.
64128 DEFM " The Beach " Room name
The next 54 bytes contain the attributes and graphic data for the tiles used to build the room.
background58 floor58 wall58 nasty58 ramp58 conveyor58
64160 DEFB 13,0,0,0,0,0,0,0,0 Background
64169 DEFB 50,0,0,64,4,0,16,0,1 Floor
64178 DEFB 42,68,0,146,36,128,40,130,80 Wall
64187 DEFB 48,66,129,231,129,90,126,60,66 Nasty
64196 DEFB 14,1,3,7,15,30,55,127,251 Ramp
64205 DEFB 44,78,170,0,64,64,68,170,255 Conveyor
The next 8 bytes define the direction, location and length of the conveyor and ramp.
64214 DEFB 0,224,95,5 Conveyor direction (left), location (x=0, y=15) and length (5)
64218 DEFB 1,197,95,1 Ramp direction (right), location (x=5, y=14) and length (1)
The next byte specifies the border colour.
64222 DEFB 2 Border colour
64223 DEFB 0,0 Unused
The next 8 bytes define the item graphic.
item58
64225 DEFB 4,5,11,11,23,55,111,239 Item graphic
The next 4 bytes specify the rooms to the left, to the right, above and below.
64233 DEFB 59 Room to the left (The Yacht)
64234 DEFB 51 Room to the right (Tool  Shed)
64235 DEFB 58 Room above (The Beach)
64236 DEFB 0 Room below (The Off Licence)
64237 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.
64240 DEFB 1,14 Rope at x=14 (40968)
64242 DEFB 60,84 Arrow flying left to right at pixel y-coordinate 42 (41440)
64244 DEFB 255,0 Terminator (41976)
64246 DEFB 0,0 Nothing (40960)
64248 DEFB 0,0 Nothing (40960)
64250 DEFB 0,0 Nothing (40960)
64252 DEFB 0,0 Nothing (40960)
64254 DEFB 0,0 Nothing (40960)
Prev: 63744 Up: Map Next: 64256