![]() |
Routines |
| Prev: 87F6 | Up: Map | Next: 8820 |
|
Used by the routines at update_cloud and update_tough_attacker.
Called by the update routines update_cloud and update_tough_attacker with the kind of shot in scratch_count (7 or 8: a horizontal shot right or left, see shot_kind_flags). Only when the attacker was drawn last pass (old_sprite_rows), and then one pass in 32 at random (random_a AND $2F zero): see fire_from.
|
||||||||
| attacker_fires | 8813 | LD A,(old_sprite_rows) | Drawn last pass, and a random chance | |||||
| 8816 | AND A | |||||||
| 8817 | RET Z | |||||||
| 8818 | LD A,(random_a) | |||||||
| 881B | AND $2F | |||||||
| 881D | RET NZ | |||||||
| 881E | JR fire_from | |||||||
| Prev: 87F6 | Up: Map | Next: 8820 |