-
VC++猫捉老鼠捉迷藏游戏
VC++猫捉老鼠捉迷藏游戏,带音效,每个老鼠,不管是猫的侧身还是后身,只要一碰猫就算是被猫吃看.只需将算法改为如下,便可实现只有接近嘴巴时才被吃掉.
If(在老鼠接猫时,再判断老鼠接的是猫的嘴巴,){吃掉}
即是:
若老鼠在猫的左边接近猫,且猫的方向需向右(m_nCatDirection==2)才能吃掉老鼠.
若老鼠在猫的右边接近猫,且猫的方向需向左(m_nCatDirection==3)才能吃掉老鼠.
若老鼠在猫的上边接近猫,且猫的方向需向下(m_nCatDirection==1)才能吃掉老鼠.
若老鼠在猫的下边接近猫,且猫的方向需向上(m_nCatDirection==0)才能吃掉老鼠.
以老鼠在猫的左边接近猫为例
- 2022-03-30 15:02:59下载
- 积分:1
-
Second National College BBS Development Competition Algorithm Group
第二届全国高校 BBS 程序开发大赛算法组-Second National College BBS Development Competition Algorithm Group
- 2023-05-27 23:05:03下载
- 积分:1
-
index
说明: 利用JS生成二维码,支持中文,包含JS 代码的所有库文件。(Using JS to generate two-dimensional code, support Chinese, including all the library files of JS code. code)
- 2020-06-17 09:20:02下载
- 积分:1
-
CTIEUR1
创建Windows xp中按钮样式解决方法:使用标签控件与形状控件一起形,()
- 2018-04-01 08:29:33下载
- 积分:1
-
盲信号处理的幻灯片,
非常好啊大家要支持我
盲信号处理的幻灯片,
非常好啊大家要支持我-blind signal processing of slides, very nice people support me
- 2023-01-14 09:40:03下载
- 积分:1
-
CH341A_driver_win10
CH341A driver for windows 10
- 2020-06-20 01:40:01下载
- 积分:1
-
final
用TC写的撞球游戏,有保存功能,排行榜功能和单双人模式,dos下运行(TC wrote billiard games, save function, ranking function and single and double player mode, dos run)
- 2013-10-27 19:19:15下载
- 积分:1
-
Function allows to insert into an existing cell array any set of new cells on th...
Function allows to insert into an existing cell array any set of new cells on the specified index. Thus the former data is not remove, and moves downwards and to the right on the quantity of elements equal to the size of the inserted data.
- 2022-03-20 15:41:48下载
- 积分:1
-
datafiles
说明: 阿萨德阿萨德阿斯达斯的阿萨德阿萨德阿萨德阿萨德阿萨德阿萨德阿瓦全(njasbbwnkshhsjahshaowpojwoj)
- 2019-03-14 18:59:48下载
- 积分:1
-
实现萤火虫算法
说明: 实现萤火虫算法,主要是优化算法,用于寻找多目标时的最优值,效果比,基于matlab平台搭建,在多个科研和工作方向使,供大家学习参考。(Firefly algorithm, mainly optimization algorithm, is used to find the optimal value of multi-objective, the effect ratio, based on MATLAB platform, in a number of scientific research and work directions, for everyone to learn reference.)
- 2020-10-26 15:00:00下载
- 积分:1