aboutsummaryrefslogtreecommitdiff
path: root/src/driver.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver.s')
-rw-r--r--src/driver.s8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/driver.s b/src/driver.s
index e1c2eb7..bfa6294 100644
--- a/src/driver.s
+++ b/src/driver.s
@@ -323,12 +323,16 @@
and #%00000110
bne @reset_timer
- ;; No! Toggle the game over bit.
- ;; TODO: missing the coin game over.
+ ;; No! Set the game over bit (with or without coin).
lda Globals::zp_flags
ora #%00000010
sta Globals::zp_flags
+ lda Items::zp_state
+ and #$04
+ beq @invalidate_items
+ inc Globals::zp_flags
+ @invalidate_items:
;; Invalidate items, which were skipped on move_sprites_out() on purpose
;; to keep them after each death. But since we are about to go to the
;; title screen, now they are no longer useful.