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:
{
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: