aboutsummaryrefslogtreecommitdiff
path: root/src/driver.s
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mssola@mssola.com>2026-04-13 16:34:11 +0200
committerMiquel Sabaté Solà <mssola@mssola.com>2026-04-13 16:34:11 +0200
commitaef156ac6216ed157b06a2872ba051af43317e93 (patch)
treea6daca2bc0353e6b59823bc6bf019362ecb02507 /src/driver.s
parentc3c6f3b4469bf9eadff5763fa16dbbbf15637e57 (diff)
downloadjetpac.nes-aef156ac6216ed157b06a2872ba051af43317e93.tar.gz
jetpac.nes-aef156ac6216ed157b06a2872ba051af43317e93.zip
Add sound effects
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'src/driver.s')
-rw-r--r--src/driver.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/driver.s b/src/driver.s
index 2bc78ca..4e54e8c 100644
--- a/src/driver.s
+++ b/src/driver.s
@@ -240,6 +240,9 @@
sta zp_next_bullet_cycle
sta zp_next_enemy_cycle
+ ;; And make the sound for entering into a level.
+ SOUND_ENTER_LEVEL
+
@game:
;; Has the player died?
lda Globals::zp_flags
@@ -818,6 +821,9 @@
ora #%01100000
sta Globals::zp_flags
+ ;; Make some noise!
+ START_TAKE_OFF_SOUND
+
rts
.endproc
@@ -928,6 +934,9 @@
ora #%01100000
sta Globals::zp_flags
+ ;; Stop the sound effect for take off.
+ STOP_TAKE_OFF_SOUND
+
rts
@set: