Original: WPF Tetris)

Source: Internet
Author: User
/Files/mad/wpftetris.rar development ideas: 1. Block use static methods to record all shapes. 2. Blockmaster in the entire game area. 3. Draw grid layout in the game UI, put a label into each grid, and draw the background of the label based on the values of block and Blockmaster. Square implementation: 1. Moving: Moving is divided into three directions: left and right. It is easy to change the x y coordinate of the block and then draw the label of the block. 2. Unable to move: I decided whether I could move. At first, I made a huge discount, mainly because of incorrect ideas. In the end, I used graphic software to draw a variety of situations and suddenly thought it was so simple. Of course, as long as the block moves 1 GB, whether there is a value that overlaps with the master. 3. Line Elimination: if the line can be eliminated, the first line will be deprecated, which makes it easier to traverse. At the same time, the UI should be re-drawn. CodeIs not object-oriented. The UI and Blockmaster are closely connected ~~ Hope that the person who looks at the target can give advice.

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.