Add MinecartFollower_TransitionToSprite for DrawMinecartFollwer
This commit is contained in:
@@ -775,21 +775,8 @@ MinecartFollower_Bottom:
|
||||
db $3D, $7D
|
||||
}
|
||||
|
||||
; Minecart Follower Main Routine and Draw
|
||||
DrawMinecartFollower:
|
||||
MinecartFollower_TransitionToSprite:
|
||||
{
|
||||
JSL $099EFC ; Follower_Initialize
|
||||
|
||||
LDX !MinecartDirection
|
||||
LDA .direction_to_anim, X : STA $02CF
|
||||
|
||||
JSR FollowerDraw_CachePosition
|
||||
JSR MinecartFollower_Top
|
||||
JSR MinecartFollower_Bottom
|
||||
|
||||
; Check the current submodule in the underworld
|
||||
LDA.b $11 : BNE .dont_spawn
|
||||
LDA !LinkInCart : BEQ .dont_spawn
|
||||
LDA.b #$A3
|
||||
JSL Sprite_SpawnDynamically
|
||||
TYX
|
||||
@@ -810,13 +797,32 @@ DrawMinecartFollower:
|
||||
LDA .direction_to_anim, X : STA $0D90, X
|
||||
JSL Sprite_Minecart_Prep
|
||||
LDA.b #$00 : STA.l $7EF3CC
|
||||
.dont_spawn
|
||||
RTS
|
||||
|
||||
.direction_to_anim
|
||||
db $02, $00, $02, $00
|
||||
}
|
||||
|
||||
; Minecart Follower Main Routine and Draw
|
||||
DrawMinecartFollower:
|
||||
{
|
||||
JSL $099EFC ; Follower_Initialize
|
||||
|
||||
LDX !MinecartDirection
|
||||
LDA .direction_to_anim, X : STA $02CF
|
||||
|
||||
JSR FollowerDraw_CachePosition
|
||||
JSR MinecartFollower_Top
|
||||
JSR MinecartFollower_Bottom
|
||||
|
||||
; Check the current submodule in the underworld
|
||||
LDA.b $11 : BNE .dont_spawn
|
||||
LDA !LinkInCart : BEQ .dont_spawn
|
||||
JSR MinecartFollower_TransitionToSprite
|
||||
.dont_spawn
|
||||
RTS
|
||||
}
|
||||
|
||||
FollowerDraw_CachePosition:
|
||||
{
|
||||
LDX.b #$00
|
||||
@@ -933,8 +939,18 @@ CheckForFollowerIntraroomTransition:
|
||||
RTL
|
||||
}
|
||||
|
||||
LinkState_Minecart:
|
||||
{
|
||||
|
||||
RTL
|
||||
}
|
||||
|
||||
pushpc
|
||||
|
||||
org $07A50F
|
||||
JSL LinkState_Minecart
|
||||
RTS
|
||||
|
||||
; Follower_OldManUnused
|
||||
org $09A41F
|
||||
JSL CheckForMinecartFollowerDraw
|
||||
|
||||
Reference in New Issue
Block a user