Add recoiling behavior to a variety of custom sprites

This commit is contained in:
scawful
2024-11-28 19:49:10 -05:00
parent e9e8944f96
commit d819b1d26d
8 changed files with 11 additions and 6 deletions

View File

@@ -90,7 +90,7 @@ Wolfos_Move:
+
JSL Sprite_PlayerCantPassThrough
JSL Sprite_BounceFromTileCollision
JSL Sprite_CheckIfRecoiling
JSL Sprite_Move
JSR Wolfos_DecideAction
RTS

View File

@@ -80,7 +80,7 @@ Sprite_AntiKirby_Main:
+
JSL Sprite_DamageFlash_Long
JSL Sprite_CheckIfRecoiling
LDA.w SprAction, X
JSL UseImplicitRegIndexedLocalJumpTable

View File

@@ -120,6 +120,7 @@ Sprite_Booki_Move:
JSL Sprite_BounceFromTileCollision
JSL Sprite_PlayerCantPassThrough
JSL Sprite_DamageFlash_Long
JSL Sprite_CheckIfRecoiling
JSL Sprite_IsToRightOfPlayer : CPY.b #$01 : BNE .ToRight
LDA.b #$01 : STA.w SprMiscC, X

View File

@@ -86,6 +86,8 @@ Sprite_Darknut_Main:
JSL Sprite_PlayerCantPassThrough
JSL Sprite_DamageFlash_Long
JSL Sprite_CheckIfRecoiling
LDA.w SprTimerA, X : BEQ +
LDA.b #$40 : STA.w SprTimerD, X
+

View File

@@ -195,6 +195,8 @@ Sprite_Goriya_Move:
JSL Sprite_CheckDamageToPlayer
JSL Sprite_CheckDamageFromPlayer
JSL Sprite_CheckIfRecoiling
JSR Goriya_HandleTileCollision
LDA.w SprTimerD, X : BNE ++

View File

@@ -56,7 +56,7 @@ Sprite_Puffstool_Prep:
RTL
.health
db $04, $08, $1A, $20
db $04, $08, $0A, $10
}
; =========================================================
@@ -85,7 +85,7 @@ Sprite_Puffstool_Main:
JSL Sprite_BounceOffWall
JSL Sprite_DamageFlash_Long
JSL ThrownSprite_TileAndSpriteInteraction_long
JSL Sprite_CheckIfRecoiling
JSL Sprite_CheckDamageFromPlayer : BCC .no_dano
%GotoAction(1)
%SetTimerA($60)

View File

@@ -6,7 +6,7 @@
!NbrTiles = 04 ; 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 = 04 ; Number of Health the sprite have
!Health = 06 ; 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

View File

@@ -128,7 +128,7 @@ Sprite_ThunderGhost_Move:
JSL Sprite_BounceFromTileCollision
JSL Sprite_PlayerCantPassThrough
JSL Sprite_DamageFlash_Long
JSL Sprite_CheckIfRecoiling
JSL GetRandomInt : AND #$7F : BNE ++
JSR SpawnLightningAttack
++