-
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
-
温度测试
用声音为 89V51RD2 的温度测试
该代码是为 LM35 和 PCF8591 ADC_DAC 组件。
它读取到液晶和语音电路利用 ISD4004 TEMP 和发送消息。
- 2022-08-17 15:40:22下载
- 积分:1
-
猜数字小游戏。游戏规则:随机产生4个数字,由玩家输入4个不重复的数字(如:8 3 1 2)按回车后电脑给出提示,其形式为"?A?B".你所输入的四位数中,位置和...
猜数字小游戏。游戏规则:随机产生4个数字,由玩家输入4个不重复的数字(如:8 3 1 2)按回车后电脑给出提示,其形式为"?A?B".你所输入的四位数中,位置和数字都正确则为A,数字相同但位置不相同时为B,你只可以猜10次,若你所用的次数小于纪录保持者,则为破纪录。-small game viewing. The rules of the game : randomly generated four figures from the importation of four players not to repeat the figures (eg : 8 3 1 2) by the transport after the computer is suggested, in the form of "A B." You have entered the four-digit, location and the correct figures for A, figures but with the location is not same as B, you can only guess 10 times, if you use less than the number of records, compared with the record.
- 2022-12-27 04:05:03下载
- 积分:1
-
Linux in the last century have many graphical user interface (GUI) So when you i...
Linux在上个世纪就已经有了很多种图形用户界面(GUI),所以当你安装一个流行的Linux以后,上
手几乎和Windows同样轻松。不过我们还是会介绍一些shell命令并建议多使用shell。这样可以给以后阅
读编译脚本、自己建立交叉编译环境等工作带来便利。在图形用户界面打开shell 只需点击菜单中的终端
或者点击运行,输入一个shell的名称并回车,比如bash。-Linux in the last century have many graphical user interface (GUI) So when you install a popular Linux, the unfamiliar, and Windows almost equally relaxed. However, we will introduce some shell commands and recommended more use of the shell. This can give after reading the script compiler and create cross-compiler environment, facilitate the work. The graphical user interface shell opened by clicking the menu or click on the terminal operation, the importation of a shell and enter the name, such as bash.
- 2022-11-08 05:00:03下载
- 积分:1
-
为PW 论坛的thread页面增加6种新的附件图标,增加美观性和直观性...
为PW 论坛的thread页面增加6种新的附件图标,增加美观性和直观性-for PW Forum thread pages increased six new annex icon, increase aesthetics and intuitive
- 2023-05-15 03:00:02下载
- 积分:1
-
贝尔曼
bellman-ford的模板,方便大家使用,可以直接粘贴使用-bellman-ford template to facilitate the use of paste can be directly used
- 2022-01-25 22:50:50下载
- 积分:1
-
php的源代码,里面的内容很丰富哦!希望对大家有用!
php的源代码,里面的内容很丰富哦!希望对大家有用!-php source code, which covers a wide range Oh! Hope for all of us!
- 2022-01-31 03:40:12下载
- 积分:1
-
计算机数值分析实验题目 三次样条插值的程序 满足三次样条插值的三弯矩法 编制第一与第二边界条件的程序...
计算机数值分析实验题目 三次样条插值的程序 满足三次样条插值的三弯矩法 编制第一与第二边界条件的程序-Computer Numerical Analysis Experiment topics cubic spline interpolation procedures meet cubic spline interpolation of three Moment preparing for the first and second boundary conditions procedures
- 2023-07-11 07:25:03下载
- 积分:1
-
这是一个彩票程序,算法科学,用法简单。
这是一个彩票程序,算法科学,用法简单。-This is a lottery process, the algorithm science, and applying simple.
- 2022-02-02 08:39:04下载
- 积分:1
-
传感器网络吞吐量测试
for testing throughput of sensor network
- 2022-03-26 01:49:08下载
- 积分:1