![]() |
Where the pick-ups are dealt |
The add-ons and the rocket's parts are not in the tables of things lying on the planet. At a new game new_game has deal_places deal each player 19 places from a pool of 46, following the dealing list dealing_list, into the player's record (player_places for the player in play). Each place is four bytes: map column, map row, x and y in the page. As the view moves, load_map_window puts any of the current player's places in the window that are not yet taken (bit 7 of the first byte) into the two pick-up slots: places 0-10 as graphic $0C, an add-on lying on the planet, with the place's number as its frame (addon_graphics), and places 11-18 as graphic $1E, rocket parts 0-7 (rocket_part_frames). The pictures are drawn by the game that way: one place given to the player, in an emptied scratch copy of the map, brought in by load_map_window and drawn by update_ground_objects.
An entry of 1 to 5 deals a random place not yet dealt from that group of the pool: a random byte (random_a) ANDed with the group's size less one, tried again while the place is taken, so the groups' sizes are powers of two. An entry of 0 deals nothing and leaves the place $FF, no place -- unless the next entry is 3, when the place before it is copied 16 to the right and 35 up. The pool is all free again at each call, so the two players' places are dealt independently and may coincide. At the end of a planet the last entry alone ($61BB) is dealt again by planet_secured: the nose cone moves.
| Place | Entry | What lies there | Picture | Dealt in the simulator's game |
|---|---|---|---|---|
| 0 | group 1 | add-on 1, the hook | ![]() | $46, row 8 (x $A8, y $78) |
| 1 | 0: none | add-on 2, the second hook | ![]() | none |
| 2 | 0: none | add-on 3, the ore tank | ![]() | none |
| 3 | group 5 | add-on 4, the side jet (a block) | ![]() | $0D, row 7 (x $B8, y $78) |
| 4 | group 5 | add-on 5, the lift jet (arches) | ![]() | $10, row 7 (x $50, y $78) |
| 5 | group 2 | add-on 6, the fuel saver (a mound) | ![]() | $1A, row 9 (x $38, y $58) |
| 6 | group 1 | add-on 7, the special beam (a post) | ![]() | $58, row 9 (x $68, y $97) |
| 7 | group 2 | add-on 8, the missiles (a bar) | ![]() | $18, row 9 (x $68, y $97) |
| 8 | group 1 | add-on 9, the figure | ![]() | $27, row 6 (x $68, y $97) |
| 9 | group 1 | add-on 10, the slab | ![]() | $4A, row 9 (x $68, y $97) |
| 10 | 0: the place before, 16 right and 35 up | add-on 11, the spire | ![]() | $4A, row 9 (x $78, y $74) |
| 11 | group 3 | rocket part 0, a section of bars | ![]() | $3E, row 16 (x $68, y $9B) |
| 12 | group 3 | rocket part 1, a checked section | ![]() | $0A, row 21 (x $68, y $9B) |
| 13 | group 3 | rocket part 2, a crate-like section | ![]() | $2D, row 23 (x $68, y $9B) |
| 14 | group 3 | rocket part 3, a crate-like section | ![]() | $04, row 8 (x $38, y $58) |
| 15 | group 3 | rocket part 4, a fin | ![]() | $24, row 3 (x $68, y $9B) |
| 16 | group 3 | rocket part 5, a fin | ![]() | $17, row 9 (x $68, y $47) |
| 17 | group 3 | rocket part 6, the ore tank | ![]() | $1B, row 19 (x $18, y $9B) |
| 18 | group 4 | rocket part 7, the nose cone | ![]() | $18, row 26 (x $68, y $9B) |
Places 1 and 2, add-ons 2 and 3, are never dealt: add-on 2 comes with add-on 1, and the ore tank comes as rocket part 6. Places 9 and 10 are the two-piece load (carried_part), the spire dealt beside the slab at exactly the offset at which the ship carries them. The last column is the simulator's own new game, one deal among many.
Five groups, one for each entry value, each in map-column order. On the planet each group is a layer.
Feeds place 11, rocket part 0, a section of bars; place 12, rocket part 1, a checked section; place 13, rocket part 2, a crate-like section; place 14, rocket part 3, a crate-like section; place 15, rocket part 4, a fin; place 16, rocket part 5, a fin; place 17, rocket part 6, the ore tank -- 7 places from 16 that can be dealt, so no two of them coincide.
| # | Address | Column | Row | x | y | |
|---|---|---|---|---|---|---|
| 0 | $605B | $04 | 8 | $38 | $58 | |
| 1 | $605F | $09 | 3 | $68 | $9B | |
| 2 | $6063 | $0A | 21 | $68 | $9B | |
| 3 | $6067 | $11 | 5 | $68 | $97 | |
| 4 | $606B | $17 | 9 | $68 | $47 | |
| 5 | $606F | $1B | 19 | $18 | $9B | |
| 6 | $6073 | $1F | 23 | $70 | $4B | |
| 7 | $6077 | $24 | 3 | $68 | $9B | |
| 8 | $607B | $25 | 6 | $80 | $78 | |
| 9 | $607F | $2D | 23 | $68 | $9B | |
| 10 | $6083 | $39 | 4 | $68 | $9B | |
| 11 | $6087 | $3E | 16 | $68 | $9B | |
| 12 | $608B | $40 | 8 | $68 | $97 | |
| 13 | $608F | $47 | 17 | $68 | $9B | |
| 14 | $6093 | $57 | 23 | $68 | $9B | |
| 15 | $6097 | $58 | 23 | $68 | $9B |
Feeds place 0, add-on 1, the hook; place 6, add-on 7, the special beam (a post); place 8, add-on 9, the figure; place 9, add-on 10, the slab -- 4 places from 16 that can be dealt, so no two of them coincide.
| # | Address | Column | Row | x | y | |
|---|---|---|---|---|---|---|
| 0 | $609B | $01 | 9 | $68 | $97 | |
| 1 | $609F | $03 | 6 | $68 | $97 | |
| 2 | $60A3 | $06 | 5 | $68 | $97 | |
| 3 | $60A7 | $13 | 9 | $88 | $78 | |
| 4 | $60AB | $27 | 6 | $68 | $97 | |
| 5 | $60AF | $28 | 9 | $48 | $78 | |
| 6 | $60B3 | $2A | 7 | $68 | $97 | |
| 7 | $60B7 | $35 | 7 | $50 | $78 | |
| 8 | $60BB | $3E | 7 | $68 | $97 | |
| 9 | $60BF | $46 | 6 | $68 | $97 | |
| 10 | $60C3 | $46 | 8 | $A8 | $78 | |
| 11 | $60C7 | $4A | 9 | $68 | $97 | |
| 12 | $60CB | $4C | 9 | $68 | $97 | |
| 13 | $60CF | $58 | 9 | $68 | $97 | |
| 14 | $60D3 | $5C | 9 | $58 | $7B | |
| 15 | $60D7 | $5F | 9 | $68 | $97 |
Feeds place 3, add-on 4, the side jet (a block); place 4, add-on 5, the lift jet (arches) -- 2 places from 2 that can be dealt, so no two of them coincide.
| # | Address | Column | Row | x | y | |
|---|---|---|---|---|---|---|
| 0 | $60DB | $0D | 7 | $B8 | $78 | |
| 1 | $60DF | $10 | 7 | $50 | $78 |
Feeds place 5, add-on 6, the fuel saver (a mound); place 7, add-on 8, the missiles (a bar) -- 2 places from 6 that can be dealt, so no two of them coincide.
| # | Address | Column | Row | x | y | |
|---|---|---|---|---|---|---|
| 0 | $60E3 | $7F | 7 | $C0 | $78 | never dealt |
| 1 | $60E7 | $0E | 6 | $68 | $97 | |
| 2 | $60EB | $7F | 7 | $58 | $78 | never dealt |
| 3 | $60EF | $16 | 8 | $68 | $97 | |
| 4 | $60F3 | $18 | 9 | $68 | $97 | |
| 5 | $60F7 | $1A | 9 | $38 | $58 | |
| 6 | $60FB | $1E | 7 | $68 | $97 | |
| 7 | $60FF | $56 | 9 | $68 | $97 |
Feeds place 18, rocket part 7, the nose cone.
| # | Address | Column | Row | x | y | |
|---|---|---|---|---|---|---|
| 0 | $6103 | $01 | 22 | $B0 | $6B | |
| 1 | $6107 | $18 | 26 | $68 | $9B | |
| 2 | $610B | $43 | 24 | $68 | $9B | |
| 3 | $610F | $51 | 24 | $58 | $9B |