Add maple.asm

This commit is contained in:
scawful
2024-12-21 16:54:37 -05:00
parent a0d465b05e
commit 1dbaf028ca
3 changed files with 30 additions and 29 deletions

28
Sprites/NPCs/maple.asm Normal file
View File

@@ -0,0 +1,28 @@
MapleHandler:
{
LDA.w SprAction, X
JSL JumpTableLocal
dw Maple_Idle
dw Maple_HandleDreams
Maple_Idle:
{
%PlayAnimation(0,1,16)
JSL Sprite_PlayerCantPassThrough
%ShowSolicitedMessage($01B3) : BCC +
INC.w SprAction, X
+
RTS
}
Maple_HandleDreams:
{
LDA.l $7EF351 : BEQ +
LDA.b #$02 : STA.l $7EF351
LDA.b #$1B : STA.w $012F
STZ.w SprAction, X
+
RTS
}
}

View File

@@ -31,7 +31,6 @@
%Set_Sprite_Properties(Sprite_Mermaid_Prep, Sprite_Mermaid_Long)
Sprite_Mermaid_Long:
{
PHB : PHK : PLB
@@ -139,34 +138,6 @@ Sprite_Mermaid_Main:
}
}
MapleHandler:
{
LDA.w SprAction, X
JSL JumpTableLocal
dw Maple_Idle
dw Maple_HandleDreams
Maple_Idle:
{
%PlayAnimation(0,1,16)
%ShowSolicitedMessage($01B3) : BCC +
INC.w SprAction, X
+
RTS
}
Maple_HandleDreams:
{
LDA.l $7EF351 : BEQ +
LDA.b #$02 : STA.l $7EF351
LDA.b #$1B : STA.w $012F
STZ.w SprAction, X
+
RTS
}
}
LibrarianHandler:
{
LDA.w SprAction, X

View File

@@ -35,6 +35,8 @@ Sprite_Maple = $F0 ; Subtype 1
Sprite_Librarian = $F0 ; Subtype 2
incsrc "Sprites/NPCs/mermaid.asm"
print "End of mermaid.asm ", pc
incsrc "Sprites/NPCs/maple.asm"
print "End of maple.asm ", pc
Sprite_Manhandla = $88
incsrc "Sprites/Bosses/manhandla.asm"