Game Development Reference
In-Depth Information
The Sound project
This project demonstrates use of the s3eAudio API and the SoundEngine module
(which in turn makes use of s3eSound).
On running the example you'll be presented with three clickable buttons that have
been implemented using the GUI module introduced in the last chapter. The first
button toggles an MP3 track on and off using s3eAudio, while the other two start
some sound effects using SoundEngine .
The Video project
This is another simple example showing how to use the s3eVideo API to start and
stop a video clip. A button at the bottom of the screen will start and stop a video clip,
which is played in a continuous loop.
The Skiing project
Finally we come to the Skiing project once again and it will come as no surprise that
it has been enhanced by the addition of some music and sound effects.
The main menu now plays an MP3 audio track while waiting for the player to press
a button. On pressing a button, a confirmation sound effect is played.
In the game itself, several sounds have been added. A swooshing sound is produced,
by using a looping sample, whenever the skier moves and the pitch of this sample is
decreased as the player turns, to make things sound a little more dynamic.
Other sounds that have been added include a selection of celebratory sounds for
when the player passes through a gate, a painful-sounding yell for when the player
collides with an obstacle, and a springy sound that gets played when the player
collides with a flag pole and causes it to wobble.
 
Search WWH ::




Custom Search