-
VC++猫捉老鼠捉迷藏游戏
VC++猫捉老鼠捉迷藏游戏,带音效,每个老鼠,不管是猫的侧身还是后身,只要一碰猫就算是被猫吃看.只需将算法改为如下,便可实现只有接近嘴巴时才被吃掉.
If(在老鼠接猫时,再判断老鼠接的是猫的嘴巴,){吃掉}
即是:
若老鼠在猫的左边接近猫,且猫的方向需向右(m_nCatDirection==2)才能吃掉老鼠.
若老鼠在猫的右边接近猫,且猫的方向需向左(m_nCatDirection==3)才能吃掉老鼠.
若老鼠在猫的上边接近猫,且猫的方向需向下(m_nCatDirection==1)才能吃掉老鼠.
若老鼠在猫的下边接近猫,且猫的方向需向上(m_nCatDirection==0)才能吃掉老鼠.
以老鼠在猫的左边接近猫为例
- 2022-03-30 15:02:59下载
- 积分:1
-
报时
说明: 基于powerbuilder的报时源代码,适合初学者学习使用(Learning source code)
- 2020-06-16 03:20:01下载
- 积分:1
-
C++定义了组件及
C++ defines to assembly EQUs
- 2022-10-05 18:25:03下载
- 积分:1
-
Metric-to-Imperial-Units-
公英制互转换器,初学VC时的小程序,对平时工程制图有些用处。(Metric to Imperial Units )
- 2013-08-28 07:13:38下载
- 积分:1
-
20110716193957001 (1)
串口检测,实现串口数据的检测,对发送的数据进行读取(Serial Port Detection,Realize the detection of serial data and read the transmitted data)
- 2020-06-17 10:40:02下载
- 积分:1
-
ASP站长助手5.0
ASP站长助手5.0-assistant chief ASP 5.0
- 2022-06-28 02:56:10下载
- 积分:1
-
Shrek
说明: 从“怪物史莱克”中显示开场歌曲的基本JavaFX程序(Basic JavaFX program that displays the opening song from "Shrek")
- 2019-04-20 13:26:27下载
- 积分:1
-
password_Lock
语音控制密码锁:
功能:(1)、外扩4*4键盘;
(2)、能设置和识别密码;
(3)、语音提示密码输入正确与否的信息。
(Voice control lock:
Functions: (1), external expansion 4* 4 keyboard
(2), can set the password and identification
(3), or voice prompts to enter the correct password information.
)
- 2011-07-21 11:22:38下载
- 积分:1
-
SMOTE
smote算法,在matlab下的实现,以function的形式,可直接调用(The smote algorithm, implemented under Matlab, can be called directly in the form of function)
- 2020-11-22 21:39:34下载
- 积分:1
-
LLC soft-switch
说明: LLC软开关,电压闭环控制,可以通过示波器观测到通过开关管的电压和电流波形,清晰地观测到开关管实现了零电压开通(LLC soft-switch voltage loop control)
- 2019-06-04 21:12:02下载
- 积分:1