Refactor Time System: Introduce TimeState struct and modularize RunClock

This commit is contained in:
scawful
2025-11-22 19:10:15 -05:00
parent 52a5ed4b02
commit 93bd42be8b
10 changed files with 665 additions and 655 deletions

View File

@@ -27,7 +27,7 @@ UpdateBunnyPalette:
.loop
LDA.l bunny_palette, X
PHX
STA.l !SubPalColor
STA.l TimeState.SubColor
JSL ColorSubEffect
PLX
STA $7EC6E0, X

View File

@@ -15,7 +15,7 @@ UpdateDekuPalette:
.loop
LDA.l deku_palette, X
PHX
STA.l !SubPalColor
STA.l TimeState.SubColor
JSL ColorSubEffect
PLX
STA $7EC6E0, X

View File

@@ -11,7 +11,7 @@ UpdateWolfPalette:
.loop
LDA.l WolfPalette, X
PHX
STA.l !SubPalColor
STA.l TimeState.SubColor
JSL ColorSubEffect
PLX
STA $7EC6E0, X

View File

@@ -19,7 +19,7 @@ UpdateZoraPalette:
.loop
LDA.l zora_palette, X
PHX
STA.l !SubPalColor
STA.l TimeState.SubColor
JSL ColorSubEffect
PLX
STA $7EC6E0, X