-
一个用VC写的监控别人计算机的程序(65KB),
一个用VC写的监控别人计算机的程序(65KB),-Written by a VC with a computer program to monitor other people (65KB),
- 2022-01-29 04:01:26下载
- 积分:1
-
用c++写的简易通讯录。实现查询,增加,删除,生日提醒等功能。...
用c++写的简易通讯录。实现查询,增加,删除,生日提醒等功能。-With c++ Write simple address book. Realize query, add, delete, birthday reminders and other functions.
- 2022-07-07 23:27:57下载
- 积分:1
-
飞鸽传书源码,自由传输文件,是不错的局域网传输文件的工具。
飞鸽传书源码,自由传输文件,是不错的局域网传输文件的工具。-Flying Pigeon Chuanshu Source, free, file transfer, is a good tool for local area network to transfer files.
- 2023-09-03 11:45:04下载
- 积分:1
-
Record vc project development throughout the source code, books, examples of bot...
vc项目开发全程实录 第三个实例的源代码,书上的例子都有哦-Record vc project development throughout the source code, books, examples of both Oh ...
- 2022-05-28 13:02:46下载
- 积分:1
-
MFC动态链接库实例,实现DLL函数封装
MFC动态链接库实例,实现DLL函数封装-MFC dll sample
- 2023-05-04 11:00: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
-
编写fisher判别分析的程序并自选地理数据实验
要求:能正确读取数据;程序界面友好,操作简便;功能齐全(包括构造判别式、合理性检验、预测、因素分析等);...
编写fisher判别分析的程序并自选地理数据实验
要求:能正确读取数据;程序界面友好,操作简便;功能齐全(包括构造判别式、合理性检验、预测、因素分析等);-Fisher discriminant analysis prepared by the procedures and experimental geo-data-on-demand requirements: to read the data correctly procedures user-friendly, easy to operate feature complete (including the discriminant structure, a reasonable test, forecasting, factor analysis, etc.)
- 2022-02-03 08:29:05下载
- 积分:1
-
一个定时自动关机的源代码
一个定时自动关机的源代码- A fixed time automatic Guan Ji source code
- 2023-04-28 09:10:04下载
- 积分:1
-
文件夹监控,可监控制定文件夹里文件的新增,删除和修改等变化...
文件夹监控,可监控制定文件夹里文件的新增,删除和修改等变化-Folder monitoring can monitor the development of the document folder to add, delete and modify, such as changes in
- 2022-06-03 09:04:43下载
- 积分:1
-
This Calculator S/W In C++
This Calculator S/W In C-This Calculator S/W In C++
- 2022-02-24 15:47:47下载
- 积分:1