From 1977553b83db07347b79c8fc9635f2554b097fea Mon Sep 17 00:00:00 2001 From: blondie7575 Date: Thu, 6 Jul 2023 11:03:41 -0700 Subject: [PATCH] Add important meow iteration --- player.s | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/player.s b/player.s index 34ecea0..decd3b3 100644 --- a/player.s +++ b/player.s @@ -386,11 +386,7 @@ renderAnimationPos: renderShootAnimation: SAVE_AXY - ; Play meow sound - phy - ldy #SOUND_MEOW1 - jsr playSound - ply + jsr playIterativeMeowSound PLAYERPTR_Y @@ -480,3 +476,28 @@ treatsStr: pstring "$ " + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; playIterativeMeowSound +; +playIterativeMeowSound: + phy + + ldy meowDex + jsr playSound + iny + iny + cpy #SOUND_MEOW4 + bcc playIterativeMeowSoundDone + beq playIterativeMeowSoundDone + ldy #SOUND_MEOW1 + +playIterativeMeowSoundDone: + sty meowDex + + ply + rts + +meowDex: + .word SOUND_MEOW1 +