mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-29 00: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
|
||||
;======================
|
||||
; do head, than foot
|
||||
; FIXME: should we check both head/feet?
|
||||
; FIXME: should we check both left/right head/feet
|
||||
check_items:
|
||||
|
||||
; check if going out door
|
||||
@ -30,9 +30,6 @@ check_items:
|
||||
check_item:
|
||||
lda tilemap,X
|
||||
|
||||
do_check_enemy:
|
||||
|
||||
|
||||
do_check_item:
|
||||
cmp #27
|
||||
bcc done_check_item ; not an item
|
||||
|
@ -276,6 +276,13 @@ check_comma:
|
||||
bne check_return
|
||||
|
||||
comma_pressed:
|
||||
; check if we have any shots left
|
||||
|
||||
lda RAYGUNS
|
||||
beq done_comma
|
||||
|
||||
; use up a shot
|
||||
dec RAYGUNS
|
||||
|
||||
; shoot
|
||||
lda LASER_OUT
|
||||
|
Loading…
Reference in New Issue
Block a user