Enemy housekeeping

This commit is contained in:
scawful
2025-01-10 20:42:42 -05:00
parent 59a063e5f4
commit 80fd69d8bb
4 changed files with 13 additions and 69 deletions

View File

@@ -32,8 +32,6 @@
%Set_Sprite_Properties(Sprite_Booki_Prep, Sprite_Booki_Long)
; =========================================================
Sprite_Booki_Long:
{
PHB : PHK : PLB
@@ -46,8 +44,6 @@ Sprite_Booki_Long:
RTL
}
; =========================================================
Sprite_Booki_Prep:
{
PHB : PHK : PLB
@@ -61,8 +57,6 @@ Sprite_Booki_Prep:
db $04, $08, $10, $18
}
; =========================================================
Sprite_Booki_Main:
{
LDA.w SprAction, X
@@ -76,16 +70,13 @@ Sprite_Booki_Main:
StalkPlayer:
{
%PlayAnimation(0,1,16)
JSR Sprite_Booki_Move
RTS
}
HideFromPlayer:
{
%PlayAnimation(0,4,16)
LDA.w SprTimerA, X : BNE +
INC.w SprAction, X
+
@@ -95,9 +86,7 @@ Sprite_Booki_Main:
HiddenFromPlayer:
{
%PlayAnimation(4,4,16)
JSR Sprite_Booki_Move
JSL GetRandomInt : AND.b #$03 : BEQ +
INC.w SprAction, X
+
@@ -107,9 +96,7 @@ Sprite_Booki_Main:
ApproachPlayer:
{
%PlayAnimation(5,9,16)
JSR Sprite_Booki_Move
RTS
}
}
@@ -198,9 +185,7 @@ Sprite_Booki_Draw:
.nextTile
PHX ; Save current Tile Index?
TXA : CLC : ADC $06 ; Add Animation Index Offset
PHA ; Keep the value with animation index offset?
ASL A : TAX