driven: intro logo transition

This commit is contained in:
Vince Weaver 2024-11-07 14:18:23 -05:00
parent 7a5e916634
commit 77b8eb3e64
7 changed files with 219 additions and 17 deletions

View File

@ -1,3 +1,15 @@
New:
scoll up, 2 pixel high stars randomly chosen?
myst book
falling guy
various of the riven symbols
Loading: Demosplash logo? Count down as loaded?
Intro: Driven animation

View File

@ -4,8 +4,24 @@ ZX02 = ~/research/6502_compression/zx02.git/build/zx02
PNG_TO_HGR = ../../../../utils/hgr-utils/png2hgr
PNG2GR = ../../../../utils/gr-utils/png2gr
all: desire.hgr.zx02
all: desire.hgr.zx02 logo_frame01.hgr.zx02 logo_frame46.hgr.zx02
####
logo_frame01.hgr: logo_frame01.png
$(PNG_TO_HGR) logo_frame01.png > logo_frame01.hgr
logo_frame01.hgr.zx02: logo_frame01.hgr
$(ZX02) -f logo_frame01.hgr logo_frame01.hgr.zx02
####
logo_frame46.hgr: logo_frame46.png
$(PNG_TO_HGR) logo_frame46.png > logo_frame46.hgr
logo_frame46.hgr.zx02: logo_frame46.hgr
$(ZX02) -f logo_frame46.hgr logo_frame46.hgr.zx02
####
@ -13,7 +29,7 @@ desire.hgr: desire-cyan-steffest.png
$(PNG_TO_HGR) desire-cyan-steffest.png > desire.hgr
desire.hgr.zx02: desire.hgr
$(ZX02) desire.hgr desire.hgr.zx02
$(ZX02) -f desire.hgr desire.hgr.zx02
####

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -1,4 +1,4 @@
; Round Desire Logo
; Desire Logo to Driven transistion
;
; by deater (Vince Weaver) <vince@deater.net>
@ -38,34 +38,201 @@ load_loop:
; bit PAGE2 ; look at page2
; load image $2000
lda #<polar_data
lda #<logo_data_01
sta zx_src_l+1
lda #>polar_data
lda #>logo_data_01
sta zx_src_h+1
lda #$20
jsr zx02_full_decomp
; wait a bit
lda #8
jsr wait_seconds
;==============================
; gradually load in final logo
;==============================
lda #0
jsr hgr_page1_clearscreen
; load bg image $4000
lda #<logo_data_46
sta zx_src_l+1
lda #>logo_data_46
sta zx_src_h+1
lda #$40
jsr zx02_full_decomp
;==============================
; logo transition (left/right)
lda #10
sta LEFT_X
lda #36
sta RIGHT_X
lda #0
sta X_OFFSET
logo_transit_outer_loop:
ldx #70
logo_transit_inner_loop:
lda hposn_low,X
sta OUTL
sta INL
lda hposn_high,X
sta OUTH
eor #$60
sta INH
stx SAVE_X
ldx X_OFFSET
ldy LEFT_X
lda (INL),Y
and masks,X
sta (OUTL),Y
ldy RIGHT_X
lda (INL),Y
and masks_reverse,X
sta (OUTL),Y
ldx SAVE_X
inx
cpx #95
bne logo_transit_inner_loop
lda #100
jsr wait
inc X_OFFSET
lda X_OFFSET
cmp #7
bne logo_transit_outer_loop
lda #0
sta X_OFFSET
dec RIGHT_X
inc LEFT_X
lda LEFT_X
cmp #20
bne logo_transit_outer_loop
;==============================
; logo transition (down)
; 161 (23),70 -> 181 (26),106
ldx #70
logo_transit2_inner_loop:
lda hposn_low,X
sta OUTL
sta INL
lda hposn_high,X
sta OUTH
eor #$60
sta INH
stx SAVE_X
ldy #23
lda (INL),Y
sta (OUTL),Y
iny
lda (INL),Y
sta (OUTL),Y
iny
lda (INL),Y
sta (OUTL),Y
iny
lda (INL),Y
sta (OUTL),Y
lda #100
jsr wait
ldx SAVE_X
inx
cpx #106
bne logo_transit2_inner_loop
;==============================
; logo transition (up)
; 140 (20),66 -> 161 (23),106
ldx #106
logo_transit3_inner_loop:
lda hposn_low,X
sta OUTL
sta INL
lda hposn_high,X
sta OUTH
eor #$60
sta INH
stx SAVE_X
ldy #20
lda (INL),Y
sta (OUTL),Y
iny
lda (INL),Y
sta (OUTL),Y
iny
lda (INL),Y
sta (OUTL),Y
lda #100
jsr wait
ldx SAVE_X
dex
cpx #65
bne logo_transit3_inner_loop
; wait a bit
polar_loop:
lda #8
jsr wait_seconds
polar_done:
; done
logo_done:
rts
; .include "../wait_keypress.s"
; .include "../zx02_optim.s"
; .include "../hgr_clear_screen.s"
; .include "../hgr_copy_fast.s"
.include "../hgr_clear_screen.s"
.include "../irq_wait.s"
; .include "../hgr_page_flip.s"
logo_data_01:
.incbin "graphics/logo_frame01.hgr.zx02"
logo_data_46:
.incbin "graphics/logo_frame46.hgr.zx02"
polar_data:
.incbin "graphics/desire.hgr.zx02"
masks:
.byte $81,$83,$87,$8f,$9f,$BF,$FF
masks_reverse:
.byte $C0,$E0,$F0,$F8,$FC,$FE,$FF

View File

@ -13,7 +13,7 @@ DNI: dni.o
ld65 -o DNI dni.o -C $(LINKERSCRIPTS)/apple2_4000.inc
dni.o: dni.s \
../zp.inc ../hardware.inc
../zp.inc ../hardware.inc ../qload.inc
ca65 -o dni.o dni.s -l dni.lst
####

View File

@ -10,7 +10,7 @@ GRAPHICS: graphics.o
ld65 -o GRAPHICS graphics.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
graphics.o: graphics.s \
../zp.inc ../hardware.inc \
../zp.inc ../hardware.inc ../qload.inc \
graphics/floater_wide_steffest.hgr.zx02
ca65 -o graphics.o graphics.s -l graphics.lst

View File

@ -137,6 +137,13 @@ MASKH = $ED
; $F0-$FB can re-use in each file
;==============================================
; LOGO
LEFT_X = $F0
RIGHT_X = $F1
X_OFFSET = $F2
SAVE_X = $F3
; D'NI
SPRITEY = $EE