-
c++ 完美演绎
c++ 完美演绎 -c++ perfect interpretation
- 2022-06-29 12:51:40下载
- 积分:1
-
图书管理系统 mfc基于单文档的,编写皮肤代码
图书管理系统 mfc基于单文档的,编写皮肤代码
-liabiry system
- 2023-07-30 19:05:05下载
- 积分:1
-
DS18B20 and MCU interface process, contains the initialization and read
DS18B20与单片机的接口程序,包含对DS18B20的初始化和读写部分。-DS18B20 and MCU interface process, contains the initialization and read-write DS18B20 part.
- 2023-03-29 07:30:04下载
- 积分:1
-
这是一个用VB编写的个人信息管理系统的程序 此程序可以帮助你管理个人信息 可以写日记 可以对自己的通讯录进行管理等多种功能...
这是一个用VB编写的个人信息管理系统的程序 此程序可以帮助你管理个人信息 可以写日记 可以对自己的通讯录进行管理等多种功能-This a Visual Basic personal information management system of this procedure can help you manage personal information can be a diary of their directories for a variety of management functions
- 2022-03-24 13:31:43下载
- 积分:1
-
打印hello word,这个是一个很基础的程序,可以供初级学员注意失误。...
打印hello word,这个是一个很基础的程序,可以供初级学员注意失误。-Print hello word, this is a very basic program can be used for elementary students attention to mistakes.
- 2023-01-11 11:05:03下载
- 积分:1
-
这个代码用Vb实现的一个抓取屏幕的代码。很好用
这个代码用Vb实现的一个抓取屏幕的代码。很好用-Remarkable insights were gained with the code to achieve a grasp of the screen code. Good use
- 2022-10-22 15:05:03下载
- 积分:1
-
QRcode codec decoder, functions as a picture translated to read its contents, pi...
QRcode解码译码器,功能为读入一张图片译出其内容,图片可以是拍摄的。本站其他相关资源都没有此部分源码,此为本人结合官方JAVA源码编写的完整译码部分,具体功能包括图形探测定位、图形过滤校正、检错纠错等。-QRcode codec decoder, functions as a picture translated to read its contents, pictures can be taken. Site other related resources are not part of this source, this is my official JAVA source combined with the preparation of a complete decoding of the specific features include detection of positioning graphics, graphics filter correction, such as Error Detection and Correction.
- 2023-05-13 13:40:02下载
- 积分: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
-
C++ beginner exercises of a good consolidation of the idea of oop
初学c++的一个练习题,很好的巩固了oop的思想-C++ beginner exercises of a good consolidation of the idea of oop
- 2022-03-17 19:38:34下载
- 积分:1
-
这是一款定时器软件,通过实际工程应用,可以精确到毫秒
这是一本很好的书.讲的是信息学. 是学电子通讯的基础.-This is a very good book. Information about the study. Science is the basis of electronic communications.
- 2022-05-16 19:41:04下载
- 积分:1