Chris Dick
/
Gameduino_Invaders_game
Invaders game for the Gameduino
sound.h@4:e82f4a87df9e, 2013-10-26 (annotated)
- Committer:
- TheChrisyd
- Date:
- Sat Oct 26 22:32:18 2013 +0000
- Revision:
- 4:e82f4a87df9e
- Parent:
- 2:20a89dc286d5
Shields are now destroyed when hit, corrected score displays
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
TheChrisyd | 2:20a89dc286d5 | 1 | /*------------------------------------------------------------------ |
TheChrisyd | 2:20a89dc286d5 | 2 | Game sounds |
TheChrisyd | 2:20a89dc286d5 | 3 | ------------------------------------------------------------------*/ |
TheChrisyd | 2:20a89dc286d5 | 4 | // Where to put the sample playback buffer |
TheChrisyd | 2:20a89dc286d5 | 5 | static const unsigned int samplePlaybackBuffer = 0x7f00; |
TheChrisyd | 2:20a89dc286d5 | 6 | |
TheChrisyd | 2:20a89dc286d5 | 7 | // Reset all sounds |
TheChrisyd | 2:20a89dc286d5 | 8 | void resetGameSounds(); |
TheChrisyd | 2:20a89dc286d5 | 9 | |
TheChrisyd | 2:20a89dc286d5 | 10 | // Update all sounds |
TheChrisyd | 2:20a89dc286d5 | 11 | void updateGameSounds(); |
TheChrisyd | 2:20a89dc286d5 | 12 | |
TheChrisyd | 2:20a89dc286d5 | 13 | // Set these flags to true to play the corresponding sound |
TheChrisyd | 2:20a89dc286d5 | 14 | extern bool playerShootSound; |
TheChrisyd | 2:20a89dc286d5 | 15 | extern bool alienDeathSound; |
TheChrisyd | 2:20a89dc286d5 | 16 | extern bool playerDeathSound; |
TheChrisyd | 2:20a89dc286d5 | 17 | extern bool alienBeatSound; |
TheChrisyd | 2:20a89dc286d5 | 18 | extern bool saucerSound,stopSaucerSnd,saucerDieSound; |