mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-23 00:30:08 +00:00
add title screen separate from cover picture
This commit is contained in:
parent
2678d451c6
commit
8c66a43e59
1
Makefile
1
Makefile
@ -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
|
||||
|
@ -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
51
res/attic/title.a
Normal 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.
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user