Developing Programming Assignments on the XBOX 360 Console

Section II: The XnaAssignmentBase Library
c. Working with media (image and sound)

back to workshop main page


References:

Goals:

Notice:  the procedure by which we include the media files:


BeginTemplateSource: Download and unzip the begin template source folder and you will see two folders: We will:
  1. Show how to include texture images in our project.
  2. Show how to include audio files in our project.
  3. Show how to bound the movement of the circle and play a cue when we attempt to move the circle outside the application window.
  4. Show how to use the image texture files.

1. Including the texture files: 

Now, we can refer to these two images as "bgTexture" and "B" (without the extensions) in our application. 


2. Including the audio files: Now we can use "bound" as a audio cue (hint).


3. Checking the bounds of a circle: 
Repeat the above for each of the bounds to limit the movement of the circle.
 
4. Using the image textures: 


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.


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