Day and Night improvements, WIP
This commit is contained in:
@@ -1,7 +1,4 @@
|
|||||||
;----------------[ Time system ]----------------
|
;----------------[ Time system ]----------------
|
||||||
; @xkas
|
|
||||||
; warn xkas off
|
|
||||||
lorom
|
|
||||||
|
|
||||||
; tiles locations on HUD
|
; tiles locations on HUD
|
||||||
!hud_min_low = $7EC7CC
|
!hud_min_low = $7EC7CC
|
||||||
@@ -24,8 +21,15 @@ org $068361
|
|||||||
org $328000 ; Free space
|
org $328000 ; Free space
|
||||||
HUD_ClockDisplay:
|
HUD_ClockDisplay:
|
||||||
{
|
{
|
||||||
JSR counter_preroutine
|
JSR RunClock
|
||||||
LDX #$00
|
JSR DrawToHud
|
||||||
|
JSL $09B06E ; Restore Garnish_ExecuteUpperSlots_long
|
||||||
|
RTL
|
||||||
|
}
|
||||||
|
|
||||||
|
DrawToHud:
|
||||||
|
{
|
||||||
|
LDX #$00
|
||||||
.debut
|
.debut
|
||||||
LDY #$00 : LDA $7EE000,x
|
LDY #$00 : LDA $7EE000,x
|
||||||
|
|
||||||
@@ -55,13 +59,12 @@ HUD_ClockDisplay:
|
|||||||
LDA #$30 : STA.l !hud_min_high+1 ; white palette
|
LDA #$30 : STA.l !hud_min_high+1 ; white palette
|
||||||
.finish_draw
|
.finish_draw
|
||||||
INX : CPX #$02 : BMI .debut
|
INX : CPX #$02 : BMI .debut
|
||||||
JSL $09B06E ; Restore Garnish_ExecuteUpperSlots_long
|
RTS
|
||||||
RTL
|
|
||||||
}
|
}
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
|
|
||||||
counter_preroutine:
|
RunClock:
|
||||||
{
|
{
|
||||||
LDA $10 ;checks current event in game
|
LDA $10 ;checks current event in game
|
||||||
CMP #$07 ;dungeon/building?
|
CMP #$07 ;dungeon/building?
|
||||||
@@ -147,7 +150,21 @@ counter_preroutine:
|
|||||||
RTS
|
RTS
|
||||||
}
|
}
|
||||||
|
|
||||||
print pc
|
; WIP mosaic fixes - scawful
|
||||||
|
; FixSpecialAreas:
|
||||||
|
; {
|
||||||
|
; STA $7EE018
|
||||||
|
; JSL BackgroundFix
|
||||||
|
|
||||||
|
; STA.l $7EC300
|
||||||
|
; RTL
|
||||||
|
; }
|
||||||
|
|
||||||
|
; org $28871A
|
||||||
|
; JSL FixSpecialAreas
|
||||||
|
|
||||||
|
; org $288725
|
||||||
|
; JML FixSpecialAreas
|
||||||
|
|
||||||
;-----------------------------------------------
|
;-----------------------------------------------
|
||||||
;----[ Day / Night system * palette effect ]----
|
;----[ Day / Night system * palette effect ]----
|
||||||
|
|||||||
Reference in New Issue
Block a user