Home

Forum

Games

~~~~~~~~~~~~~

Chapter
Examples



Programming 2D Games

Official site of "Programming 2D Games" the book
by: Charles Kelly

Chapter 7 Sound

Sound Example 1

One spaceship bounces off the d\edges of the window. A different sound effect is played for each edge

  • Demonstrates using the XACT audio engine to play game sounds.

Sound Example 1

download......(Source Included)

Limit Instances

Two spaceships are displayed, ship A and ship B. Pressing the 'A' key plays a sound effect that is limited to one instance by setting the Limit Instances Cue property to 1 in the XACT GUI tool. Pressing the 'B' key plays a sound effect that has unlimited instances.

  • Demonstrates using the XACT GUI tool to control the playback of sound effects.

Limit Instances

download......(Source included)

Supplement

Chapter 7 Supplement, audio compression using XACT and pausing sounds by category.

 

Supplement

Download......(pdf file)

   


Creative Commons License
Programming 2D Games Examples by Charles Kelly are licensed under a Creative Commons Attribution 3.0 Unported License.

 

This website copyright © 2012 by Charles Kelly, All Rights Reserved

Last Updated:

20 March, 2015