Add Aquarium splash screen
This commit is contained in:
parent
bca0ea2a9c
commit
204deef9f0
3 changed files with 37 additions and 5 deletions
|
|
@ -77,4 +77,6 @@ Each program directory contains a loadable `.prg` and its readable source:
|
||||||
- BASIC programs use line-numbered, uppercase `.bas` files compatible with stock Commodore BASIC V2. Their PRGs are tokenized at the normal `$0801` BASIC load address.
|
- BASIC programs use line-numbered, uppercase `.bas` files compatible with stock Commodore BASIC V2. Their PRGs are tokenized at the normal `$0801` BASIC load address.
|
||||||
- Machine-code programs use commented ACME `.asm` files. Their PRGs also load at `$0801`, where a short BASIC line starts the 6502 code with `SYS`.
|
- Machine-code programs use commented ACME `.asm` files. Their PRGs also load at `$0801`, where a short BASIC line starts the 6502 code with `SYS`.
|
||||||
|
|
||||||
|
New programs must open with an English splash screen containing the program title, a short description, `c64.p20.dev`, the release date, and a prompt to continue with Space. Gameplay instructions belong on the splash screen rather than occupying permanent rows in the running program.
|
||||||
|
|
||||||
All programs are self-contained and designed for ordinary PAL and NTSC C64 hardware as well as VICE-compatible emulators.
|
All programs are self-contained and designed for ordinary PAL and NTSC C64 hardware as well as VICE-compatible emulators.
|
||||||
|
|
|
||||||
|
|
@ -26,16 +26,31 @@ start:
|
||||||
sta $d020
|
sta $d020
|
||||||
lda #6
|
lda #6
|
||||||
sta $d021
|
sta $d021
|
||||||
lda #147
|
jsr show_splash
|
||||||
jsr CHROUT
|
|
||||||
ldx #0
|
ldx #0
|
||||||
print_title:
|
print_title:
|
||||||
lda title,x
|
lda runtime_title,x
|
||||||
beq initialize
|
beq initialize
|
||||||
jsr CHROUT
|
jsr CHROUT
|
||||||
inx
|
inx
|
||||||
bne print_title
|
bne print_title
|
||||||
|
|
||||||
|
show_splash:
|
||||||
|
ldx #0
|
||||||
|
print_splash:
|
||||||
|
lda splash_text,x
|
||||||
|
beq wait_for_space
|
||||||
|
jsr CHROUT
|
||||||
|
inx
|
||||||
|
bne print_splash
|
||||||
|
wait_for_space:
|
||||||
|
jsr GETIN
|
||||||
|
cmp #32
|
||||||
|
bne wait_for_space
|
||||||
|
lda #147
|
||||||
|
jsr CHROUT
|
||||||
|
rts
|
||||||
|
|
||||||
initialize:
|
initialize:
|
||||||
lda #3
|
lda #3
|
||||||
sta animation_speed
|
sta animation_speed
|
||||||
|
|
@ -435,8 +450,23 @@ exit:
|
||||||
jsr CHROUT
|
jsr CHROUT
|
||||||
rts
|
rts
|
||||||
|
|
||||||
title: !byte 147
|
splash_text:
|
||||||
!text "PETSCII AQUARIUM F FEED 1-3 SPEED Q QUIT"
|
!byte 147,13,13,13
|
||||||
|
!text " PETSCII AQUARIUM"
|
||||||
|
!byte 13,13
|
||||||
|
!text " A LIVELY WORLD OF FISH AND BUBBLES"
|
||||||
|
!byte 13,13
|
||||||
|
!text " F FEEDS 1-3 SPEED Q QUITS"
|
||||||
|
!byte 13,13,13
|
||||||
|
!text " C64.P20.DEV"
|
||||||
|
!byte 13,13
|
||||||
|
!text " RELEASED 16 OCTOBER 2026"
|
||||||
|
!byte 13,13,13
|
||||||
|
!text " PRESS SPACE TO START"
|
||||||
|
!byte 0
|
||||||
|
|
||||||
|
runtime_title: !byte 147
|
||||||
|
!text " PETSCII AQUARIUM"
|
||||||
!byte 0
|
!byte 0
|
||||||
|
|
||||||
fish_x: !byte 4,28,12,33,7,23
|
fish_x: !byte 4,28,12,33,7,23
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Reference in a new issue