Developing Game-Themed Applications with XNA

Day 1 - Section III: The Block Breaker Game
g. Audio Effects

back to Day-1 main page


References:

Goals: In this tutorial we want to experience:

Library function to notice:

Implementation:
  1. Including aduio resources: Under the Solution Explorer, open the Content tab,
  2. Bounce cue:
  3. Break cue:
  4. Wall and BallDie cues:


Lesson Learned:

Please refer to the  library documentation for more details on working with audio effects. The most important point to repeat here is, we only have one output channel, and thus we should use audio as a cue when an event happens (bouncing). Working with the XNACS1LibBase library, we cannot have a constant music playing in the background.


This document and the related materials are developed with support from Microsoft Research Computer Gaming Initiative under the Computer Gaming Curriculum in Computer Science RFP, Award Number 15871, and 16531.


Kelvin Sung
Computing and Software Systems
University of Washington, Bothell
ksung@u.washington.edu