![]() |
Routines |
| Prev: 9030 | Up: Map | Next: 9056 |
|
Used by the routines at update_rammer and update_attacker.
Used by the attackers' update routines (update_attacker, update_rammer). If the object has been shot (bit 5 of +$10) it is scored (score_object, in test_player_shots) and becomes debris: type $15 (update_debris), frame count $50, frames 0-5, and the path step at the start of a random quarter of the path's mirror images (bits 6-7 of +$15). The zero flag tells the caller which.
make_debris is also how the ship's wreck starts (wreck_ship), which sets the four quarters itself.
|
||||||||||||
| check_shot | 9035 | BIT 5,(IX+$10) | Not shot | |||||||||
| 9039 | RET Z | |||||||||||
| 903A | CALL score_object | Score it | ||||||||||
|
This entry point is used by the routine at wreck_ship.
|
||||||||||||
| make_debris | 903D | LD (IX+$00),$15 | Debris: type $15, frame count $50, frames 0 to 5 | |||||||||
| 9041 | LD (IX+$13),$50 | |||||||||||
| 9045 | LD (IX+$14),$05 | |||||||||||
| 9049 | LD A,(random_b) | A random mirror image of the path | ||||||||||
| 904C | AND $03 | |||||||||||
| 904E | RRCA | |||||||||||
| 904F | RRCA | |||||||||||
| 9050 | LD (IX+$15),A | |||||||||||
| 9053 | OR $01 | NZ: it was shot | ||||||||||
| 9055 | RET | |||||||||||
| Prev: 9030 | Up: Map | Next: 9056 |