add eon owl dialogue

This commit is contained in:
scawful
2024-08-10 13:26:38 -04:00
parent eab1f82875
commit 074453c39e

View File

@@ -54,6 +54,8 @@ Sprite_EonOwl_Prep:
{
PHB : PHK : PLB
; If Map 0x50, don't spawn after intro
PLB
RTL
@@ -63,8 +65,8 @@ Sprite_EonOwl_Prep:
Sprite_EonOwl_Main:
{
LDA.w SprAction, X; Load the SprAction
JSL UseImplicitRegIndexedLocalJumpTable; Goto the SprAction we are currently in
LDA.w SprAction, X ; Load the SprAction
JSL UseImplicitRegIndexedLocalJumpTable ; Goto the SprAction we are currently in
dw EonOwl_Idle
dw EonOwl_IntroDialogue
@@ -80,7 +82,7 @@ Sprite_EonOwl_Main:
LDA POSY : STA $03
LDA SprX, X : STA $04
LDA SprY, X : STA $05
JSL GetDistance8bit_Long : CMP #$18 : BCS .not_too_close
JSL GetDistance8bit_Long : CMP #$28 : BCS .not_too_close
%GotoAction(1)
.not_too_close
@@ -91,7 +93,9 @@ Sprite_EonOwl_Main:
{
%PlayAnimation(0,1,16)
; TODO: Pick a dialogue ID and display it
%ShowUnconditionalMessage($00E6)
%GotoAction(2)
RTS
}
@@ -100,6 +104,10 @@ Sprite_EonOwl_Main:
EonOwl_FlyingAway:
{
%PlayAnimation(2,3,16)
LDA.b #$FC : STA.w SprYSpeed, X
JSL Sprite_Move
RTS
}
}