-
本程序实现了文件被其他程序更改时提醒用户
本程序实现了文件被其他程序更改时提醒用户-This procedure achieved by other procedures to change the document to remind the user when
- 2022-07-16 22:50:24下载
- 积分:1
-
矿山地图管理系统的模式:运行环境:视觉基本6…
矿山图件管理系统C/S模式:
运行环境:Visual Basic 6.0 +MapEngine2.6
(安装后才能生成本软件所需要的各控件引用,否则无法运行)-mine maps Management System C/S mode : Operating environment : Visual Basic 6.0 MapEngine2.6 (after the installation of the software can cost health needs Control of the use, not operational)
- 2022-07-03 21:26:55下载
- 积分: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
-
jfreereport Java报表打印插件
jfreereport Java报表打印插件-jfreereport
- 2022-04-20 12:39:55下载
- 积分:1
-
vc painting with flame effect. Man appears realistic. Dong good and doing well,...
用vc画火焰效果。看起来满逼真。不错的冬冬,做的不好,请多原谅!-vc painting with flame effect. Man appears realistic. Dong good and doing well, please forgive!
- 2023-08-27 19:20:04下载
- 积分:1
-
delphi文本文件的逐行读取,将文本文件从记事本中读到页面中来...
delphi文本文件的逐行读取,将文本文件从记事本中读到页面中来-Read file line by line, write by Delphi.
- 2023-03-13 17:30:03下载
- 积分:1
-
Access to the basic hardware information, VC++ under development, the test can b...
获取系统的硬件的基本信息,VC++下开发,测试通过,可以运行-Access to the basic hardware information, VC++ under development, the test can be run
- 2023-01-23 15:50:03下载
- 积分:1
-
ACM question of a good explanation, makes sense for the novice is not easy to co...
一套不错的ACM题讲解,对于新手很有意义,很不容易搜集到的-ACM question of a good explanation, makes sense for the novice is not easy to collect the
- 2022-06-29 16:20:19下载
- 积分:1
-
对图像进行非线性调整,可用用图像的增强,特别是模糊图像,增加对比度...
对图像进行非线性调整,可用用图像的增强,特别是模糊图像,增加对比度-right image nonlinear adjustment can be used to enhance the image, especially fuzzy images, increase contrast
- 2022-05-17 22:33:26下载
- 积分:1
-
本程序采用了中断法访问ZLG7289芯片,内容包括一个完整的程序,经调试运行无误,对于想用这个芯片来作你的键盘扫描非常不错。...
本程序采用了中断法访问ZLG7289芯片,内容包括一个完整的程序,经调试运行无误,对于想用这个芯片来作你的键盘扫描非常不错。-the adoption of the law interrupted visit ZLG7289 chips, which include a complete set of procedures, commissioning, operation and truthful, want to use this chip for scanning your keyboard is very good.
- 2022-02-14 03:18:47下载
- 积分:1