keen: properly track laser shots

This commit is contained in:
Vince Weaver 2024-04-01 00:49:20 -04:00
parent 2d6fee4094
commit c99e8d0837
2 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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