Skip to content

Commit

Permalink
pumpkinhead damage
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarby89 committed Oct 30, 2024
1 parent 7235c41 commit 58b0f5e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PumpkinHeadCD.asm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
!Harmless = 00 ; 00 = Sprite is Harmful, 01 = Sprite is Harmless
!HVelocity = 00 ; Is your sprite going super fast? put 01 if it is
!Health = 25 ; Number of Health the sprite have
!Damage = 01 ; (08 is a whole heart), 04 is half heart
!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
Expand Down Expand Up @@ -77,7 +77,7 @@ Sprite_PumpkinHead_Prep:
LDA.b #$00 : STA.w SprFrame, X
LDA.b #$01 : STA.w SprMiscF, X
LDA.b #$35 : STA.w SprHealth, X
LDA.b !Damage : STA $0CD2, X
LDA.b #$03 : STA.w $0CD2, X
STX.w $0FC0 ; keep spirit id

; Spawn the head
Expand All @@ -89,7 +89,7 @@ Sprite_PumpkinHead_Prep:
LDA.b #$01 : STA.w SprAction, Y
LDA.b #$04 : STA.w SprFrame, Y
LDA.b #$01 : STA.w SprMiscF, Y
LDA.b !Damage : STA $0CD2, Y
LDA.b #$03 : STA $0CD2, Y
STA.w SprMiscG, Y ; on body

; Spawn the body
Expand All @@ -104,7 +104,7 @@ Sprite_PumpkinHead_Prep:
LDA.b #$40 : STA.w SprTimerA, Y : STA.w SprTimerB, Y
LDA.b #$03 : STA.w SprMiscG, Y ; Body Health
LDA.b #$01 : STA.w SprMiscF, Y ; Visibility (invisible if zero)
LDA.b !Damage : STA $0CD2, Y
LDA.b #$03 : STA $0CD2, Y

PLB
RTL
Expand Down Expand Up @@ -135,7 +135,7 @@ Sprite_PumpkinHead_Main:
Spiritx:
{
; SUBTYPE 00 spirit

LDA.b #$03 : STA.w $0CD2, X
; respawn the body!
JSL Sprite_MoveZ
DEC $0F80, X : DEC $0F80, X
Expand Down

0 comments on commit 58b0f5e

Please sign in to comment.