sb: skip intro when you return to the menu screen

This commit is contained in:
Vince Weaver 2023-06-01 17:04:31 -04:00
parent dca40eecea
commit e3a9d29184
5 changed files with 39 additions and 23 deletions

View File

@ -1,6 +1,5 @@
Title
+ Fix menu options
+ Keyboard navigation
+ Add cheat loading screen
+ Only play opening sound once?

View File

@ -17,6 +17,7 @@ qload_start:
lda #0 ; load LEMM engine
sta WHICH_LOAD
sta NOT_FIRST_TIME
lda #1
sta CURRENT_DISK ; current disk number
@ -163,29 +164,28 @@ error_string:
.endif
which_disk_array:
.byte 1,1,1,1 ; TITLE, DUCK, SB, FN
.byte 1,1,1,1 ; LEVEL4, LEVEL5, LEVEL6, LEVEL7
.byte 1,1,1,1 ; LEVEL8, LEVEL9, LEVEL10
.byte 1,1,1,1 ; TITLE, DUCK, ROOF, ASPLODE
.byte 1,1,1,1 ; TARGET, CLIFF, RAT
load_address_array:
.byte $60,$60,$60,$60 ; TITLE, DUCK, SB, FN
.byte $90,$90,$90,$90 ; LEVEL4, LEVEL5, LEVEL6, LEVEL7
.byte $90,$90,$90,$90 ; LEVEL8, LEVEL9, LEVEL10
.byte $60,$60,$60,$60 ; TITLE, DUCK, ROOF, ASPLODE
.byte $60,$60,$60,$60 ; TARGET, CLIFF, RAT
track_array:
.byte 2, 5, 8,11 ; TITLE, DUCK, SB, FN
.byte 15,18,21,24 ; LEVEL4, LEVEL5, LEVEL6, LEVEL7
.byte 27,30,33,33 ; LEVEL8, LEVEL9, LEVEL10
.byte 2, 5, 8,11 ; TITLE, DUCK, ROOF, ASPLODE
.byte 11,11,11,24 ; TARGET, CLIFF, RAT
sector_array:
.byte 0, 0, 0, 0 ; TITLE, DUCK, SB, FN
.byte 0, 0, 0, 0 ; LEVEL4, LEVEL5, LEVEL6, LEVEL7
.byte 0, 0, 0, 0 ; LEVEL8, LEVEL9, LEVEL10
.byte 0, 0, 0, 0 ; TITLE, DUCK, ROOF, ASPLODE
.byte 0, 0, 0, 0 ; TARGET, CLIFF, RAT
length_array:
.byte 32, 16, 16, 32 ; TITLE, DUCK, SB, FN
.byte 46, 46, 46, 46 ; LEVEL4, LEVEL5, LEVEL6, LEVEL7
.byte 46, 46, 32, 32 ; LEVEL8, LEVEL9, LEVEL10
.byte 32, 16, 16, 32 ; TITLE, DUCK, ROOF, ASPLODE
.byte 32, 32, 32, 32 ; TARGET, CLIFF, RAT
qload_end:

View File

@ -306,6 +306,11 @@ play_music:
rat_loop:
;============================
; print "not really" message
;============================
bit KEYRESET
lda #<break_image
sta ZX0_src

View File

@ -15,10 +15,10 @@ hires_start:
jsr HOME
jsr HGR
; bit HIRES
bit FULLGR
; bit SET_GR
; bit PAGE1
lda #0
sta DRAW_PAGE
;====================
; set up tables
@ -71,6 +71,12 @@ yes_language_card:
no_language_card:
;====================
; see if skipping
;====================
lda NOT_FIRST_TIME
bne load_title_image
;===================
;===================
@ -128,9 +134,14 @@ load_title_image:
;==========================
; Play sound
;===========================
lda NOT_FIRST_TIME
bne skip_purple
say_purple:
jsr play_purple
skip_purple:
;==========================
; Update purple sprite
;===========================
@ -148,6 +159,8 @@ say_purple:
lda #0
sta MENU_ITEM
lda #1
sta NOT_FIRST_TIME
main_loop:
;==========================
; Draw arrow

View File

@ -61,11 +61,9 @@ SOUND_STATUS = $67
SOUND_MOCKINGBOARD = $02 ; mockingboard detected
MENU_ITEM = $68
OLD_MENU_ITEM = $69
NOT_FIRST_TIME = $6A
;ZPOS = $78
.if 0
REGISTER_DUMP = $70
A_FINE_TONE = $70
A_COARSE_TONE = $71
@ -104,6 +102,7 @@ ENVELOPE_COARS2 = $8C
ENVELOPE_SHAPE2 = $8D
LYRICSL = $8E
LYRICSH = $8F
.endif
FRAME_COUNT = $90
MB_VALUE = $91