mirror of https://github.com/jeremysrand/BuGS.git
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:
parent
0e1e35c7cb
commit
bcc10e2d4e
|
@ -86,6 +86,12 @@ gameLoop anop
|
||||||
jsl updateSegments
|
jsl updateSegments
|
||||||
jsl updateSounds
|
jsl updateSounds
|
||||||
|
|
||||||
|
lda shouldPreloadSound
|
||||||
|
bne gameLoop_skipPreload
|
||||||
|
jsl preloadSound
|
||||||
|
lda #1
|
||||||
|
sta shouldPreloadSound
|
||||||
|
gameLoop_skipPreload anop
|
||||||
jsl checkKeyboard
|
jsl checkKeyboard
|
||||||
|
|
||||||
jsl waitForVbl
|
jsl waitForVbl
|
||||||
|
@ -1031,5 +1037,6 @@ vblLoop anop
|
||||||
shouldQuit dc i2'1'
|
shouldQuit dc i2'1'
|
||||||
borderColour dc i2'0'
|
borderColour dc i2'0'
|
||||||
frameCount dc i2'0'
|
frameCount dc i2'0'
|
||||||
|
shouldPreloadSound dc i2'0'
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
14
BuGS/main.c
14
BuGS/main.c
|
@ -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)
|
void allocateFilenameHandle(void)
|
||||||
{
|
{
|
||||||
if (filenameHandle == NULL)
|
if (filenameHandle == NULL)
|
||||||
|
|
|
@ -40,7 +40,7 @@ resource rPString (DOWNLOAD_URL_STR, $0000) {
|
||||||
|
|
||||||
|
|
||||||
resource rPString (ARCHIVE_STR, $0000) {
|
resource rPString (ARCHIVE_STR, $0000) {
|
||||||
"BuGS096.bxy"
|
"BuGS097.shk"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ resource rVersion (1) {
|
||||||
{
|
{
|
||||||
0, /* Major version number in BCD */
|
0, /* Major version number in BCD */
|
||||||
9, /* Minor 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 */
|
beta, /* Development phase */
|
||||||
0 /* Release number */
|
0 /* Release number */
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue