Add comments to switch track sprite
This commit is contained in:
@@ -51,13 +51,6 @@ Sprite_RotatingTrack_Long:
|
|||||||
|
|
||||||
; =========================================================
|
; =========================================================
|
||||||
|
|
||||||
; Modes
|
|
||||||
; 0 = TopLeft -> TopRight
|
|
||||||
; 1 = TopRight -> BottomRight
|
|
||||||
; 2 = BottomRight -> BottomLeft
|
|
||||||
; 3 = BottomLeft -> TopLeft
|
|
||||||
; 4 = TopRight -> TopLeft
|
|
||||||
|
|
||||||
Sprite_RotatingTrack_Prep:
|
Sprite_RotatingTrack_Prep:
|
||||||
{
|
{
|
||||||
PHB : PHK : PLB
|
PHB : PHK : PLB
|
||||||
@@ -70,6 +63,12 @@ Sprite_RotatingTrack_Prep:
|
|||||||
}
|
}
|
||||||
|
|
||||||
; =========================================================
|
; =========================================================
|
||||||
|
; Modes
|
||||||
|
; 0 = TopLeft -> TopRight
|
||||||
|
; 1 = TopRight -> BottomRight
|
||||||
|
; 2 = BottomRight -> BottomLeft
|
||||||
|
; 3 = BottomLeft -> TopLeft
|
||||||
|
; 4 = TopRight -> TopLeft
|
||||||
|
|
||||||
SwitchRam = $37
|
SwitchRam = $37
|
||||||
|
|
||||||
@@ -77,12 +76,15 @@ Sprite_RotatingTrack_Main:
|
|||||||
{
|
{
|
||||||
LDA.w SprAction, X
|
LDA.w SprAction, X
|
||||||
JSL UseImplicitRegIndexedLocalJumpTable
|
JSL UseImplicitRegIndexedLocalJumpTable
|
||||||
|
|
||||||
dw TopLeftToTopRight
|
dw TopLeftToTopRight
|
||||||
dw TopRightToBottomRight
|
dw TopRightToBottomRight
|
||||||
dw BottomRightToBottomLeft
|
dw BottomRightToBottomLeft
|
||||||
dw BottomLeftToTopLeft
|
dw BottomLeftToTopLeft
|
||||||
dw TopRightToTopLeft
|
dw TopRightToTopLeft
|
||||||
|
|
||||||
|
; -------------------------------------------------------
|
||||||
|
; 00 = TopLeft -> TopRight
|
||||||
TopLeftToTopRight:
|
TopLeftToTopRight:
|
||||||
{
|
{
|
||||||
LDA SwitchRam : BNE part2
|
LDA SwitchRam : BNE part2
|
||||||
@@ -97,6 +99,8 @@ Sprite_RotatingTrack_Main:
|
|||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; -------------------------------------------------------
|
||||||
|
; 01 = TopRight -> BottomRight
|
||||||
TopRightToBottomRight:
|
TopRightToBottomRight:
|
||||||
{
|
{
|
||||||
LDA SwitchRam : BNE part2_a
|
LDA SwitchRam : BNE part2_a
|
||||||
@@ -111,6 +115,8 @@ Sprite_RotatingTrack_Main:
|
|||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; -------------------------------------------------------
|
||||||
|
; 02 = BottomRight -> BottomLeft
|
||||||
BottomRightToBottomLeft:
|
BottomRightToBottomLeft:
|
||||||
{
|
{
|
||||||
LDA SwitchRam : BNE part2_b
|
LDA SwitchRam : BNE part2_b
|
||||||
@@ -125,6 +131,8 @@ Sprite_RotatingTrack_Main:
|
|||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; -------------------------------------------------------
|
||||||
|
; 03 = BottomLeft -> TopLeft
|
||||||
BottomLeftToTopLeft:
|
BottomLeftToTopLeft:
|
||||||
{
|
{
|
||||||
LDA SwitchRam : BNE part2_c
|
LDA SwitchRam : BNE part2_c
|
||||||
@@ -140,6 +148,8 @@ Sprite_RotatingTrack_Main:
|
|||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; -------------------------------------------------------
|
||||||
|
; 04 = TopRight -> TopLeft
|
||||||
TopRightToTopLeft:
|
TopRightToTopLeft:
|
||||||
{
|
{
|
||||||
LDA SwitchRam : BNE part2_d
|
LDA SwitchRam : BNE part2_d
|
||||||
@@ -157,6 +167,8 @@ Sprite_RotatingTrack_Main:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; =========================================================
|
||||||
|
|
||||||
Sprite_RotatingTrack_Draw:
|
Sprite_RotatingTrack_Draw:
|
||||||
{
|
{
|
||||||
JSL Sprite_PrepOamCoord
|
JSL Sprite_PrepOamCoord
|
||||||
|
|||||||
Reference in New Issue
Block a user