Challenge: Create Your XACT Project


The challenge for this chapter is simple; just create your own XACT project like the one that was shown in this chapter. It is important that you feel comfortable in XACT, otherwise you will spend a lot of time rewriting code that is not necessary or you have to search for functionality in XACT that is hidden somewhere you have never looked before.

Additionally, write your own Sound class for the XACT project you created and start with the unit test first. Then implement the constructor and load the XACT project and the wave and sound banks. Finally, implement the Play methods to make your unit test work. As an example of how it’s done you can check out the XnaShooterSoundProject for this chapter and the TestSounds unit test in there.

That’s it; you are now an experienced XACT user. For more details about XACT you can also visit the official XACT forum, which contains many tips and you can ask all the XACT experts for help if you run into trouble with your game code and XACT:

http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=323

If available at the time you are reading this book try to use X3DAudio and check if there is a newer version of Rocket Commander XNA available to show how it’s done.




Professional XNA Game Programming
Professional XNA Programming: Building Games for Xbox 360 and Windows with XNA Game Studio 2.0
ISBN: 0470261285
EAN: 2147483647
Year: 2007
Pages: 138

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net