-
C&C++ programme about data structure including binary tree algorithm, quick sort...
数据结构中的 二叉树算法、快速排序双向链表、顺序文件合并、顺序广度搜索以及深度搜索最优解 的C&C++ 程序-C&C++ programme about data structure including binary tree algorithm, quick sorting based on doubly linked lists, merging ordinal files, best solution of orderly width or depth search.
- 2022-06-30 17:25:09下载
- 积分:1
-
刚学JAVA的时候老师布置的作业,一个简单的小JAVA程序,关于学生信息的.主要目的是接触JAVA....
刚学JAVA的时候老师布置的作业,一个简单的小JAVA程序,关于学生信息的.主要目的是接触JAVA.-just learning the layout of the teachers work, a simple small Java procedures, information on the students. The main purpose is to contact JAVA.
- 2022-07-27 10:33:21下载
- 积分:1
-
SimpleLAP源码的配套设置和调用代码,注意,如果是用机器调试,由于是系统级别的代码,需要使用调试机的数字签名...
SimpleLAP源码的配套设置和调用代码,注意,如果是用机器调试,由于是系统级别的代码,需要使用调试机的数字签名-SimpleLAP source of the matching set up and use a code that is used if the machine debugging, Because it is the system-level code debugging machines need to use the digital signature
- 2022-01-22 06:31:59下载
- 积分:1
-
sends SMS information to another mobile phone
sends SMS information to another mobile phone
- 2022-01-24 08:53:33下载
- 积分:1
-
在MFC应用程序查看PDF、Word文档文件
在MFC应用程序中浏览PDF、Word文档文件-in MFC Application Program View PDF, Word document files
- 2023-02-21 14:45: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
-
接收电子邮件例子
接收电子邮件例子-receive e-mail examples
- 2022-09-05 08:35:02下载
- 积分:1
-
《程序自修改实现》
《程序自修改实现》-对于相关编程技术有用-《Self-modifying programs to achieve》- for relevant programming techniques useful for
- 2023-02-04 16:25:03下载
- 积分:1
-
HANOR c solve the problem with this is a very classic problem, how to achieve re...
汉诺塔问题用c++解决,这是一个非常经典的问题,如何实现递归。-HANOR c solve the problem with this is a very classic problem, how to achieve recursive.
- 2022-03-19 11:33:39下载
- 积分:1
-
VC动态显示时间编程,简单的在状态条上VC动态显示时间例子
VC动态显示时间编程,简单的在状态条上VC动态显示时间例子-VC programming dynamic display of time, a simple article in a state of dynamic display of time on the VC example
- 2022-05-07 00:06:55下载
- 积分:1