Prev: 5EFE Up: Map Next: 5F2E
5F00: Viewport slots array (15 slots for active game objects).
Each slot is a 3-byte entry that can hold one game object (enemy, fuel depot, etc.). Iterated by operate_viewport_slots (operate) and check_missile_vs_objects (collision). New objects added via add_object_to_set. See Glossary for terminology.
Byte Contents
0 X position (0-255 pixels), or slot marker
1 Y position (0-255 pixels, increases as object scrolls down)
2 Object definition byte (type, orientation, activation)
Marker Value Meaning
SET_MARKER_EMPTY_SLOT $00 Unused slot (skip during iteration)
SET_MARKER_END_OF_SET $FF End of active slots (reset iterator)
viewport_slots 5F00 DEFB $20,$20,$20
5F03 DEFB $20,$20,$20
5F06 DEFB $20,$20,$20
5F09 DEFB $20,$20,$20
5F0C DEFB $20,$20,$20
5F0F DEFB $20,$20,$20
5F12 DEFB $20,$20,$20
5F15 DEFB $20,$20,$20
5F18 DEFB $20,$20,$20
5F1B DEFB $20,$20,$20
5F1E DEFB $20,$20,$20
5F21 DEFB $20,$20,$20
5F24 DEFB $20,$20,$20
5F27 DEFB $20,$20,$20
5F2A DEFB $20,$20,$20
5F2D DEFB $20
Prev: 5EFE Up: Map Next: 5F2E