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

Similar book on Amazon
XNA Game Studio 4.0 Programming: Developing for Windows Phone 7 and Xbox 360 (Developer's Library)
XNA Game Studio 4.0 Programming: Developing for Windows Phone 7 and Xbox 360 (Developer's Library)
Learning XNA 3.0: XNA 3.0 Game Development for the PC, Xbox 360, and Zune
Learning XNA 3.0: XNA 3.0 Game Development for the PC, Xbox 360, and Zune
Beginning XNA 2.0 Game Programming: From Novice to Professional (Expert's Voice in Game Programming)
Beginning XNA 2.0 Game Programming: From Novice to Professional (Expert's Voice in Game Programming)
Microsoftu00ae XNAu00ae Game Studio 3.0: Learn Programming Now! (Pro - Developer)
Microsoftu00ae XNAu00ae Game Studio 3.0: Learn Programming Now! (Pro - Developer)

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