From 42b959ebe55a1dd8e8a0e6b95a30abc4c8dcbf2a Mon Sep 17 00:00:00 2001 From: scawful Date: Thu, 16 May 2024 09:49:46 -0400 Subject: [PATCH] Add CheckIfFrozen with todo for timer --- Sprites/Bosses/kydrog_boss.asm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Sprites/Bosses/kydrog_boss.asm b/Sprites/Bosses/kydrog_boss.asm index 872491b..bd1b3a4 100644 --- a/Sprites/Bosses/kydrog_boss.asm +++ b/Sprites/Bosses/kydrog_boss.asm @@ -409,8 +409,6 @@ Sprite_KydrogBoss_Main: %PlayAnimation(0, 0, 10) 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.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 ;D1: Damage 1 ;D2: Damage 2