mist_hgr: add cyan theme

This commit is contained in:
Vince Weaver 2021-09-21 20:41:14 -04:00
parent 7307b579a1
commit 1f2c51feb2
2 changed files with 87 additions and 5 deletions

View File

@ -0,0 +1,24 @@
#include ../Makefile.inc
B2D = ../../../utils/bmp2dhr/b2d
PNG2GR = ../../../utils/gr-utils/png2gr
LZSA = ~/research/lzsa/lzsa/lzsa
MAKE_VGI = ../../../graphics/hgr/vgi/make_vgi_asm
all: cyan.pt3.lzsa theme.pt3.lzsa
####
cyan.pt3.lzsa: cyan.pt3
$(LZSA) -r -f2 cyan.pt3 cyan.pt3.lzsa
####
theme.pt3.lzsa: theme.pt3
$(LZSA) -r -f2 theme.pt3 theme.pt3.lzsa
####
clean:
rm -f *~ *.o *.lzsa

View File

@ -185,6 +185,15 @@ mockingboard_found:
; init song ; init song
;================== ;==================
lda #<cyan_music_compressed
sta getsrc_smc+1
lda #>cyan_music_compressed
sta getsrc_smc+2
lda #$BA ; decompress to $BA00
jsr decompress_lzsa2_fast
jsr pt3_init_song jsr pt3_init_song
jmp done_setup_sound jmp done_setup_sound
@ -263,7 +272,18 @@ reload_everything:
; Cyan Logo ; Cyan Logo
;=================================== ;===================================
; missing most of the animation ; missing most of the animation
; also missing music ; also missing (good) music
; play music if mockingboard
lda SOUND_STATUS
and #SOUND_MOCKINGBOARD
beq cyan_title_nomb
cyan_title_mb:
cli
; First ; First
ldx #<cyan1_lzsa ldx #<cyan1_lzsa
@ -277,6 +297,26 @@ reload_everything:
lda #40 lda #40
jsr draw_and_wait jsr draw_and_wait
sei ; disable music
jsr clear_ay_both
jmp cyan_title_done
cyan_title_nomb:
; First
ldx #<cyan1_lzsa
ldy #>cyan1_lzsa
lda #20
jsr draw_and_wait
; Second
ldx #<cyan2_lzsa
ldy #>cyan2_lzsa
lda #40
jsr draw_and_wait
cyan_title_done:
;=================================== ;===================================
; M Y S T letters ; M Y S T letters
;=================================== ;===================================
@ -804,6 +844,21 @@ get_mist_book:
lda SOUND_STATUS lda SOUND_STATUS
and #SOUND_MOCKINGBOARD and #SOUND_MOCKINGBOARD
beq skip_start_music beq skip_start_music
lda #$00
sta DONE_PLAYING
lda #<theme_music_compressed
sta getsrc_smc+1
lda #>theme_music_compressed
sta getsrc_smc+2
lda #$BA ; decompress to $BA00
jsr decompress_lzsa2_fast
jsr pt3_init_song
cli cli
skip_start_music: skip_start_music:
@ -812,11 +867,14 @@ skip_start_music:
jmp change_location jmp change_location
PT3_LOC = theme_music PT3_LOC = $BA00
.align $100 ;.align $100
theme_music: ;theme_music:
.incbin "audio/theme.pt3" cyan_music_compressed:
.incbin "audio/cyan.pt3.lzsa"
theme_music_compressed:
.incbin "audio/theme.pt3.lzsa"
; click on book, plays theme ; click on book, plays theme