SpriteSetupHitbox and LinkSetupHitbox long, disable deku mask hover (for now)
This commit is contained in:
@@ -144,7 +144,7 @@ Sprite_DekuScrubEnemy_Main:
|
||||
|
||||
PHX
|
||||
LDA Offspring1_Id : TAX
|
||||
JSR Sprite_SetupHitBox
|
||||
JSL Sprite_SetupHitBox
|
||||
PLX
|
||||
|
||||
JSL CheckIfHitBoxesOverlap : BCC .no_dano
|
||||
@@ -157,7 +157,7 @@ Sprite_DekuScrubEnemy_Main:
|
||||
; We will go to recoil
|
||||
PHX
|
||||
LDA Offspring1_Id : TAX
|
||||
JSR Sprite_SetupHitBox
|
||||
JSL Sprite_SetupHitBox
|
||||
PLX
|
||||
JSL CheckIfHitBoxesOverlap : BCC .not_done2
|
||||
%GotoAction(4)
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
!SmallShadow = 00 ; 01 = small shadow, 00 = no shadow
|
||||
!Shadow = 00 ; 00 = don't draw shadow, 01 = draw a shadow
|
||||
!Palette = 00 ; Unused in this template (can be 0 to 7)
|
||||
!Hitbox = 00 ; 00 to 31, can be viewed in sprite draw tool
|
||||
!Hitbox = $0D ; 00 to 31, can be viewed in sprite draw tool
|
||||
!Persist = 00 ; 01 = your sprite continue to live offscreen
|
||||
!Statis = 00 ; 00 = is sprite is alive?, (kill all enemies room)
|
||||
!CollisionLayer = 00 ; 01 = will check both layer for collision
|
||||
|
||||
@@ -614,10 +614,10 @@ HandleDynamicSwitchTileDirections:
|
||||
JSR CheckSpritePresence : BCC .no_b0
|
||||
|
||||
PHX : LDA $02 : TAX
|
||||
JSR Link_SetupHitBox
|
||||
JSL Link_SetupHitBox
|
||||
|
||||
; X is now the ID of the sprite $B0
|
||||
JSR Sprite_SetupHitBox
|
||||
JSL Sprite_SetupHitBox
|
||||
PLX
|
||||
|
||||
JSL CheckIfHitBoxesOverlap : BCC .no_b0
|
||||
|
||||
@@ -141,7 +141,7 @@ Sprite_Portal_Main:
|
||||
LDA SprTimerD, X : BNE .NoOverlap
|
||||
|
||||
|
||||
JSR Link_SetupHitBox
|
||||
JSL Link_SetupHitBox
|
||||
JSL $0683EA ; Sprite_SetupHitbox_long
|
||||
|
||||
JSL CheckIfHitBoxesOverlap : BCC .NoOverlap
|
||||
@@ -172,7 +172,7 @@ Sprite_Portal_Main:
|
||||
CLC
|
||||
LDA SprTimerD, X : BNE .NoOverlap
|
||||
|
||||
JSR Link_SetupHitBox
|
||||
JSL Link_SetupHitBox
|
||||
JSL $0683EA ; Sprite_SetupHitbox_long
|
||||
|
||||
JSL CheckIfHitBoxesOverlap : BCC .NoOverlap
|
||||
|
||||
@@ -443,7 +443,7 @@ Link_SetupHitBox:
|
||||
LDA $20 : ADC.b #$08 : STA $01
|
||||
LDA $21 : ADC.b #$00 : STA $09
|
||||
|
||||
RTS
|
||||
RTL
|
||||
}
|
||||
|
||||
|
||||
@@ -490,7 +490,7 @@ Sprite_SetupHitBox:
|
||||
|
||||
#_06F82F: PLY
|
||||
|
||||
#_06F830: RTS
|
||||
#_06F830: RTL
|
||||
|
||||
; ---------------------------------------------------------
|
||||
|
||||
@@ -498,7 +498,7 @@ Sprite_SetupHitBox:
|
||||
#_06F831: LDA.b #$80
|
||||
#_06F833: STA.b $0A
|
||||
|
||||
#_06F835: RTS
|
||||
#_06F835: RTL
|
||||
|
||||
.offset_x_low
|
||||
#_06F72F: db 2 ; 0x00
|
||||
|
||||
Reference in New Issue
Block a user