Fade in/out

This commit is contained in:
Pecusx
2024-08-14 14:16:58 +02:00
parent 0f98b95aac
commit dd5583cc33
3 changed files with 25 additions and 16 deletions
+25 -16
View File
@@ -126,21 +126,26 @@ FirstSTART
jsr ClearScreen jsr ClearScreen
jsr GenerateCharsets jsr GenerateCharsets
jsr GenerateClouds jsr GenerateClouds
jsr FadeColorsIN
;AnyKey ;AnyKey
jsr SetGameScreen jsr SetGameScreen
NewGame NewGame
jsr SetStatusToR jsr SetStatusToR
jsr SetStart jsr SetStart
jsr WorldToScreen
jsr FadeColorsIN
jsr GameR jsr GameR
jsr GameOverR jsr GameOverR
AnyKey AnyKey
jsr FadeColorsOUT
jsr HiScoreR jsr HiScoreR
jsr SetStatusToL jsr SetStatusToL
jsr SetStart jsr SetStart
jsr WorldToScreen
jsr FadeColorsIN
jsr GameL jsr GameL
jsr GameOverL jsr GameOverL
AnyKey AnyKey
jsr FadeColorsOUT
jsr HiScoreL jsr HiScoreL
jmp NewGame jmp NewGame
rts rts
@@ -1209,13 +1214,19 @@ higher5
FadeColor FadeColor
sty COLOR2 sty COLOR2
sty COLOR4 sty COLOR4
sty PCOLR0
sty PCOLR1
sty PCOLR2
sty PCOLR3
waitRTC waitRTC
iny iny
cpy #$10 cpy #$10
bne FadeColor bne FadeColor
lda #$0f lda #$0c
sta COLOR4 sta PCOLR0
sta COLOR2 sta PCOLR1
sta PCOLR2
sta PCOLR3
rts rts
.endp .endp
;----------------------------------------------- ;-----------------------------------------------
@@ -1224,12 +1235,13 @@ FadeColor
FadeColor FadeColor
sty COLOR2 sty COLOR2
sty COLOR4 sty COLOR4
sty PCOLR0
sty PCOLR1
sty PCOLR2
sty PCOLR3
waitRTC waitRTC
dey dey
bpl FadeColor bpl FadeColor
lda #$00
sta COLOR2
sta COLOR4
rts rts
.endp .endp
;----------------------------------------------- ;-----------------------------------------------
@@ -1242,18 +1254,15 @@ FadeColor
mva #>PMgraph PMBASE mva #>PMgraph PMBASE
lda #%00000010 ; P/M on lda #%00000010 ; P/M on
sta GRACTL sta GRACTL
lda #$0c ;lda #$0c
sta PCOLR0 ;sta PCOLR0
sta PCOLR1 ;sta PCOLR1
sta PCOLR2 ;sta PCOLR2
sta PCOLR3 ;sta PCOLR3
lda #90 lda #0
sta HPOSP0 sta HPOSP0
lda #70
sta HPOSP1 sta HPOSP1
lda #60
sta HPOSP2 sta HPOSP2
lda #80
sta HPOSP3 sta HPOSP3
rts rts
.endp .endp
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.