From 4927fa284bba2e6b4ccafc8be0d129005a743369 Mon Sep 17 00:00:00 2001 From: scawful Date: Thu, 19 Dec 2024 10:42:36 -0500 Subject: [PATCH] Add PolsVoice_CheckForFluteSong --- Sprites/Enemies/pols_voice.asm | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/Sprites/Enemies/pols_voice.asm b/Sprites/Enemies/pols_voice.asm index ea046e2..0244222 100644 --- a/Sprites/Enemies/pols_voice.asm +++ b/Sprites/Enemies/pols_voice.asm @@ -47,24 +47,25 @@ Sprite_PolsVoice_Long: } ; ========================================================= + Sprite_PolsVoice_Prep: { PHB : PHK : PLB LDA.b #$80 : STA.w SprTimerA, X - LDA.b #$00 : STA.w SprDefl, X - LDA.b #$00 : STA.w SprTileDie, X + STZ.w SprDefl, X + STZ.w SprTileDie, X PLB RTL } ; ========================================================= + Sprite_PolsVoice_Main: { - LDA.w SprAction, X - JSL UseImplicitRegIndexedLocalJumpTable + JSR PolsVoice_CheckForFluteSong - dw PolsVoice_MoveAround - dw PolsVoice_HopAround + %SpriteJumpTable(PolsVoice_MoveAround, + PolsVoice_HopAround) PolsVoice_MoveAround: { @@ -128,6 +129,15 @@ Sprite_PolsVoice_Main: } } +PolsVoice_CheckForFuteSong: +{ + ; If the player plays the flute, turn into a puff of smoke? + LDA $FE : BNE + + LDA.b #$03 : STA.w SprState, X + + + RTS +} + ; ========================================================= Sprite_PolsVoice_Draw: