cleanup deku scrub enemy sprite
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
!NbrTiles = 03 ; Number of tiles used in a frame
|
||||
!Harmless = 00 ; 00 = Sprite is Harmful, 01 = Sprite is Harmless
|
||||
!HVelocity = 00 ; Is your sprite going super fast? put 01 if it is
|
||||
!Health = 00 ; Number of Health the sprite have
|
||||
!Damage = 00 ; (08 is a whole heart), 04 is half heart
|
||||
!Health = 08 ; Number of Health the sprite have
|
||||
!Damage = 04 ; (08 is a whole heart), 04 is half heart
|
||||
!DeathAnimation = 00 ; 00 = normal death, 01 = no death animation
|
||||
!ImperviousAll = 00 ; 00 = Can be attack, 01 = attack will clink on it
|
||||
!SmallShadow = 00 ; 01 = small shadow, 00 = no shadow
|
||||
@@ -77,6 +77,7 @@ Sprite_DekuScrubEnemy_Main:
|
||||
|
||||
dw DekuScrubEnemy_PeaShot
|
||||
|
||||
; 0x00
|
||||
DekuScrubEnemy_Hiding:
|
||||
{
|
||||
%StartOnFrame(13)
|
||||
@@ -98,6 +99,7 @@ Sprite_DekuScrubEnemy_Main:
|
||||
RTS
|
||||
}
|
||||
|
||||
; 0x01
|
||||
DekuScrubEnemy_Attack:
|
||||
{
|
||||
%StartOnFrame(0)
|
||||
@@ -114,36 +116,25 @@ Sprite_DekuScrubEnemy_Main:
|
||||
LDA SprX, X : STA $04
|
||||
LDA SprY, X : STA $05
|
||||
JSR GetDistance8bit : CMP #$18 : BCS .not_too_close
|
||||
|
||||
|
||||
%GotoAction(0)
|
||||
.not_too_close
|
||||
|
||||
|
||||
RTS
|
||||
}
|
||||
|
||||
; 0x02
|
||||
DekuScrubEnemy_PostAttack:
|
||||
{
|
||||
%StartOnFrame(0)
|
||||
%PlayAnimation(0,0,4)
|
||||
|
||||
#_05BE49: LDA.w $0D10,X
|
||||
#_05BE4F: STA.b $00
|
||||
LDA.w $0D10,X : STA.b $00
|
||||
LDA.w $0D30,X : STA.b $08
|
||||
|
||||
#_05BE51: LDA.w $0D30,X
|
||||
#_05BE56: STA.b $08
|
||||
|
||||
#_05BE58: LDA.b #$04
|
||||
#_05BE5A: STA.b $02
|
||||
#_05BE5C: STZ $03
|
||||
|
||||
#_05BE5E: LDA.w $0D00,X
|
||||
#_05BE64: STA.b $01
|
||||
|
||||
#_05BE66: LDA.w $0D20,X
|
||||
#_05BE6B: STA.b $09
|
||||
LDA.b #$04 : STA.b $02
|
||||
STZ $03
|
||||
|
||||
LDA.w $0D00,X : STA.b $01
|
||||
LDA.w $0D20,X : STA.b $09
|
||||
|
||||
LDA Offspring1_Id : TAY
|
||||
JSR Sprite_SetupHitBox
|
||||
@@ -157,15 +148,14 @@ Sprite_DekuScrubEnemy_Main:
|
||||
; If the pea shot and deku scrub hitboxes intersect
|
||||
; We will go to recoil
|
||||
|
||||
|
||||
; However, he may also dodge it and try to attack
|
||||
; So if he gets too close, we go back to hiding
|
||||
%GotoAction(0)
|
||||
|
||||
.not_done
|
||||
RTS
|
||||
}
|
||||
|
||||
; 0x03
|
||||
DekuScrubEnemy_Recoil:
|
||||
{
|
||||
%StartOnFrame(3)
|
||||
@@ -180,6 +170,7 @@ Sprite_DekuScrubEnemy_Main:
|
||||
RTS
|
||||
}
|
||||
|
||||
; 0x04
|
||||
DekuScrubEnemy_Dazed:
|
||||
{
|
||||
%StartOnFrame(8)
|
||||
@@ -192,16 +183,17 @@ Sprite_DekuScrubEnemy_Main:
|
||||
RTS
|
||||
}
|
||||
|
||||
; 0x05
|
||||
DekuScrubEnemy_Subdued:
|
||||
{
|
||||
%StartOnFrame(7)
|
||||
%PlayAnimation(7,7,1)
|
||||
|
||||
|
||||
|
||||
RTS
|
||||
}
|
||||
|
||||
; 0x06
|
||||
DekuScrubEnemy_PeaShot:
|
||||
{
|
||||
%StartOnFrame(10)
|
||||
@@ -211,18 +203,12 @@ Sprite_DekuScrubEnemy_Main:
|
||||
|
||||
JSL Sprite_MoveVert
|
||||
|
||||
|
||||
|
||||
JSL Sprite_CheckDamageFromPlayerLong
|
||||
BCC .no_damage
|
||||
JSL Sprite_CheckDamageFromPlayerLong : BCC .no_damage
|
||||
; Apply force in the opposite direction
|
||||
LDA #-16 : STA SprYSpeed, X
|
||||
|
||||
.no_damage
|
||||
|
||||
RTS
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
SpawnPeaShot:
|
||||
@@ -257,7 +243,6 @@ SpawnPeaShot:
|
||||
|
||||
PLX
|
||||
|
||||
|
||||
.return
|
||||
RTS
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user