Add Zora_TrackHeadToPlayer for Sea Zora NPC
This commit is contained in:
@@ -61,6 +61,11 @@ Sprite_Zora_Handler:
|
|||||||
|
|
||||||
Sprite_Zora_Main:
|
Sprite_Zora_Main:
|
||||||
{
|
{
|
||||||
|
JSR Zora_TrackHeadToPlayer
|
||||||
|
JSL Sprite_PlayerCantPassThrough
|
||||||
|
|
||||||
|
%ShowSolicitedMessage($01A4)
|
||||||
|
|
||||||
LDA.w SprAction, X
|
LDA.w SprAction, X
|
||||||
JSL UseImplicitRegIndexedLocalJumpTable
|
JSL UseImplicitRegIndexedLocalJumpTable
|
||||||
|
|
||||||
@@ -71,14 +76,30 @@ Sprite_Zora_Main:
|
|||||||
Zora_Forward:
|
Zora_Forward:
|
||||||
{
|
{
|
||||||
%PlayAnimation(0,0,10)
|
%PlayAnimation(0,0,10)
|
||||||
%ShowSolicitedMessage($01A4)
|
|
||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
Zora_Right:
|
Zora_Right:
|
||||||
|
{
|
||||||
|
%PlayAnimation(1,1,10)
|
||||||
RTS
|
RTS
|
||||||
|
}
|
||||||
|
|
||||||
Zora_Left:
|
Zora_Left:
|
||||||
|
{
|
||||||
|
%PlayAnimation(1,1,10)
|
||||||
RTS
|
RTS
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Zora_TrackHeadToPlayer:
|
||||||
|
{
|
||||||
|
JSL Sprite_IsToRightOfPlayer : TAY : BEQ .right
|
||||||
|
LDA.b #$00 : STA.w SprAction, X
|
||||||
|
RTS
|
||||||
|
.right
|
||||||
|
LDA.b #$01 : STA.w SprAction, X
|
||||||
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
Sprite_Zora_Draw:
|
Sprite_Zora_Draw:
|
||||||
|
|||||||
Reference in New Issue
Block a user