Challenge: Improve the Breakout Game


Try to improve the game by giving the player more than one life, and maybe also add a menu like in the previous chapter. You can also use the Breakout game as a test platform to check out the helper classes you implemented so far. For example, you could write a log message every time the player completes a level or destroys a block and then check out the log file.

The next chapter introduces the Input class to make it easier to catch all controller inputs. A nice improvement to the game would be to implement rumble support for gamepads like in the last chapter and also shake the screen or add simple explosion graphics when blocks get destroyed. The sky is the limit; if you really like arcade games there are many ways you can improve this game and make it much more fun.

Maybe you are more interested in the helper classes and have several of your own helper classes you would like to add and test using your new knowledge. Now is the time to do that. The next chapter focuses more on reusability; the chapters after that only talk about creating a 3D engine and you might forget about all the useful helper classes until you miss some feature. The good thing about helper classes is that it is easy to improve them all the time. They may become a little bit big like the StringHelper class, but you can always refactor them.

Anyway, have fun with XNA Breakout and relax for a while. Try to get to level 5 without cheating - it is not easy.




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