![]() |
The objects lying in the world |
290 things lie at fixed places on the planet, in three tables sorted by map column: a kind byte each (map_object_kinds), a count for each column (map_objects_per_column, with a 97th byte repeating column 0's, 2, for the wrap from column $5F) and two packed position bytes each (map_object_places). Decoded here as spawn_objects_from_list unpacks them: the column from the running count, the map row from bits 0-4 of the second byte, the x in the page from bits 0-1 of the first (its bits 3-4) and bits 5-7 of the second, and the y (the bottom line) as bits 2-7 of the first less one. The counts add up to 290, and every place lies in its page: x 8 to 208 in steps of 8, y 39 to 183 in steps of 4, rows 1 to 28.
Whenever the view crosses into a new cell, load_map_window frees the slots whose things have left the 2 by 2 window and spawn_column_objects brings in the things of the window's two columns and rows, at most four at a time (ground_objects). A kind byte's bits 7 and 6 mark the thing gone for player 1 and player 2 (ship_hits_ground_objects sets one when a refuel pad is used up, beam_hits_ground_object when the special beam destroys one), and mask_world_objects clears them at a new game and the current player's at the end of a planet (planet_secured).
Each kind's byte in object_kind_flags gives bits 7-5 the kind of shot it throws (ground_object_fires, one pass in 16 at random while it is on the screen) and, with bit 4 set, makes it an animated graphic $1B whose two frames come from object_part_pairs; otherwise it is graphic $0D with the kind as its frame. Its colours are its byte in object_kind_bytes, one in each nibble, shown on alternate passes. The pictures are drawn by the game: the one thing brought back, moved within its column to the middle of a page in an emptied scratch copy of the map, brought in by load_map_window and drawn by update_ground_objects over a black play area, for 24 passes; every shape it took is shown. The bottom character row of some keeps the colour of the play area under it (trim_colour_patch stops the colour patch short so as not to colour the ground). The names are by appearance, or by what the code does with the kind.
| Kind | Picture | What | Colours | Throws | Number |
|---|---|---|---|---|---|
| $00 | ![]() | flask, graphic $0D, frame 0 | bright yellow | shot kind 2: the refuel pick-up, straight up | 12 |
| $01 | ![]() | pedestal, graphic $0D, frame 1 | bright cyan | 9 | |
| $02 | ![]() | cloud, graphic $0D, frame 2 | bright white | 33 | |
| $03 | ![]() | spiky mound, graphic $0D, frame 3 | bright magenta | shot kind 1: bullets thrown up in a spray (one in eight the shield ball, and now and then the extra-life icon) | 6 |
| $04 | ![]() ![]() | lamp, animated: graphic $1B, frames 0 and 1 | bright cyan and bright green by turns | shot kind 6: pellets sprayed, downwards from high up | 48 |
| $05 | ![]() ![]() | domed robot, animated: graphic $1B, frames 2 and 3 | bright white and bright cyan by turns | shot kind 4: pellets sprayed upwards | 23 |
| $06 | ![]() | beam generator, graphic $0D, frame 6 | bright cyan | 18 | |
| $07 | ![]() | beam generator, graphic $0D, frame 7 | bright cyan | 18 | |
| $08 | ![]() | ore deposit, graphic $0D, frame 8 | bright cyan | 9 | |
| $09 | ![]() | ore deposit, graphic $0D, frame 9 | bright cyan | 5 | |
| $0A | ![]() | ore deposit, graphic $0D, frame 10 | bright cyan | 10 | |
| $0B | ![]() | ringed planet, graphic $0D, frame 11; the special beam cannot destroy it | bright white | 14 | |
| $0C | ![]() ![]() | domed robot, animated: graphic $1B, frames 2 and 3 | bright red | shot kind 5: the fuel thief, sprayed upwards | 10 |
| $0D | ![]() | pylon craft, graphic $0D, frame 13 | bright green | shot kind 3: pellets, straight down from high up | 22 |
| $0E | ![]() ![]() | refuel pad, animated: graphic $1B, frames 4 and 5 | bright yellow | 18 | |
| $0F | ![]() | saucer, graphic $0D, frame 15 | bright white | 20 | |
| $10 | ![]() ![]() | lamp, animated: graphic $1B, frames 0 and 1 | bright cyan | 15 |
12 on the planet; on the planet's map, the layer “Things that throw fuel”. By map column and row, with the place in the page: $05, row 7 (x $58, y $93); $1E, row 8 (x $08, y $93); $24, row 25 (x $58, y $93); $28, row 22 (x $40, y $93); $3A, row 26 (x $78, y $93); $41, row 9 (x $50, y $93); $42, row 18 (x $C0, y $93); $4E, row 9 (x $C0, y $93); $55, row 24 (x $30, y $93); $5B, row 21 (x $50, y $93); $5D, row 17 (x $30, y $93); $5E, row 11 (x $78, y $93).
9 on the planet; on the planet's map, the layer “Everything else lying on the planet”. By map column and row, with the place in the page: $04, row 8 (x $30, y $73); $0D, row 7 (x $B8, y $93); $10, row 7 (x $50, y $93); $13, row 9 (x $80, y $93); $1A, row 9 (x $30, y $73); $25, row 6 (x $78, y $93); $28, row 9 (x $40, y $93); $35, row 7 (x $48, y $93); $46, row 8 (x $A0, y $93).
33 on the planet; on the planet's map, the layer “Everything else lying on the planet”. By map column and row, with the place in the page: $01, row 9 (x $60, y $AF); $03, row 6 (x $60, y $AF); $06, row 5 (x $60, y $AF); $0E, row 6 (x $60, y $AF); $11, row 5 (x $60, y $AF); $16, row 8 (x $60, y $AF); $17, row 9 (x $60, y $5F); $18, row 9 (x $60, y $AF); $1B, row 4 (x $70, y $8F); $1E, row 7 (x $60, y $AF); $27, row 6 (x $60, y $AF); $2A, row 7 (x $60, y $AF); $2C, row 5 (x $70, y $9B); $2D, row 8 (x $28, y $9B); $2E, row 6 (x $B0, y $97); $2F, row 6 (x $68, y $87); $30, row 6 (x $50, y $77); $31, row 8 (x $08, y $3F); $32, row 6 (x $08, y $8B); $34, row 6 (x $C0, y $AF); $36, row 5 (x $98, y $93); $3E, row 7 (x $60, y $AF); $40, row 8 (x $60, y $AF); $46, row 6 (x $60, y $AF); $4A, row 9 (x $60, y $AF); $4C, row 9 (x $60, y $AF); $50, row 6 (x $58, y $9F); $56, row 9 (x $60, y $AF); $58, row 9 (x $60, y $AF); $5B, row 7 (x $80, y $7F); $5C, row 9 (x $50, y $93); $5D, row 8 (x $38, y $9F); $5F, row 9 (x $60, y $AF).
6 on the planet; on the planet's map, the layer “Things that throw what hurts”. By map column and row, with the place in the page: $02, row 10 (x $50, y $33); $0C, row 5 (x $28, y $53); $1C, row 7 (x $40, y $33); $2A, row 10 (x $78, y $93); $38, row 5 (x $08, y $93); $59, row 10 (x $40, y $33).

48 on the planet; on the planet's map, the layer “Things that throw what hurts”. By map column and row, with the place in the page: $04, row 27 (x $20, y $4F); $08, row 15 (x $68, y $2F); $09, row 20 (x $70, y $3F); $11, row 23 (x $A0, y $7F); $12, row 6 (x $60, y $33); $13, row 4 (x $B0, y $43); $17, row 5 (x $90, y $53); $18, row 5 (x $08, y $73); $19, row 19 (x $68, y $67); $19, row 26 (x $C0, y $37); $27, row 28 (x $10, y $2F); $28, row 8 (x $60, y $9F); $2A, row 14 (x $68, y $77); $2C, row 11 (x $08, y $93); $2D, row 10 (x $C8, y $AF); $33, row 8 (x $58, y $9F); $33, row 18 (x $C8, y $3F); $33, row 21 (x $B8, y $67); $37, row 24 (x $80, y $5F); $39, row 28 (x $68, y $57); $3D, row 27 (x $20, y $2F); $3E, row 11 (x $D0, y $8F); $40, row 11 (x $08, y $8F); $40, row 25 (x $48, y $6B); $43, row 5 (x $50, y $8F); $44, row 25 (x $78, y $6B); $48, row 25 (x $30, y $6F); $49, row 20 (x $80, y $5F); $4A, row 6 (x $20, y $4F); $4B, row 9 (x $60, y $8F); $4C, row 5 (x $48, y $9F); $4C, row 8 (x $80, y $9B); $4C, row 10 (x $A8, y $8B); $4D, row 9 (x $18, y $9F); $4D, row 19 (x $10, y $4F); $4E, row 6 (x $28, y $AF); $50, row 9 (x $A0, y $5F); $51, row 17 (x $28, y $77); $53, row 6 (x $B0, y $6F); $53, row 28 (x $B8, y $57); $54, row 6 (x $30, y $8B); $57, row 11 (x $10, y $AF); $58, row 8 (x $60, y $B7); $58, row 24 (x $68, y $8F); $5B, row 4 (x $30, y $9B); $5B, row 11 (x $70, y $3F); $5E, row 5 (x $B0, y $AF); $5E, row 20 (x $10, y $2F).

23 on the planet; on the planet's map, the layer “Things that throw what hurts”. By map column and row, with the place in the page: $03, row 18 (x $10, y $93); $06, row 7 (x $48, y $33); $0A, row 17 (x $48, y $33); $0C, row 19 (x $58, y $33); $0D, row 18 (x $68, y $93); $15, row 9 (x $18, y $93); $17, row 16 (x $80, y $93); $18, row 11 (x $20, y $93); $20, row 24 (x $78, y $53); $25, row 28 (x $20, y $93); $2C, row 24 (x $08, y $93); $2E, row 25 (x $B8, y $93); $2F, row 10 (x $88, y $93); $33, row 9 (x $50, y $33); $3A, row 6 (x $50, y $93); $3A, row 17 (x $48, y $93); $3D, row 20 (x $60, y $93); $47, row 8 (x $08, y $93); $49, row 9 (x $88, y $93); $4B, row 11 (x $B8, y $93); $4C, row 11 (x $08, y $93); $57, row 25 (x $58, y $33); $5A, row 20 (x $10, y $93).
18 on the planet; on the planet's map, the layer “Beam generators”. By map column and row, with the place in the page: $00, row 8 (x $D0, y $27); $05, row 3 (x $D0, y $27); $0A, row 4 (x $D0, y $27); $0F, row 1 (x $D0, y $27); $15, row 6 (x $D0, y $27); $18, row 7 (x $D0, y $27); $1E, row 2 (x $D0, y $27); $25, row 5 (x $D0, y $27); $2B, row 9 (x $D0, y $27); $33, row 1 (x $D0, y $27); $34, row 4 (x $D0, y $27); $3C, row 6 (x $D0, y $27); $46, row 3 (x $D0, y $27); $48, row 7 (x $D0, y $27); $50, row 8 (x $D0, y $27); $55, row 5 (x $D0, y $27); $55, row 9 (x $D0, y $27); $59, row 2 (x $D0, y $27).
18 on the planet; on the planet's map, the layer “Beam generators”. By map column and row, with the place in the page: $02, row 8 (x $08, y $27); $08, row 3 (x $08, y $27); $0E, row 4 (x $08, y $27); $13, row 1 (x $08, y $27); $1A, row 7 (x $08, y $27); $1C, row 6 (x $08, y $27); $22, row 2 (x $08, y $27); $29, row 5 (x $08, y $27); $2F, row 9 (x $08, y $27); $39, row 1 (x $08, y $27); $40, row 4 (x $08, y $27); $41, row 6 (x $08, y $27); $4D, row 3 (x $08, y $27); $52, row 8 (x $08, y $27); $56, row 7 (x $08, y $27); $58, row 5 (x $08, y $27); $5B, row 9 (x $08, y $27); $5E, row 2 (x $08, y $27).
9 on the planet; on the planet's map, the layer “Ore deposits”. By map column and row, with the place in the page: $00, row 22 (x $50, y $3F); $0C, row 27 (x $50, y $57); $14, row 26 (x $50, y $47); $17, row 27 (x $50, y $5B); $20, row 19 (x $50, y $4F); $22, row 26 (x $30, y $73); $2C, row 26 (x $50, y $47); $45, row 23 (x $50, y $3F); $46, row 18 (x $50, y $47).
5 on the planet; on the planet's map, the layer “Ore deposits”. By map column and row, with the place in the page: $16, row 23 (x $88, y $47); $22, row 19 (x $88, y $3F); $34, row 18 (x $88, y $57); $38, row 27 (x $08, y $77); $4E, row 19 (x $88, y $4F).
10 on the planet; on the planet's map, the layer “Ore deposits”. By map column and row, with the place in the page: $02, row 26 (x $50, y $93); $0F, row 23 (x $50, y $93); $11, row 15 (x $80, y $93); $27, row 15 (x $80, y $93); $2B, row 20 (x $50, y $93); $2E, row 17 (x $28, y $93); $41, row 16 (x $68, y $33); $42, row 24 (x $80, y $93); $4C, row 15 (x $50, y $93); $5F, row 18 (x $B8, y $93).
14 on the planet; on the planet's map, the layer “Everything else lying on the planet”. By map column and row, with the place in the page: $07, row 1 (x $28, y $87); $0A, row 1 (x $58, y $33); $15, row 2 (x $48, y $87); $17, row 1 (x $20, y $73); $24, row 1 (x $10, y $9F); $2D, row 1 (x $60, y $97); $2D, row 2 (x $70, y $37); $31, row 1 (x $98, y $9B); $35, row 2 (x $78, y $3F); $3D, row 2 (x $60, y $B7); $3F, row 1 (x $70, y $8F); $42, row 2 (x $90, y $8F); $49, row 2 (x $70, y $6F); $55, row 2 (x $80, y $7F).

10 on the planet; on the planet's map, the layer “Things that throw the fuel thief”. By map column and row, with the place in the page: $12, row 9 (x $40, y $93); $1D, row 24 (x $68, y $53); $21, row 5 (x $58, y $53); $34, row 22 (x $88, y $73); $36, row 24 (x $68, y $93); $43, row 7 (x $50, y $53); $4F, row 9 (x $20, y $93); $51, row 27 (x $70, y $33); $5A, row 22 (x $60, y $33); $5D, row 26 (x $78, y $73).
22 on the planet; on the planet's map, the layer “Things that throw what hurts”. By map column and row, with the place in the page: $01, row 22 (x $A8, y $7F); $0A, row 21 (x $60, y $AF); $17, row 20 (x $A0, y $9F); $18, row 26 (x $60, y $AF); $1B, row 19 (x $10, y $AF); $1F, row 23 (x $68, y $5F); $23, row 20 (x $20, y $5F); $28, row 19 (x $20, y $6F); $2D, row 23 (x $60, y $AF); $3E, row 16 (x $60, y $AF); $40, row 21 (x $30, y $8F); $42, row 21 (x $70, y $8F); $43, row 24 (x $60, y $AF); $47, row 17 (x $60, y $AF); $47, row 25 (x $10, y $3F); $51, row 24 (x $50, y $AF); $52, row 15 (x $80, y $6F); $52, row 26 (x $A8, y $7F); $55, row 27 (x $B0, y $57); $57, row 23 (x $60, y $AF); $58, row 23 (x $60, y $AF); $5A, row 24 (x $20, y $67).

18 on the planet; on the planet's map, the layer “Refuel pads”. By map column and row, with the place in the page: $02, row 18 (x $C0, y $93); $08, row 24 (x $80, y $6F); $11, row 18 (x $30, y $5F); $12, row 7 (x $30, y $2F); $12, row 23 (x $18, y $7F); $1E, row 5 (x $70, y $5F); $24, row 17 (x $60, y $5F); $28, row 16 (x $A0, y $4F); $2F, row 19 (x $C8, y $37); $38, row 18 (x $A0, y $3F); $39, row 23 (x $48, y $3F); $3A, row 5 (x $38, y $AB); $4A, row 16 (x $20, y $3F); $4A, row 26 (x $10, y $37); $51, row 10 (x $C8, y $57); $53, row 10 (x $10, y $57); $56, row 17 (x $30, y $47); $58, row 27 (x $20, y $3F).
20 on the planet; on the planet's map, the layer “Everything else lying on the planet”. By map column and row, with the place in the page: $02, row 2 (x $60, y $7F); $09, row 3 (x $60, y $AF); $0C, row 2 (x $90, y $9F); $10, row 3 (x $20, y $5F); $19, row 3 (x $90, y $8F); $1B, row 1 (x $30, y $77); $20, row 3 (x $50, y $4F); $24, row 3 (x $60, y $AF); $26, row 3 (x $58, y $7F); $27, row 1 (x $90, y $9F); $2A, row 3 (x $90, y $AF); $2F, row 2 (x $A0, y $8F); $32, row 3 (x $70, y $7F); $38, row 3 (x $58, y $B7); $39, row 4 (x $60, y $AF); $3B, row 3 (x $80, y $8F); $4E, row 1 (x $B0, y $AF); $4F, row 1 (x $30, y $8F); $51, row 3 (x $98, y $3F); $52, row 10 (x $60, y $83).

15 on the planet; on the planet's map, the layer “Everything else lying on the planet”. By map column and row, with the place in the page: $02, row 21 (x $70, y $6F); $05, row 14 (x $A8, y $6F); $0B, row 14 (x $40, y $6F); $0B, row 25 (x $40, y $6F); $0C, row 21 (x $90, y $7F); $1B, row 24 (x $20, y $67); $3B, row 22 (x $10, y $37); $3C, row 16 (x $80, y $2F); $3E, row 23 (x $20, y $67); $4B, row 20 (x $38, y $6F); $53, row 22 (x $B8, y $67); $54, row 14 (x $B8, y $77); $54, row 17 (x $70, y $7F); $56, row 21 (x $70, y $77); $58, row 16 (x $18, y $77).