Cleanup deku_scrub.asm
This commit is contained in:
@@ -110,9 +110,8 @@ Sprite_DekuScrub_Main:
|
|||||||
%PlayAnimation(0, 1, 16)
|
%PlayAnimation(0, 1, 16)
|
||||||
JSL Sprite_PlayerCantPassThrough
|
JSL Sprite_PlayerCantPassThrough
|
||||||
%ShowSolicitedMessage($140) : BCC .no_hablaba
|
%ShowSolicitedMessage($140) : BCC .no_hablaba
|
||||||
%GotoAction(1)
|
%GotoAction(1)
|
||||||
|
.no_hablaba
|
||||||
.no_hablaba
|
|
||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -120,35 +119,32 @@ Sprite_DekuScrub_Main:
|
|||||||
{
|
{
|
||||||
%PlayAnimation(0, 1, 16)
|
%PlayAnimation(0, 1, 16)
|
||||||
LDA $FE : BEQ .ninguna_cancion
|
LDA $FE : BEQ .ninguna_cancion
|
||||||
STZ $FE
|
STZ $FE
|
||||||
LDA.b #$C0 : STA.w SprTimerD, X
|
LDA.b #$C0 : STA.w SprTimerD, X
|
||||||
%GotoAction(2)
|
%GotoAction(2)
|
||||||
.ninguna_cancion
|
.ninguna_cancion
|
||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
DarMascara:
|
DarMascara:
|
||||||
{
|
{
|
||||||
%PlayAnimation(0, 1, 16)
|
%PlayAnimation(0, 1, 16)
|
||||||
|
LDA.w SprTimerD, X : BNE +
|
||||||
LDA.w SprTimerD, X : BNE +
|
%ShowUnconditionalMessage($141)
|
||||||
%ShowUnconditionalMessage($141)
|
LDA.b #$C0 : STA.w SprTimerD, X
|
||||||
LDA.b #$C0 : STA.w SprTimerD, X
|
%GotoAction(3)
|
||||||
|
+
|
||||||
%GotoAction(3)
|
|
||||||
+
|
|
||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
Regalo:
|
Regalo:
|
||||||
{
|
{
|
||||||
LDA.w SprTimerD, X : BNE +
|
LDA.w SprTimerD, X : BNE +
|
||||||
|
LDY #$11 : STZ $02E9 ; Give the Deku Mask
|
||||||
LDY #$11 : STZ $02E9 ; Give the Deku Mask
|
JSL Link_ReceiveItem
|
||||||
JSL Link_ReceiveItem
|
LDA.b #$01 : STA.l $7EF301
|
||||||
LDA.b #$01 : STA.l $7EF301
|
%GotoAction(4)
|
||||||
%GotoAction(4)
|
+
|
||||||
+
|
|
||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -170,7 +166,7 @@ Sprite_DekuScrub_Main:
|
|||||||
{
|
{
|
||||||
%PlayAnimation(4, 4, 10)
|
%PlayAnimation(4, 4, 10)
|
||||||
JSL Sprite_PlayerCantPassThrough
|
JSL Sprite_PlayerCantPassThrough
|
||||||
%ShowSolicitedMessage($0C3)
|
%ShowSolicitedMessage($0C3)
|
||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -210,7 +206,6 @@ Sprite_DekuScrub_Draw:
|
|||||||
.nextTile
|
.nextTile
|
||||||
|
|
||||||
PHX ; Save current Tile Index?
|
PHX ; Save current Tile Index?
|
||||||
|
|
||||||
TXA : CLC : ADC $06 ; Add Animation Index Offset
|
TXA : CLC : ADC $06 ; Add Animation Index Offset
|
||||||
|
|
||||||
PHA ; Keep the value with animation index offset?
|
PHA ; Keep the value with animation index offset?
|
||||||
@@ -238,13 +233,9 @@ Sprite_DekuScrub_Draw:
|
|||||||
LDA .properties, X : STA ($90), Y
|
LDA .properties, X : STA ($90), Y
|
||||||
|
|
||||||
PHY
|
PHY
|
||||||
|
|
||||||
TYA : LSR #2 : TAY
|
TYA : LSR #2 : TAY
|
||||||
|
|
||||||
LDA .sizes, X : ORA $0F : STA ($92), Y ; store size in oam buffer
|
LDA .sizes, X : ORA $0F : STA ($92), Y ; store size in oam buffer
|
||||||
|
|
||||||
PLY : INY
|
PLY : INY
|
||||||
|
|
||||||
PLX : DEX : BPL .nextTile
|
PLX : DEX : BPL .nextTile
|
||||||
|
|
||||||
PLX
|
PLX
|
||||||
@@ -306,3 +297,4 @@ Sprite_DekuScrub_Draw:
|
|||||||
; db $02, $02, $02, $02
|
; db $02, $02, $02, $02
|
||||||
; db $02, $02, $02, $02
|
; db $02, $02, $02, $02
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user