xmas2023: continuous possible

This commit is contained in:
Vince Weaver 2023-12-23 17:12:56 -05:00
parent c8ca10b60e
commit ab57c78383
4 changed files with 53 additions and 16 deletions

View File

@ -62,6 +62,7 @@ draw_scene:
draw_scene_loop:
wait_delay_smc:
lda #200
jsr wait

View File

@ -1,9 +1,40 @@
;=============================
; draw the fireplace scene
;=============================
fireplace_restart:
lda #0
sta FRAMEL
sta FRAMEH
bit PAGE2
lda #4
sta DRAW_PAGE
lda #<fireplace_data
sta INL
lda #>fireplace_data
sta INH
; speed up for second time
lda #1
sta wait_delay_smc+1
jsr draw_scene
lda #$DD
sta FIRE_COLOR
bit KEYRESET
jmp fireplace_scroller
;=============================
; draw the fireplace scene
;=============================
fireplace:
fireplace_opener:
lda #0
sta FRAMEL
sta FRAMEH
@ -25,9 +56,6 @@ fireplace:
lda #$40
jsr zx02_full_decomp
; jsr wait_until_keypress
bit SET_GR
bit LORES
bit FULLGR
@ -385,7 +413,7 @@ frame_noflo2:
lda #1
cmp current_pattern_smc+1
bcc totally_done_fireplace
; bcc totally_done_fireplace
beq totally_done_fireplace
jmp done_music2
@ -411,7 +439,7 @@ totally_done_fireplace:
;=================================
;=================================
;=================================
fireplace_scroller:
lda #0
sta OFFSET
@ -458,11 +486,11 @@ frame_noflo3:
and #SOUND_MOCKINGBOARD
beq no_music3
lda #3
cmp current_pattern_smc+1
bcc totally_done_scroll
beq totally_done_scroll
jmp done_music3
; lda #3
; cmp current_pattern_smc+1
; bcc totally_done_scroll
; beq totally_done_scroll
; jmp done_music3
no_music3:
lda FRAMEH

View File

@ -11,6 +11,10 @@ plasma_tree:
lda #0
sta FRAME
lda #4
sta DRAW_PAGE
bit PAGE2
; remap the masks
; $00->$00
@ -57,7 +61,7 @@ bp3:
; lda #40
; jsr wait_for_pattern
; bcc keep_making_plasma
; jmp done_plasmacube
; jmp done_making_plasma
; update frame count
@ -222,9 +226,6 @@ VBLANK:
rts
done_plasmacube:
rts
;.align 256

View File

@ -24,7 +24,7 @@ xmas_main:
; draw opening scene
;======================================
jsr fireplace
jsr fireplace_opener
repeat:
@ -41,6 +41,13 @@ repeat:
jsr plasma_tree
;======================================
; fireplace without vapor lock
;======================================
jsr fireplace_restart
finished:
jmp repeat