Bump the version 0.9.7. Add some code to preload the sounds after initial launch so starting the first game doesn't take extra long.

This commit is contained in:
Jeremy Rand 2021-02-14 14:59:44 -05:00
parent 0e1e35c7cb
commit bcc10e2d4e
3 changed files with 23 additions and 2 deletions

View File

@ -86,6 +86,12 @@ gameLoop anop
jsl updateSegments
jsl updateSounds
lda shouldPreloadSound
bne gameLoop_skipPreload
jsl preloadSound
lda #1
sta shouldPreloadSound
gameLoop_skipPreload anop
jsl checkKeyboard
jsl waitForVbl
@ -1031,5 +1037,6 @@ vblLoop anop
shouldQuit dc i2'1'
borderColour dc i2'0'
frameCount dc i2'0'
shouldPreloadSound dc i2'0'
end

View File

@ -174,6 +174,20 @@ void loadScorpionSound(word addr)
}
void preloadSound(void)
{
LoadResource(rRawSound, SPIDER_SOUND);
LoadResource(rRawSound, DEATH_SOUND);
LoadResource(rRawSound, SEGMENTS_SOUND);
LoadResource(rRawSound, BONUS_SOUND);
LoadResource(rRawSound, KILL_SOUND);
LoadResource(rRawSound, FIRE_SOUND);
LoadResource(rRawSound, EXTRA_LIFE_SOUND);
LoadResource(rRawSound, FLEA_SOUND);
LoadResource(rRawSound, SCORPION_SOUND);
}
void allocateFilenameHandle(void)
{
if (filenameHandle == NULL)

View File

@ -40,7 +40,7 @@ resource rPString (DOWNLOAD_URL_STR, $0000) {
resource rPString (ARCHIVE_STR, $0000) {
"BuGS096.bxy"
"BuGS097.shk"
};
@ -63,7 +63,7 @@ resource rVersion (1) {
{
0, /* Major version number in BCD */
9, /* Minor version number in BCD */
6, /* Bug version number in BCD */
7, /* Bug version number in BCD */
beta, /* Development phase */
0 /* Release number */
},