Sakamoto Chihiro "Visual C + + adventure game Programming" personal reading notes part_1

Source: Internet
Author: User
Tags win32 window

Because it is about the book's first reading notes, the general content of the book, here briefly;

"The Book of Visual C + + adventure game Programming"

"Author" Sakamoto Chihiro (Japan)

"Game content" Avg Adventure game (Galgame is one of AVG's)

"Game target Environment" Microsoft Windows xp/2000/me

"Development with IDE" Microsoft Visual C + + 6.0

"Program Language" C + +

"Graphics Library" Win32 GDI API

"Sound Library" Win32 MCI API

"Class Library" Winlib

The scripting engine uses a command-like scripting language similar to DOS batch (BAT), has no variable type, supports logical divergence processing and goto jump, supports script invocation, requires MKScript.exe to be compiled into an intermediate code, and executes through ScrPlayer.exe;

Now know so much, if there is missing information, will be complete;

The publication date of this book is November 2004, the use of the API is now very backward, but the book's core algorithm is not related to the API, a long time ago, the blogger was also learning about GDI and how to use the Win32 API to create Win32 standard form when the book was contacted, but the base Limited, impatient gas, did not fully appreciate the essence of the book, now determined to brush the head to review again, is to make up the original regret, GDI said strong not strong, said not strong but very strong, the key is not the API itself, but in the use of the API, the author Sakamoto Chihiro teacher Let me learn this, If there are students who are still reading this book, I hope these articles can bring you some help;

This article is mainly to record the various classes (class) names and features that have been seen so far;

"CWindow" Win32 standard window encapsulation class

"CWINAPP" WIN32 standard application encapsulation class, support multi-window and dialog box (Dialog);

"CDialog" Win32 Standard dialog box (Dialog) encapsulation class;

"Cmainwin" inherits from CWindow, conforms to the Game Window Appearance Win32 window encapsulation class, this window cannot change the size, has the fixed customer area size, contains a menu;

"Cgraphictestapp" inherits from CWinApp, which conforms to the WIN32 application encapsulation class of the game event processing process, and is used to create and login Cmainwin window;

"CAboutDlg" inherits from CDialog, which is used to display the game copyright information and the Author's Information dialog box;

The "Cdib" DIB (device independent BITMAP) equipment-independent bitmap wrapper class for loading Dib from a file, creating a blank Dib, and obtaining DIB information, without support for drawing functions;

"CImage" inherits from the cdib,24 bit color depth (BPP) Special Dib class, function with Cdib, but only for 24 color DIB, support color operation and color mixing between two DIB, does not support the drawing function;

"Cdrawimage" inherits from CImage, used to create a DIB section, and uses GDI functions to draw a DIB;

Sakamoto Chihiro "Visual C + + adventure game Programming" personal reading notes part_1

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.