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 +