From aef156ac6216ed157b06a2872ba051af43317e93 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 13 Apr 2026 16:34:11 +0200 Subject: Add sound effects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- src/items.s | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/items.s') diff --git a/src/items.s b/src/items.s index d8d1391..1e8a111 100644 --- a/src/items.s +++ b/src/items.s @@ -591,6 +591,9 @@ ;; Increase the number of collected items. inc Items::zp_collected + ;; Make the "item drop" sound + SOUND_ITEM_DROP + ;; Now we unset the 'S' bit, which is unconditionally true regardless of ;; the collection state. That being said, if we still need to collect ;; more fuel tanks (the rocket has all its parts and we have not filled @@ -679,6 +682,9 @@ @set_modes: sta Items::zp_pool_base, x + ;; Make the sound for grabbing an item. + SOUND_ITEM_PICKUP + ;; Mark the player's to be already grabbing an item. lda Items::zp_state ora #$80 @@ -988,6 +994,9 @@ ADD_ITEM_SCORE ldx Globals::zp_tmp2 + ;; Make the sound for item pickup. + SOUND_ITEM_PICKUP + rts .endproc -- cgit v1.2.3