Added the default directions for junction interaction.

Made the corner change direction animation more snappy.
Made the initial animation frame for vertical carts actually be vertical.
This commit is contained in:
Jared_Brian_
2025-01-27 21:47:19 -07:00
parent e203e57183
commit ed439e28ed
2 changed files with 89 additions and 23 deletions

View File

@@ -132,9 +132,9 @@ macro PlayAnimation(frame_start, frame_end, frame_wait)
{
LDA.w SprTimerB, X : BNE +
LDA.w SprFrame, X : INC : STA.w SprFrame, X
CMP.b #<frame_end>+1 : BCC .noframereset
CMP.b #<frame_end>+1 : BCC ++
LDA.b #<frame_start> : STA.w SprFrame, X
.noframereset
++
LDA.b #<frame_wait> : STA.w SprTimerB, X
+
}
@@ -143,9 +143,9 @@ endmacro
macro PlayAnimBackwards(frame_start, frame_end, frame_wait)
LDA.w SprTimerB, X : BNE +
LDA.w SprFrame, X : DEC : STA.w SprFrame, X
CMP.b #<frame_end> : BCS .noframereset
CMP.b #<frame_end> : BCS ++
LDA.b #<frame_start> : STA.w SprFrame, X
.noframereset
++
LDA.b #<frame_wait> : STA.w SprTimerB, X
+
endmacro