-
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
-
rl_channel_allocation-master
说明: 有关于D2D通信中,信道仿真的编程是基于python语言的。(Programming for channel emulation in D2D communication)
- 2019-03-20 21:26:56下载
- 积分:1
-
text color gradually used vc Oh! !
文字的颜色渐变,用到vc哦-text color gradually used vc Oh! !
- 2022-03-13 17:39:59下载
- 积分:1
-
一齐天下
采用极大极小算法的苏拉卡尔塔棋C语言编程(Sura C programming language using minimax algorithm)
- 2020-10-22 17:47:23下载
- 积分:1
-
DCDC_halfbridge_PWM
说明: 半桥高频变压器仿真,频率100KHZ,闭环系统(Half-bridge high-frequency transformer simulation, frequency 100 KHZ, closed-loop system.)
- 2019-12-18 17:53:44下载
- 积分:1
-
nndl-codes-master
神经网络与深度学习案列代码,神经网络与深度学习教程例题代码(Neural Network and Deep Learning Case Code, Neural Network and Deep Learning Course Case Code)
- 2019-04-17 11:37:01下载
- 积分:1
-
MeanFFT&LSCE
对数据进行分段fft分析,最后进行平均,功能类似FFT的平滑处理。(The data are analyzed by segmented fft and eventually averaged. The function is similar to that of FFT smoothing.)
- 2018-11-23 10:20:32下载
- 积分:1
-
VT_X64
说明: 一份简单的VT框架源码~带关键的中文注释(A Simple VT Framework Source)
- 2020-06-19 22:40:02下载
- 积分:1
-
VB打字游戏,有背景音乐,可以设置速度
VB打字游戏,有背景音乐,可以设置速度等-VB typing games, there is background music, you can set the speed
- 2023-05-23 12:55:04下载
- 积分:1
-
矩陣相乘
矩陣相乘
#include
#include
int m,n,o,p,i,j,k,l;
int main()
{
printf("輸入矩陣A之列數m、行數n及矩陣B之列數o、行數p");
printf("
m=");scanf("%d",&m);
printf("n=");scanf("%d",&n);
printf("
o=");scanf("%d",&o);
printf("p=");scanf("%d",&p);
float a[m][n],b[o][p],c[m][p];
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2023-07-05 11:05:03下载
- 积分:1