add puffstool spore subtype

This commit is contained in:
scawful
2024-07-04 00:31:22 -04:00
parent ad7991570e
commit e6ba0d17d3

View File

@@ -32,10 +32,18 @@
; =========================================================
pushpc
org $06DBB5
db $00 ; Puffstool single small char
pullpc
Sprite_Puffstool_Long:
{
PHB : PHK : PLB
LDA.w SprSubtype, X : BEQ +
JSL Sprite_PrepAndDrawSingleSmall
+
JSR Sprite_Puffstool_Draw ; Call the draw code
JSL Sprite_DrawShadow
JSL Sprite_CheckActive ; Check if game is not paused
@@ -67,9 +75,12 @@ Sprite_Puffstool_Main:
{
LDA.w SprAction, X
JSL UseImplicitRegIndexedLocalJumpTable
dw Puffstool_Walking
dw Puffstool_Stunned
dw Puffstool_Spores
Puffstool_Walking:
{
%PlayAnimation(0,6,10)
@@ -117,6 +128,14 @@ Sprite_Puffstool_Main:
RTS
}
Puffstool_Spores:
{
JSL Sprite_PlayerCantPassThrough
JSL Sprite_MoveXyz
RTS
}
}
Puffstool_SpawnSpores:
{
LDA.b #$0C ; SFX2.0C