mirror of
https://github.com/blondie7575/GSCats.git
synced 2024-05-28 15:41:28 +00:00
Switch to scanline border effect instead of VBL
This commit is contained in:
parent
3199c94eb5
commit
826660643c
24
graphics.s
24
graphics.s
|
@ -241,9 +241,9 @@ setBorderAtScanLine:
|
||||||
ora #%01000000
|
ora #%01000000
|
||||||
sta $e19d00,x
|
sta $e19d00,x
|
||||||
|
|
||||||
; lda $e19dc7 ; Enable interrupt on scanline 199
|
lda $e19dc7 ; Enable interrupt on scanline 199
|
||||||
; ora #%01000000
|
ora #%01000000
|
||||||
; sta $e19dc7
|
sta $e19dc7
|
||||||
|
|
||||||
lda $e0c023 ; Enable scaline interrupts, if needed
|
lda $e0c023 ; Enable scaline interrupts, if needed
|
||||||
ora #%00000010
|
ora #%00000010
|
||||||
|
@ -264,22 +264,22 @@ scanLineInterruptHandler:
|
||||||
and #%11011111
|
and #%11011111
|
||||||
sta $e0c032
|
sta $e0c032
|
||||||
|
|
||||||
; lda scanLineColorChangePhaseCounter
|
lda scanLineColorChangePhaseCounter
|
||||||
; beq scanLineInterruptHandler0
|
beq scanLineInterruptHandler0
|
||||||
|
|
||||||
; lda BORDERCOLOR ; Set border color
|
lda BORDERCOLOR ; Set border color
|
||||||
; and #$f0
|
and #$f0
|
||||||
; ora #$7 ; Set to sky at bottom of screen
|
ora #$7 ; Set to sky at bottom of screen
|
||||||
; sta BORDERCOLOR
|
sta BORDERCOLOR
|
||||||
; dec scanLineColorChangePhaseCounter
|
dec scanLineColorChangePhaseCounter
|
||||||
; bra scanLineInterruptHandlerDone
|
bra scanLineInterruptHandlerDone
|
||||||
|
|
||||||
scanLineInterruptHandler0:
|
scanLineInterruptHandler0:
|
||||||
lda BORDERCOLOR ; Set border color to grass at given scanline
|
lda BORDERCOLOR ; Set border color to grass at given scanline
|
||||||
and #$f0
|
and #$f0
|
||||||
ora #$4
|
ora #$4
|
||||||
sta BORDERCOLOR
|
sta BORDERCOLOR
|
||||||
; inc scanLineColorChangePhaseCounter
|
inc scanLineColorChangePhaseCounter
|
||||||
|
|
||||||
scanLineInterruptHandlerDone:
|
scanLineInterruptHandlerDone:
|
||||||
clc
|
clc
|
||||||
|
|
|
@ -65,9 +65,9 @@ titleScreenCopyLoop:
|
||||||
titleScreenMainLoop:
|
titleScreenMainLoop:
|
||||||
|
|
||||||
; Track animations
|
; Track animations
|
||||||
;jsr syncOverscanBottom
|
;jsr syncOverscanBottom ; This looks awesome but makes interactivity terrible
|
||||||
jsr syncVBL
|
jsr syncVBL
|
||||||
BORDER_COLOR #$7
|
;BORDER_COLOR #$7
|
||||||
|
|
||||||
lda titleAnimationCounter
|
lda titleAnimationCounter
|
||||||
inc
|
inc
|
||||||
|
|
Loading…
Reference in New Issue
Block a user