We know that most commercial game development in Windows is based on DirectX, but people who use MFC may think DirectX is very cumbersome to learn.
In fact, the development of general casual games does not require DirectX support. For example, some games on red and white machines in the past can develop interesting games just like using the familiar GDI.
This series of tutorials will illustrate how to use GDI to develop a playable game.
This document does not explain the specific operations in depth. Just give some general instructions.
Although DirectX is not used, it is required for general windows development, such as message mechanism and usage of GDI objects.
Therefore, you must:
Understand C and C ++
Understand WINDOWS Message Mechanism
Familiar with GDI operations
Measure the test taker's understanding about the game development process.
In addition, I write this series while learning.ArticleThe method is not the best, but at least it can achieve our goal (use Windows GDI to develop a game that can be played)
You are welcome to discuss it together.
In addition, the actual purpose of this article is not to write a game, but to give you a better understanding of the windows mechanism, especially the application of GDI. After all, it is wise to use GDI to write games.
Intended audience:ProgramBeginners.