Move ZSpriteLib files to Core

This commit is contained in:
scawful
2024-12-10 17:55:10 -05:00
parent 21bd65b5eb
commit aa50be2e15
3 changed files with 4 additions and 13 deletions

View File

@@ -93,13 +93,6 @@ Sprite_MoveAltitude:
RTL
}
Sprite_GetDirectionToFacePlayer:
{
JSL Sprite_DirectionToFacePlayer
RTL
}
; =========================================================
; make the sprite bounce toward player
; movement, collision are handled by this function
@@ -308,19 +301,17 @@ Sprite_DamageFlash_Long:
RTL
}
; =========================================================
Sprite_Damage_Flash:
{
LDA $0EF0, X : BEQ .dontFlash
LDA.w SprDeath, X : BEQ .dont_flash
; Change the palette to the next in the cycle
LDA.w SprFlash, X : INC : CMP.b #$08 : BNE .dontReset
LDA.w SprFlash, X : INC : CMP.b #$08 : BNE .dont_reset
LDA.b #$00
.dontReset
.dont_reset
STA.w SprFlash, X
BRA .flash
.dontFlash
.dont_flash
STZ.w SprFlash, X
.flash