XNa advanced programming: Xbox 360 and Windows 4-6

Source: Internet
Author: User
4.6Challenge: Create nextblock game components

This chapter has not really discussed Nextblock There is a reason to do this because I want you to create it yourself. In this bookSource codeMedium, Nextblock Class is empty, and your task is to fill it and run it. In this game, Nextblock Game components have been added Tetrisgrid Class, you have seen all the methods. If you have any questions when implementing your own method, you can view XNa Tetris Project SourceCodeIn Nextblock Class and make some improvements. However, I suggest you try to write this component or make some other improvements to better familiarize yourself with how these new classes are used.

Nextblock The component should be able to display the next block type to be displayed. Use Tetrisgrid Class Blocktypes Enumeration, placing the next square in 5 × 5 And add some text ( 4-11 ).

Figure4-11

Tip: although this is a great game, do not waste too much time playing it, because there are more fun games waiting for you.

Related Article

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.