[游戏模版17] Win32 推箱子 迷宫】的更多相关文章

>_<:Here introduce a simple game: >_<:resource >_<:only can push a box and finally arrive the gate. #include <windows.h> // C 运行时头文件 #include <stdlib.h> #include <cstdio> #include <malloc.h> #include <memory.h&…
>_<:Just the minimum Win32  frame don't have any other special function. //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by FE.RC // #define IDR_MAINFRAME 128 #define IDD_FE_DIALOG 102 #define IDD_ABOUTBOX 103 #define I…
>_<:Learning its AI logic. >_<:resource >_<:code: #include <windows.h> // C 运行时头文件 #include <stdlib.h> #include <cstdio> #include <malloc.h> #include <memory.h> #include <tchar.h> #include <time.h&g…
>_<:introduce the functions of define\create\use pen and brush to draw all kinds of line and some graphs. >_<!following 2 files are the same with the previous and file main.cpp has some changes. //{{NO_DEPENDENCIES}} // Microsoft Visual C++ ge…
>_<:use MOUSE_MOVE message refresh the position information. >_<:use LOWORD(lParam) get position x and use HIWORD(lParam) get position y //{{NO_DEPENDENCIES}} // Microsoft Visual C++ generated include file. // Used by FE.RC // #define IDR_MAIN…
>_<:first build some points put in poly1[],poly2[] and poly3[] in the function of InitInstance(...) >_<:then in the function MyDraw() use  PolylineTo(...)\Polyline(...)\Polygon(...) draw diferent line and use PolyBezierTo(...)\PolyBezier(...)…
>_<:there in the MyPaint(...) function respectively use Ellipse(...) draw ellipse, use RoundRect(...) draw rectangle whose angle is round, use Pie(...) draw sector also named fan shap, use Chord(...) draw  arch also named bow shaped. >_<:the s…
>_<:this is the first using mapping. >_<:There will be introducing how to do: First load bitmap picture return handle give hbmp, as following: hbmp=(HBITMAP)LoadImage(NULL,"bg.bmp",IMAGE_BITMAP,600,450,LR_LOADFROMFILE); there "b…
>_<:The same with previous introduction. In the InitInstance fanction make a little change: >_<:Yes just add another picture "dra.bmp" and give the handle to dra.And then call function MyPaint(...) hdc=GetDC(hWnd); mdc=CreateCompatib…
>_<:Previous part we talk about how to map a transparent picture, and this time we will solve the problem how to change a picture's transparency. >_<:Here my method is reading the picture's information and change its RGB or add another picture…