add damage flash to helmet chuchu, make helmet liftable/tossable
This commit is contained in:
@@ -78,6 +78,8 @@ Sprite_HelmetChuchu_Prep:
|
|||||||
|
|
||||||
Sprite_HelmetChuchu_Main:
|
Sprite_HelmetChuchu_Main:
|
||||||
{
|
{
|
||||||
|
JSL Sprite_DamageFlash_Long
|
||||||
|
|
||||||
LDA.w SprAction, X
|
LDA.w SprAction, X
|
||||||
JSL UseImplicitRegIndexedLocalJumpTable
|
JSL UseImplicitRegIndexedLocalJumpTable
|
||||||
|
|
||||||
@@ -119,11 +121,15 @@ Sprite_HelmetChuchu_Main:
|
|||||||
|
|
||||||
HelmetSubtype:
|
HelmetSubtype:
|
||||||
{
|
{
|
||||||
|
JSL Sprite_CheckIfLifted
|
||||||
|
JSL ThrownSprite_TileAndSpriteInteraction_long
|
||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
MaskSubtype:
|
MaskSubtype:
|
||||||
{
|
{
|
||||||
|
JSL Sprite_CheckIfLifted
|
||||||
|
JSL ThrownSprite_TileAndSpriteInteraction_long
|
||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -195,9 +201,9 @@ Sprite_HelmetChuchu_Draw:
|
|||||||
JSL Sprite_PrepOamCoord
|
JSL Sprite_PrepOamCoord
|
||||||
JSL Sprite_OAM_AllocateDeferToPlayer
|
JSL Sprite_OAM_AllocateDeferToPlayer
|
||||||
|
|
||||||
LDA $0DC0, X : CLC : ADC $0D90, X : TAY;Animation Frame
|
LDA SprGfx, X : CLC : ADC SprFrame, X : TAY;Animation Frame
|
||||||
LDA .start_index, Y : STA $06
|
LDA .start_index, Y : STA $06
|
||||||
|
LDA.w SprMiscA, X : STA $08
|
||||||
|
|
||||||
PHX
|
PHX
|
||||||
LDX .nbr_of_tiles, Y ;amount of tiles -1
|
LDX .nbr_of_tiles, Y ;amount of tiles -1
|
||||||
@@ -230,7 +236,7 @@ Sprite_HelmetChuchu_Draw:
|
|||||||
INY
|
INY
|
||||||
LDA .chr, X : STA ($90), Y
|
LDA .chr, X : STA ($90), Y
|
||||||
INY
|
INY
|
||||||
LDA .properties, X : STA ($90), Y
|
LDA .properties, X : ORA $08 : STA ($90), Y
|
||||||
|
|
||||||
PHY
|
PHY
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user