![]() |
Data |
| Prev: 995B | Up: Map | Next: 9A4C |
|
Nine records of 24 bytes, updated by update_objects; $FF in the first byte marks a free one. They are shared out: attackers from the wave table go in any (spawn_tick), what the attackers drop in records 4-6 (ground_object_fires), clouds in records 7 and 8 (spawn_cloud); the homing missiles look for targets in records 0-6 (find_missile_target); the ship's wreck fills all nine (wreck_ship), and a falling rocket part takes any (find_record_for_part).
The record: +0 the type ($FF free; $13-$1E, which picks the update routine in object_handlers and the frame list). +1 +2 +3 X: the page column (0-$5F, wrapping), the pixel in it ($08-$E7, a page being 224 wide) and a fraction. +4 +5 +6 Y: the page row, the pixel in it ($18-$B7, 160 lines) and a fraction; Y grows downwards. +7 +8 the X velocity and +9 +A the Y velocity, signed 8.8 pixels a pass, high byte first (move_object adds them). +B +C the X acceleration and +E +F the Y acceleration, the same form (accelerate). +D two colours: the low nibble on odd passes and the high nibble on even ones (bits 0-2 or 4-6 the ink, bit 3 or 7 BRIGHT), so a sprite can flash (prepare_draw).
+10 flags: bits 0-2 the top speed less one (accelerate), bit 3 skip one placing (place_object), bit 4 to be freed, bit 5 shot, bit 6 straddles the left edge of the view, bit 7 drawn. +11 +12 where it was drawn: screen x and bottom line. +13 the frame: the low nibble the frame in the type's list, bits 4-5 a count down to the next frame and bits 6-7 what it is reloaded with (animate_object). +14 the frame range: the first frame in the high nibble, the last in the low. +15 +16 the type's own: a timer, a path step, a hit count. +17 the high nibble a count down after touching the ship (contact_damage), or on a homing missile the target's record number ($F none, update_missile); bit 3 exploding and bits 0-2 the explosion's frame (prepare_draw).
|
||||
| object_records | 9974 | DEFB $FF,$00,$00,$00,$00,$00,$00,$00 | Record 0 | |
| 997C | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| 9984 | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| 998C | DEFB $FF,$00,$00,$00,$00,$00,$00,$00 | Record 1 | ||
| 9994 | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| 999C | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| 99A4 | DEFB $FF,$00,$00,$00,$00,$00,$00,$00 | Record 2 | ||
| 99AC | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| 99B4 | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| 99BC | DEFB $FF,$00,$00,$00,$00,$00,$00,$00 | Record 3 | ||
| 99C4 | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| 99CC | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| drop_records | 99D4 | DEFB $FF,$00,$00,$00,$00,$00,$00,$00 | Record 4: from here, three for what the attackers drop | |
| 99DC | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| 99E4 | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| 99EC | DEFB $FF,$00,$00,$00,$00,$00,$00,$00 | Record 5 | ||
| 99F4 | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| 99FC | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| 9A04 | DEFB $FF,$00,$00,$00,$00,$00,$00,$00 | Record 6 | ||
| 9A0C | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| 9A14 | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| cloud_records | 9A1C | DEFB $FF,$00,$00,$00,$00,$00,$00,$00 | Record 7: from here, two for clouds | |
| 9A24 | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| 9A2C | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| 9A34 | DEFB $FF,$00,$00,$00,$00,$00,$00,$00 | Record 8 | ||
| 9A3C | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| 9A44 | DEFB $00,$00,$00,$00,$00,$00,$00,$00 | |||
| Prev: 995B | Up: Map | Next: 9A4C |