Invaders game for the Gameduino

Dependencies:   Gameduino mbed

Committer:
TheChrisyd
Date:
Thu Jun 21 19:13:34 2012 +0000
Revision:
0:8a7c58553b44
Child:
1:f44175dd69fd
backup before adding more features

Who changed what in which revision?

UserRevisionLine numberNew contents of line
TheChrisyd 0:8a7c58553b44 1 /*------------------------------------------------------------------
TheChrisyd 0:8a7c58553b44 2 Game sounds
TheChrisyd 0:8a7c58553b44 3 ------------------------------------------------------------------*/
TheChrisyd 0:8a7c58553b44 4 // Where to put the sample playback buffer
TheChrisyd 0:8a7c58553b44 5 static const unsigned int samplePlaybackBuffer = 0x7f00;
TheChrisyd 0:8a7c58553b44 6
TheChrisyd 0:8a7c58553b44 7 // Reset all sounds
TheChrisyd 0:8a7c58553b44 8 void resetGameSounds();
TheChrisyd 0:8a7c58553b44 9
TheChrisyd 0:8a7c58553b44 10 // Update all sounds
TheChrisyd 0:8a7c58553b44 11 void updateGameSounds();
TheChrisyd 0:8a7c58553b44 12
TheChrisyd 0:8a7c58553b44 13 // Set these flags to true to play the corresponding sound
TheChrisyd 0:8a7c58553b44 14 extern bool playerShootSound;
TheChrisyd 0:8a7c58553b44 15 extern bool alienDeathSound;
TheChrisyd 0:8a7c58553b44 16 extern bool playerDeathSound;
TheChrisyd 0:8a7c58553b44 17 extern bool alienBeatSound;
TheChrisyd 0:8a7c58553b44 18 extern bool saucerSound,stopSaucerSnd,saucerDieSound;