XNa advanced programming: Xbox 360 and Windows 3-9

Source: Internet
Author: User
3.9Challenge: improved breakout games

You can try to set more lifecycles for players and add a game menu as in the previous chapter. You can alsoBreakoutAs a testing platform, games are used to test the currently implemented auxiliary classes. For example, each time a player upgrades or breaks a brick, a log message can be recorded.

The next chapter introduces Input Class, which can more easily capture all input of the controller. Just like in the previous chapter, you can make a very interesting improvement: Gamepad Add Rumble Support, and shake the screen or add a simple explosion effect when the bricks are broken. The sky background is a limitation. If you like arcade games very much ( Arcade Games ), You can improve the game in many ways to make it more fun.

You may be more interested in helper classes and want to use the new knowledge you just learned to write your own helper classes and test them. Now is the time, because the next chapter focuses on reusability ( Reusability ). The following chapters describe how to create 3D Engine. If you need a function, you may have forgotten the useful auxiliary classes you have previously written. However, the benefit of helper classes is that you can constantly improve them. They may become like Stringhelper Class, but you can constantly refactor it ( Refactor ).

Okay. Now, let's relax.XNa breakoutThe game, and strive to rise to the first level without cheating5Level-this is easy.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.