Space invaders with a nRF2401A wireless joypad
Dependencies: Gameduino mbed nRF2401A
Fork of Gameduino_Invaders_game by
Gameduino and an nRF2401A hooked up to an mbed on an mbeduino:
sound.h@5:3ede9991d8e0, 2014-03-09 (annotated)
- Committer:
- TheChrisyd
- Date:
- Sun Mar 09 12:27:20 2014 +0000
- Revision:
- 5:3ede9991d8e0
- Parent:
- 2:20a89dc286d5
Update to match Library update
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; |