-
System will automatically delete the directory of debug and release, so please d...
System will automatically delete the directory of debug and release, so please do not put files on these two directory System will automatically delete the directory of debug and release, so please do not put files on these two directory
- 2022-04-22 14:44:37下载
- 积分:1
-
Type of registry operations, registry operations category, type of registry oper...
注册表操作类型,注册表操作类别,注册表操作类型,注册表操作类别
- 2023-08-03 20:25:02下载
- 积分:1
-
asp.net 會計系統源碼
人asp.net 會計系統源碼,可以用來2次開發,如果想學會計系統的人可以參考看看唷。
- 2022-01-26 06:00:37下载
- 积分:1
-
关于一些C++学习的经验,希望对需要的朋友有一定的帮助!
关于一些C++学习的经验,希望对需要的朋友有一定的帮助!-On a number of C++ Learning experience, in the hope that friends in need of some help!
- 2022-01-26 02:13:12下载
- 积分:1
-
该C 程序描绘的是红旗飘扬的样了,行为流畅.
该C 程序描绘的是红旗飘扬的样了,行为流畅.-the C program depicts a kind of fluttering red, smooth behavior.
- 2023-02-26 01:45:04下载
- 积分:1
-
数据挖掘10大算法 Top 10 Algorithms in Data Mining (ICDM06 Panel)
数据挖掘10大算法 Top 10 Algorithms in Data Mining (ICDM06 Panel)-Top 10 Algorithms in Data Mining (ICDM06 Panel)
- 2022-10-29 19:25:03下载
- 积分:1
-
Game stone, scissors, fabric source, code, only more than 200 lines, new algorit...
游戏石头、剪子、布的源码,代码只有二百多行,算法新颖-Game stone, scissors, fabric source, code, only more than 200 lines, new algorithm
- 2023-09-08 09:55:03下载
- 积分:1
-
这是一个Matlab程序计算PSD也绘制一个图来说明这些…
it is a program in matlab to calculate psd and it also plot a graph to show these
- 2023-03-20 17:50:03下载
- 积分:1
-
迷宫追寻小游戏 C++MFC
应用背景
这个游戏为玩家控制红色方块,去吃掉棕色,绿色,蓝色的方块,一旦一个方块被吃,便会自动生成另一个相同颜色的方块。直到游戏时间结束为止。
程序函数功能:
ondraw函数:
显示游戏界面(用画刷刷成白色),显示地图(黑色),显示食物0,1,2(分别为:棕色,绿色,蓝色),显示玩家(红色)
显示文字,时间,分数。
OnEraseBkgnd函数:
用来更新窗口背景,游戏以位图为窗口背景。
OnGameStart函数:
关联窗口菜单中的开始游戏。包括:
IniGame();(初始化游戏)
m_nGameStatus=1;(游戏状态1,开始)
SetTimer(1,100,NULL);(定时器0.1秒执行一次OnTime)
Invalidate();(转向OnDraw)
IniGame函数:
初始化游戏,确定游戏显示位置,确定玩家初始位置,转向IniAim函数
IniAim函数:
初始化目标,这里的三个目标的位置为随机产生。
OnKeyDown函数:
监控设备按下的键,确定玩家移动方向。
ReDisPlay函数:
重画点所在的小方块。减少对Invalidate()的调用,使屏幕不太闪硕。
OmTimer函数:
完成时间的计算。
关键技术游戏中的人工智能:
棕色方块的移动算法为基本寻路算法—物体沿着墙走。
绿色方块的移动算法为基本的逃避算法—物体总会向玩家的反方向移动。
蓝色方块的移动算法为漫游算法—随机产生一个方向值,物体移动的方向不
- 2022-03-23 18:25:51下载
- 积分:1
-
service manual for tv14pv202/07
service manual for tv14pv202/07
- 2022-02-28 17:28:18下载
- 积分:1