Add PolsVoice_CheckForFluteSong

This commit is contained in:
scawful
2024-12-19 10:42:36 -05:00
parent d0ac8d75e2
commit 4927fa284b

View File

@@ -47,24 +47,25 @@ Sprite_PolsVoice_Long:
} }
; ========================================================= ; =========================================================
Sprite_PolsVoice_Prep: Sprite_PolsVoice_Prep:
{ {
PHB : PHK : PLB PHB : PHK : PLB
LDA.b #$80 : STA.w SprTimerA, X LDA.b #$80 : STA.w SprTimerA, X
LDA.b #$00 : STA.w SprDefl, X STZ.w SprDefl, X
LDA.b #$00 : STA.w SprTileDie, X STZ.w SprTileDie, X
PLB PLB
RTL RTL
} }
; ========================================================= ; =========================================================
Sprite_PolsVoice_Main: Sprite_PolsVoice_Main:
{ {
LDA.w SprAction, X JSR PolsVoice_CheckForFluteSong
JSL UseImplicitRegIndexedLocalJumpTable
dw PolsVoice_MoveAround %SpriteJumpTable(PolsVoice_MoveAround,
dw PolsVoice_HopAround PolsVoice_HopAround)
PolsVoice_MoveAround: 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: Sprite_PolsVoice_Draw: