Move ZSpriteLib files to Core
This commit is contained in:
@@ -93,13 +93,6 @@ Sprite_MoveAltitude:
|
|||||||
RTL
|
RTL
|
||||||
}
|
}
|
||||||
|
|
||||||
Sprite_GetDirectionToFacePlayer:
|
|
||||||
{
|
|
||||||
JSL Sprite_DirectionToFacePlayer
|
|
||||||
|
|
||||||
RTL
|
|
||||||
}
|
|
||||||
|
|
||||||
; =========================================================
|
; =========================================================
|
||||||
; make the sprite bounce toward player
|
; make the sprite bounce toward player
|
||||||
; movement, collision are handled by this function
|
; movement, collision are handled by this function
|
||||||
@@ -308,19 +301,17 @@ Sprite_DamageFlash_Long:
|
|||||||
RTL
|
RTL
|
||||||
}
|
}
|
||||||
|
|
||||||
; =========================================================
|
|
||||||
|
|
||||||
Sprite_Damage_Flash:
|
Sprite_Damage_Flash:
|
||||||
{
|
{
|
||||||
LDA $0EF0, X : BEQ .dontFlash
|
LDA.w SprDeath, X : BEQ .dont_flash
|
||||||
; Change the palette to the next in the cycle
|
; 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
|
LDA.b #$00
|
||||||
.dontReset
|
.dont_reset
|
||||||
STA.w SprFlash, X
|
STA.w SprFlash, X
|
||||||
BRA .flash
|
BRA .flash
|
||||||
|
|
||||||
.dontFlash
|
.dont_flash
|
||||||
STZ.w SprFlash, X
|
STZ.w SprFlash, X
|
||||||
|
|
||||||
.flash
|
.flash
|
||||||
Reference in New Issue
Block a user