mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-03-06 03:29:46 +00:00
ootw: laser: aliens shooting lasers now
This commit is contained in:
parent
57ff1da4e6
commit
603ea33edf
@ -63,7 +63,8 @@ alien_laser_left:
|
|||||||
ldx LASER_TEMP
|
ldx LASER_TEMP
|
||||||
|
|
||||||
lda alien_x,X
|
lda alien_x,X
|
||||||
; dex
|
sec
|
||||||
|
sbc #2
|
||||||
sta laser1_end
|
sta laser1_end
|
||||||
|
|
||||||
; txa
|
; txa
|
||||||
|
@ -483,6 +483,8 @@ calc_gun_left_alien_loop:
|
|||||||
|
|
||||||
lda COLLISION_X
|
lda COLLISION_X
|
||||||
cmp alien_x,X
|
cmp alien_x,X
|
||||||
|
beq calc_gun_left_alien_continue ; if exact equal
|
||||||
|
; might be ourselves
|
||||||
bcc calc_gun_left_alien_continue ; blt
|
bcc calc_gun_left_alien_continue ; blt
|
||||||
|
|
||||||
; only if closer than previous found
|
; only if closer than previous found
|
||||||
|
@ -262,6 +262,9 @@ no_move_laser:
|
|||||||
inc laser_count,X
|
inc laser_count,X
|
||||||
|
|
||||||
done_move_laser:
|
done_move_laser:
|
||||||
|
inx
|
||||||
|
cpx #MAX_LASERS
|
||||||
|
bne move_laser_loop
|
||||||
|
|
||||||
rts
|
rts
|
||||||
|
|
||||||
@ -335,8 +338,8 @@ laser_hit_friend:
|
|||||||
; jmp done_hit_something
|
; jmp done_hit_something
|
||||||
|
|
||||||
done_hit_something:
|
done_hit_something:
|
||||||
|
jmp done_move_laser
|
||||||
rts
|
; rts
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user