-
based hardware encryption procedures, the development of multilingual example.
基于硬件的加密程序,提供多种语言开发示例。-based hardware encryption procedures, the development of multilingual example.
- 2022-07-07 06:16:33下载
- 积分:1
-
try again for this up 3 compress,compress 3
try again for this up 3 compress,compress 3
- 2022-08-25 01:06:03下载
- 积分:1
-
一个很强大ListCtrl,可以天加背景图片,隐藏一个列等
一个很强大ListCtrl,可以天加背景图片,隐藏一个列等-a very powerful ListCtrl, days plus background pictures, such as hiding one out
- 2022-06-15 04:52:36下载
- 积分:1
-
一个用MFC写的打印框架程序
一个用MFC写的打印框架程序,有打印,打印预览的功能,界面是用对话框写的,用户可根据自的需要在打印函数里编辑打印界面。好用,功能还比较完善。打印缩放里面的工具栏功能需要自己添加
- 2022-03-23 16:52:53下载
- 积分:1
-
This function invokes the interrupt service routine whose address is pisr and...
This function invokes the interrupt service routine whose address is pisr and returns the results in the most general fashion.
- 2022-03-16 20:11:24下载
- 积分:1
-
介绍c++语法,各种库资源,编译器及编译环境。
介绍c++语法,各种库资源,编译器及编译环境。-Introduction c++ Grammar, a variety of library resources, compilers and compiler environment.
- 2022-07-19 09:40:13下载
- 积分:1
-
Based on IDL and VisualC_ mix of programming, detailing the IDL language, and ex...
基于IDL和VisualC_的混合编程,详述了IDL语言,并实例演示两者的调用-Based on IDL and VisualC_ mix of programming, detailing the IDL language, and examples of presentation between the two calls
- 2022-08-22 23:07:05下载
- 积分:1
-
看文件名:udp_server.tar.gz,知道这是什么了吧.使用udp建立服务器端及客户端的源码,有说明文档...
看文件名:udp_server.tar.gz,知道这是什么了吧.使用udp建立服务器端及客户端的源码,有说明文档-read documents Name : udp_server.tar.gz. know what it is all right. use udp build server and client source code, documentation,
- 2022-03-28 12:42:11下载
- 积分:1
-
Source Code for Visual Basic
Source Code for Visual Basic
- 2022-02-03 09:19:47下载
- 积分: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