![]() |
Data |
| Prev: A802 | Up: Map | Next: A873 |
|
Six records of 26 bytes for the things lying on the landscape: these four for the objects placed from the map (map_object_kinds) -- the installations that can be shot, collided with, landed on, mined -- and two (pickup_record, second_pickup_record) for the pick-ups, which have bit 7 of +3 set. update_ground_objects updates and draws them, ship_hits_ground_objects tests the ship against these four, beam_hits_ground_object the special beam against them. The map code (load_map_window) fills them as the view reaches them.
The fields, as far as this range uses them (the first $18 bytes are the same as the sky objects' records at object_records, and the same routines place and draw both):
+0 the graphic number ($FF a free record), the index into the graphic table (the words from the 25th byte of object_handlers). +1 the page column and +2 the x within it (bit 0 ignored); +4 the page row and +5 the y of the bottom row within it -- see place_on_screen for the pages. +3 bit 7: a pick-up. +7 to +$0A and +$0B, +$0C, +$0E, +$0F: cleared when the record is freed (free_object; movement, not used here). +$0D the colours, two attributes in its nibbles, shown on alternate passes (prepare_draw). +$10 flags: bit 7 drawn on the screen last pass, bit 6 drawn straddling the left edge, bit 4 to be rubbed out and freed. +$11 and +$12 the screen x and y it was drawn at. +$13 bits 0-3 the frame of the graphic, which for graphic $0D is also the object's kind (from map_object_kinds; kind $0B is never collided with); for graphic $1B, the animated objects, the frame byte from object_part_pairs -- bits 4-5 a count and 6-7 its reload, with +$14 the frames it runs through (animate_object) -- and frames 4 and 5 are the fuel station's (map kind $0E), the refuel pad of ship_hits_ground_objects. +$15 bit 7: animate_object animates it. +$17 bit 3 dissolving and bits 0-2 the step. +$18 bits 1-3 not zero: the kind of shot it fires (ground_object_fires); +$18 bit 0 and +$19 the number of its byte in map_object_kinds, where it is marked gone.
|
||||
| ground_objects | A80B | DEFB $FF,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 | One record every two lines | |
| A818 | DEFB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 | |||
| A825 | DEFB $FF,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 | |||
| A832 | DEFB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 | |||
| A83F | DEFB $FF,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 | |||
| A84C | DEFB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 | |||
| A859 | DEFB $FF,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 | |||
| A866 | DEFB $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 | |||
| Prev: A802 | Up: Map | Next: A873 |