add title screen separate from cover picture

This commit is contained in:
4am 2019-06-24 19:03:59 -04:00
parent 2678d451c6
commit 8c66a43e59
6 changed files with 75 additions and 6 deletions

View File

@ -85,6 +85,7 @@ dsk: md asm
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "build/LAUNCHER.SYSTEM" >>build/log
cp res/prefs.conf build/PREFS.CONF >>build/log
bin/padto 512 build/PREFS.CONF
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "res/TITLE" >>build/log
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "res/COVER" >>build/log
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "build/PREFS.CONF" >>build/log
$(CADIUS) ADDFILE build/"$(DISK)" "/${VOLUME}/" "res/GAMES.CONF" >>build/log

BIN
res/TITLE Normal file

Binary file not shown.

View File

@ -6,3 +6,4 @@ ATTRACT.CONF=Type(04),AuxType(8000),Access(C3)
FX.CONF=Type(04),AuxType(8000),Access(C3)
DFX.CONF=Type(04),AuxType(8000),Access(C3)
COVER=Type(06),AuxType(2000),Access(C3)
COVER=Type(06),AuxType(2000),Access(C3)

51
res/attic/title.a Normal file
View File

@ -0,0 +1,51 @@
lda #8
sta VTAB
lda #12
sta HTAB
lda OffscreenPage
ror
+LDADDR TITLETOP
jsr DrawString
inc VTAB
lda #12
sta HTAB
lda OffscreenPage
ror
+LDADDR TITLE1
jsr DrawString
inc VTAB
lda #12
sta HTAB
lda OffscreenPage
ror
+LDADDR TITLE2
jsr DrawString
inc VTAB
lda #12
sta HTAB
lda OffscreenPage
ror
+LDADDR TITLEBOTTOM
jsr DrawString
inc VTAB
TITLETOP
!byte 15
!byte 6,0,0,0,0,0,0,0,0,0,0,0,0,0,7
TITLE1
!byte 15
!byte 3
!text " T O T A L "
!byte 3
TITLE2
!byte 15
!byte 3
!text " R E P L A Y "
!byte 3
TITLEBOTTOM
!byte 15
!byte 8,0,0,0,0,0,0,0,0,0,0,0,0,0,9

Binary file not shown.

View File

@ -159,7 +159,7 @@ OnInputChanged
bne -
lda #$7F
sta UILine2+1
jsr _LoadCoverOffscreen
jsr _LoadTitleOffscreen
jsr _DrawSearchBarOffscreen
jsr _ShowOtherPage
clc
@ -254,6 +254,20 @@ OnInputChanged
;------------------------------------------------------------------------------
_LoadTitleOffscreen
; clobbers all
lda OffscreenPage
beq +
lda #$40
+HIDE_NEXT_2_BYTES
+ lda #$20
sta @addr+1
+LDADDR Title
jsr SetPath
jsr LoadFileAt
@addr !word $FD00 ; SMC
rts
_LoadCoverOffscreen
; clobbers all
lda OffscreenPage
@ -261,17 +275,16 @@ _LoadCoverOffscreen
lda #$40
+HIDE_NEXT_2_BYTES
+ lda #$20
sta @coveraddress+1
sta @addr+1
+LDADDR Cover
jsr SetPath
jsr LoadFileAt ; load default background
@coveraddress
!word $FD00 ; SMC
jsr LoadFileAt
@addr !word $FD00 ; SMC
rts
_DrawSearchBarOffscreen
; clobbers all
lda #22 ; draw visible search bar
LDA #22 ; draw visible search bar
sta VTAB
lda OffscreenPage
ror ; draw on offscreen page
@ -326,6 +339,9 @@ kFXCoverFade
Cover !byte 5
!text "COVER"
Title !byte 5
!text "TITLE"
UILine1
!byte 0,0,0,0,0,0,0,0,0,0
!byte 0,0,0,0,0,0,0,0,0,0