mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-01-01 05:31:52 +00:00
keen: properly track laser shots
This commit is contained in:
parent
2d6fee4094
commit
c99e8d0837
@ -2,7 +2,7 @@
|
|||||||
; check touching things
|
; check touching things
|
||||||
;======================
|
;======================
|
||||||
; do head, than foot
|
; do head, than foot
|
||||||
; FIXME: should we check both head/feet?
|
; FIXME: should we check both left/right head/feet
|
||||||
check_items:
|
check_items:
|
||||||
|
|
||||||
; check if going out door
|
; check if going out door
|
||||||
@ -30,9 +30,6 @@ check_items:
|
|||||||
check_item:
|
check_item:
|
||||||
lda tilemap,X
|
lda tilemap,X
|
||||||
|
|
||||||
do_check_enemy:
|
|
||||||
|
|
||||||
|
|
||||||
do_check_item:
|
do_check_item:
|
||||||
cmp #27
|
cmp #27
|
||||||
bcc done_check_item ; not an item
|
bcc done_check_item ; not an item
|
||||||
|
@ -276,6 +276,13 @@ check_comma:
|
|||||||
bne check_return
|
bne check_return
|
||||||
|
|
||||||
comma_pressed:
|
comma_pressed:
|
||||||
|
; check if we have any shots left
|
||||||
|
|
||||||
|
lda RAYGUNS
|
||||||
|
beq done_comma
|
||||||
|
|
||||||
|
; use up a shot
|
||||||
|
dec RAYGUNS
|
||||||
|
|
||||||
; shoot
|
; shoot
|
||||||
lda LASER_OUT
|
lda LASER_OUT
|
||||||
|
Loading…
Reference in New Issue
Block a user