-
从一本书附带代码修改而来 删除邮箱所有邮件(用于清除大量垃圾邮件) 自己修改内设的帐号和密码...
从一本书附带代码修改而来 删除邮箱所有邮件(用于清除大量垃圾邮件) 自己修改内设的帐号和密码-book from a fringe code revision to delete mail from all mail (for the removal of huge quantities of spam) to amend their internal account and password
- 2022-11-13 00:45:04下载
- 积分:1
-
Visual C++ 6.0应用编程150例
Visual C++ 6.0应用编程150例-Visual C 6.0 Application Programming 150 cases
- 2022-07-01 07:06:52下载
- 积分:1
-
Exceptional C++: 47 Engineering Puzzles, Programming Problems, and Solutions
B...
Exceptional C++: 47 Engineering Puzzles, Programming Problems, and Solutions
By Herb Sutter
- 2023-03-26 17:10:03下载
- 积分:1
-
这是利用VC++编程的第四部分,使人物可以沿着上下左右四个方向运动。...
这是利用VC++编程的第四部分,使人物可以沿着上下左右四个方向运动。-This is the use of VC++ Programming Part IV, so that figures can be up and down along the direction of movement of about four.
- 2022-05-24 13:51:18下载
- 积分:1
-
DelphiX 编程控件
DelphiX 编程控件-DelphiX Control Programming
- 2022-02-01 09:03:27下载
- 积分: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
-
使用vs2005编程
设计一种基于优先级和安全度的可抢占调度算法,其中安全度参数优于优先级参数,并由此判断给出任务组是否可调度。...
使用vs2005编程
设计一种基于优先级和安全度的可抢占调度算法,其中安全度参数优于优先级参数,并由此判断给出任务组是否可调度。-VS2005 Programming using a priority-based and safety may seize the scheduling algorithm, which is superior to the security parameter priority parameters, and thus given the task group to determine whether scheduling.
- 2023-03-09 18:50:03下载
- 积分:1
-
测试端口的小程序
测试端口的小程序-test procedures for small ports
- 2022-01-22 01:21:55下载
- 积分:1
-
Resize dynamic your control`s in a form. New concept add move properties. Is not...
Resize dynamic your control`s in a form. New concept add move properties. Is not original but will do the jobs.
- 2022-09-25 02:40:03下载
- 积分:1
-
运用vc++获取计算机系统硬件的实例程序
运用vc++获取计算机系统硬件的实例程序 -Using vc++ to obtain examples of computer systems hardware procedures
- 2023-04-25 21:05:03下载
- 积分:1