![]() |
Routines |
| Prev: 25853 | Up: Map | Next: 25994 |
|
The array of alien bullets contains 4 slots. This clears each slot which is in use, removing the sprite from the screen. Bit of a funny way of doing it, using an external value as a loop counter and a separate routine to move to the next slot and decrement the counter.
Used by the routines at move_alien_bullet and alien_hit.
|
||||
| clear_alien_bullets | 25976 | LD A,4 | Loop over the 4 slots | |
| 25978 | LD (_ALIEN_BULLET_COUNTER),A | |||
|
This entry point is used by the routine at move_alien_bullet.
|
||||
| 25981 | LD IX,_ALIEN_BULLET_ARRAY | Alien bullet array, 4 slots, x,y entries | ||
| clear_alien_bullets_0 | 25985 | CALL clear_alien_bullet_sprite | Clear slot of active bullet, remove sprite | |
| 25988 | CALL next_alien_bullet | This move to the next bullet slot and decrements the counter at _ALIEN_BULLET_COUNTER. | ||
| 25991 | JR NZ,clear_alien_bullets_0 | |||
| 25993 | RET | |||
| Prev: 25853 | Up: Map | Next: 25994 |