Game Development Reference
In-Depth Information
Figure 9-3. Dice Battle Player character plus Enemy characters tile sheet
Adding sound for Dice Battle
Most of the sounds for Dice Battle are the same as Color Drop. However, we have added three
new ones. SoundHit is the sound that is plays when the computer takes a turn. It's a clunk sound
that makes it feel like the player is being bashed on the head. The other two sounds are
SoundTrack1 and SoundTrack2 . These are two looping songs that we will use for the soundtrack in
the game. We consider the soundtrack to be a special sound, and in a later section, we will show
you a strategy that will help you work with multiple soundtracks that need to be played at different
times in your game. The complete list of sounds can be found in Table 9-1.
Table 9-1. Battle Dice Sounds
Library Class Name
Description
SoundBonus
Plays when the player connects dice
SoundClick
Plays when the player clicks dice
SoundWin
Plays when the player wins a battle
SoundLose
Plays when the player loses a battle
SoundHit
Plays when the computer connects dice
SoundTrack1
Soundtrack for title screen
SoundTrack2
Soundtrack for main game
Search WWH ::




Custom Search