First day of Open Course

Source: Internet
Author: User

First day of Open Course

The main focus is on the basic architecture of the game, the compilation of various types, and finally draw a player tank on the form, and can control the movement, and do not go beyond the screen.

1. Attention class abstraction gameobject-> fathertank-> playertank

2. Pay attention to the use of virtual and abstract methods in the class.

3. Solution to the form non-blinking Problem

4. redraw the form every 50 ms using timer.

5. Resource import problems

6. Abstract The common attributes and methods as much as possible.

7. Singleton design mode to obtain a single object (hungry and lazy)

8. GDI + for drawing (canvas: form, paint brush: Pen, painter: graphic object)

9. Understand the event driver

10. Is as usage

 

 

Supplement yesterday's: Commission, event relationship

The event is very delegate-oriented because there is an implicit delegate in the event, that is, the registration of the event response function is also implemented through the delegate.

First day of Open Course

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.