Prev: 60251 Up: Map Next: 60290
60276: Data buffer - room co-ordinate data and pointers
60276 DEFB 0 Maroc's (default) vertical (entry) pixel position when he moves to a new room
60277 DEFB 0 Maroc's horizontal (entry) position when he moves to a new room, in half-character/4-pixel steps
60278 DEFB 0 Maroc's vertical (entry) position when he moves to a new room, in pixels, calculated based on the byte stored at 60276
60279 DEFB 0 Offset for scenery graphics address pointers for 'brick' or 'cavern' type levels (table at 38851)
  • Offset = 0 for brick level scenery (room number <84)
  • Offset = 12 for 'cavern' level scenery (room number >=84)
  • Offset = 0 for brick level foreground scenery items (room number <83)
  • Offset = 8 for cavern level foreground scenery items (room number >=83)
60280 DEFB 0 Room item's horizontal position within current room, in half-character (4 pixel) steps
60281 DEFB 0 Room item's vertical position within current room, in pixels, from top of room area
60282 DEFW 0 Address pointer for room data sets stored at 25001
Also used to store for ROM memory address pointer used to generate foreground scenery objects at 50474
60284 DEFB 0 First room data byte from data banks at 25001
60285 DEFB 0 Multi-purpose byte:
  • Used as a counter to compare with first room data byte (25001) which holds the room size
  • Tunnel length - byte 1 of tunnel data set at 26384
60286 DEFB 0 Multi-purpose:
  • Temporary store for room data bytes at 25001
  • Data byte x 4 (used to calculate co-ordinates) subsequently stored here at 49691
  • Counter for number of boundary walls currently on screen in tunnel section
Data relating to doors:
60287 DEFB 0 Door byte:
  • 0 = Back wall door
  • 1 = Right wall door
  • 2 = Left wall door
60288 DEFB 0 Positive/negative offset for door graphic frame (used in routine at 51892)
Indicates number of frames (bits 0-2) and opening/closing direction
60289 DEFB 0 Pre-graphic data byte including calculated number of animation frames needed for door.
Back wall doors have 4 frames, side wall doors have 5.
Calculated at 50091 in door calculation routine.
Prev: 60251 Up: Map Next: 60290