Prev: 26001 Up: Map Next: 26038
26020: Remove alien bullet
Alien bullet which has been intercepted by the player's bullet, or has hit a barrier, is cleared. The bullet sprite is drawn in clear mode and the entry in the alien bullet array is zeroed.
Used by the routines at clear_alien_bullets and bullet_intercept_detect.
Input
IX Pointer to alien bullet which has been intercepted
clear_alien_bullet_sprite 26020 LD A,(IX+1) A contains alien bullet ypos
This entry point is used by the routine at move_alien_bullet.
26023 OR A Return if alien bullet slow not in use
26024 RET Z
26025 LD HL,_GFX_ALIEN_BULLET Alien bullet sprite data
26028 LD A,1 Mode clear
26030 CALL sprite_draw_or_clear Clear sprite
This entry point is used by the routine at move_alien_bullet.
clear_alien_bullet_sprite_0 26033 LD (IX+1),0 Alien bullet gone
26037 RET
Prev: 26001 Up: Map Next: 26038