Prev: 31744 Up: Map Next: 32626
32513: Foreground scenery room items
foreground scenery movement
Foreground scenery objects, set up at 50433. Address pointer to this data held at 60272.
  • The number of foreground scenery objects in any room is calculated from the room's first data byte, indicating its size (25001), divided by 2, then rounded down.
  • The largest room size in the game are rooms 42 and 182 (room size = 16), so up to 8 data sets are stored here
  • 255 marks the end of the scenery objects for the current room
Byte Value
1 0 = Item is off-screen
1 = Item is on-screen
255 = End-of-data
2 Item's horizontal offset remainder (fraction of horizontal position used to calculate new position)
3 Item's horizontal position, in single character/8-pixel steps
4 Item's vertical offset remainder (fraction of vertical position used to calculate new position)
5 Vertical position in pixels, from top of playing area - defaulted to 104 at 50530
6 & 7 Address pointer to scenery object graphic address, e.g. 43610
32513 DEFB 1,80,14,0,114,47,171 Up to 8 foreground object data sets can be stored here
32520 DEFB 1,80,30,0,114,147,171
32527 DEFB 255,32,48,64,113,225,171
32534 DEFB 0,32,64,64,113,91,170
32541 DEFB 255,0,14,192,139,147,171
32548 DEFB 255
The remaining bytes here are the remnants of previous code from the routine that draws the game border at the start of the game.
These bytes can be be overwritten with additional foreground scenery object data.
32549 DEFB 62,26,50,175,139,62,1,50
32557 DEFB 176,139,17,159,130,33,227,64
32565 DEFB 205,243,129,62,1,50,175,139
32573 DEFB 62,1,50,176,139,17,119,131
32581 DEFB 33,201,64,205,243,129,62,1
32589 DEFB 50,175,139,62,1,50,176,139
32597 DEFB 17,127,131,33,208,64,205,243
32605 DEFB 129,62,4,50,175,139,62,1
32613 DEFB 50,176,139,17,135,131,33,212
32621 DEFB 64,205,243,129
32625 DEFB 255
Prev: 31744 Up: Map Next: 32626