-
C++开发的推箱子游戏
1.类的划分
Cdraw类
绘画加载地图(包括围墙、人、箱子等等)
Cman类
是否完成(过关)
即时更新...
C++开发的推箱子游戏
1.类的划分
Cdraw类
绘画加载地图(包括围墙、人、箱子等等)
Cman类
是否完成(过关)
即时更新地图
2.设计思想
从文件map.txt里读取地图信息,然后通过Cdraw类加载地图,通过keydown事件调用Cman里的重载函数updatemap,
单参数updateMap(UINT nChar)是用于更改当前小人以及箱子的坐标,记录下来后传给updateMap(int x1, int y1, int x2, int y2, int x3, int y3)
从而改变地图。-C development Tuixiangzi a game. Class division Cdraw painting category loaded maps (including the wall, boxes, etc.) if the class completed Cman (clearance) updated maps 2. Design ideas from the paper map.txt Lane read map information, then pass Cdraw Class Loading maps, Calling the incident through keydown Cman Lane updatemap of overloading functions, updateMap single parameter (UINT nChar) is used to change the current villains and the coordinates of the boxes, After record pass updateMap (int x1, y1 int, int x2, int y2, x3 int, int y3), thus changing map.
- 2022-01-25 13:53:04下载
- 积分:1
-
MSP430单片机仿真器编程器对EEPROM数据的程序,单片机msp430f161…
MSP430仿真器上EEPROM数据的烧写程序,单片机MSP430F1612。-MSP430 emulator programmer on EEPROM data procedures, microcontroller MSP430F1612.
- 2023-09-03 07:20:03下载
- 积分:1
-
用你的聪明才智和细心,逃出这个房间,你能吗?
用你的聪明才智和细心,逃出这个房间,你能吗?-using your wisdom and carefully, and get out of the room, can you?
- 2023-01-14 19:45:03下载
- 积分:1
-
在VC++中读写INI文件.doc, 在VC++中读写INI文件.doc
在VC++中读写INI文件.doc, 在VC++中读写INI文件.doc-In VC++ In reading and writing INI files. Doc, in VC++ In reading and writing INI files. Doc
- 2023-03-01 10:45:03下载
- 积分:1
-
on an artificial intelligence
一个关于人工智能-神经网络的例子及其算法程序 -on an artificial intelligence-examples of neural network algorithms and procedures
- 2022-03-23 11:39:27下载
- 积分:1
-
this a vb series of the GPS program's source code, as long as you will want...
这个是一个vb编的GPS程序的源代码,呵呵希望对大家会有所帮助!-this a vb series of the GPS program"s source code, as long as you will want to help!
- 2022-02-02 06:01:30下载
- 积分:1
-
通信仿真 jakes改进模型的程序,仿真基本理论
通信仿真 jakes改进模型的程序,仿真基本理论-jakes improve communication simulation model of the process, simulation basic theory
- 2022-02-25 15:09:03下载
- 积分:1
-
jad, an anti
jad,一个反编译工具,可以作为eclipse的插件-jad, an anti-compiler tools, can be used as eclipse plug-ins
- 2022-03-25 00:37:02下载
- 积分:1
-
计算器例子程序,很适合初学者学习使用。欢迎下载互相交流。...
计算器例子程序,很适合初学者学习使用。欢迎下载互相交流。-Calculator example program is very suitable for beginners learning to use.
- 2022-12-08 05:05:03下载
- 积分:1
-
a free barcode printing controls
一个完全免费的条码打印控件-a free barcode printing controls
- 2023-08-02 20:10:02下载
- 积分:1