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