Add CheckIfFrozen with todo for timer

This commit is contained in:
scawful
2024-05-16 09:49:46 -04:00
parent 89ccd5ba2e
commit 42b959ebe5

View File

@@ -409,8 +409,6 @@ Sprite_KydrogBoss_Main:
%PlayAnimation(0, 0, 10) %PlayAnimation(0, 0, 10)
JSL $09EF56 ; Kill friends JSL $09EF56 ; Kill friends
; Change the palette to the next in the cycle for the leg
LDA $0DA0, X : INC : CMP.b #$08 : BNE .dontReset LDA $0DA0, X : INC : CMP.b #$08 : BNE .dontReset
LDA.b #$00 LDA.b #$00
@@ -533,6 +531,18 @@ CheckForNextPhase:
; ========================================================= ; =========================================================
; TODO: Use a timer to unfreeze the sprite
CheckIfFrozen:
{
LDA $0DD0, X : CMP.b #$0B : BNE .not_frozen
LDA.w $0E10, X : BNE .not_frozen
LDA.b #$00 : STA.l $7FFA3C,X
LDA.b #$09 : STA.w $0DD0, X
.not_frozen
RTS
}
;BA: Boomerang ;BA: Boomerang
;D1: Damage 1 ;D1: Damage 1
;D2: Damage 2 ;D2: Damage 2