登录
首页 » 其他 » VC++猫捉老鼠捉迷藏游戏

VC++猫捉老鼠捉迷藏游戏

于 2022-03-30 发布 文件大小:617.61 kB
0 228
下载积分: 2 下载次数: 1

代码说明:

VC++猫捉老鼠捉迷藏游戏,带音效,每个老鼠,不管是猫的侧身还是后身,只要一碰猫就算是被猫吃看.只需将算法改为如下,便可实现只有接近嘴巴时才被吃掉.   If(在老鼠接猫时,再判断老鼠接的是猫的嘴巴,){吃掉}   即是:   若老鼠在猫的左边接近猫,且猫的方向需向右(m_nCatDirection==2)才能吃掉老鼠.   若老鼠在猫的右边接近猫,且猫的方向需向左(m_nCatDirection==3)才能吃掉老鼠.   若老鼠在猫的上边接近猫,且猫的方向需向下(m_nCatDirection==1)才能吃掉老鼠.   若老鼠在猫的下边接近猫,且猫的方向需向上(m_nCatDirection==0)才能吃掉老鼠.   以老鼠在猫的左边接近猫为例

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 我用ARM写的一些东西,大家帮忙看看,感激不尽
    我用ARM写的一些东西,大家帮忙看看,感激不尽 -I use the ARM write something to help everyone to see, very grateful
    2022-03-07 12:29:38下载
    积分:1
  • VB自定义弹出框
    VB自定义的弹出框-包括提示框、确认框、消息显示框、出错提示框等等,样式和系统默认的不一样,看一下演示截图就明白了,是不是挺漂亮的提示框。和网页上的弹出层很相似,挺漂亮。
    2022-03-26 13:55:26下载
    积分:1
  • *** *维吉利亚密码C语言版*************简单实用
    *** *维吉利亚密码C语言版*************简单实用-*******维吉利亚password************* C language version of simple and practical
    2022-12-22 18:30:02下载
    积分:1
  • VC++模拟windows XP复制文件动画
    VC++模拟windows XP复制文件动画,现在的Windows 7已经去掉了这种文件转移动画效果,改为纯进度条动画了,不过学习一下如何实现的,或许对你以后编程可起到抛砖引玉的作用。注:本例中所演示的动画效果是在激活复制动作后播放了一段AVI视频动画,处理为背景透明,这些处理方法也是值得参考的。
    2022-01-28 23:24:09下载
    积分:1
  • 本文档详细介绍了电机的pid算法,适合于新手
    本文档详细介绍了电机的pid算法,适合于新手-This document details the motor pid algorithm, suitable for novice
    2023-06-29 00:35:02下载
    积分:1
  • This program is written in C node 100 Power Flow Calculation Program
    本程序是用C语言编写的100个节点的电力系统潮流计算程序-This program is written in C node 100 Power Flow Calculation Program
    2022-02-25 11:54:00下载
    积分:1
  • ksh 实现的基于hpux下的性能数据以及故障的采集程序。可以作为新手练手使用...
    ksh 实现的基于hpux下的性能数据以及故障的采集程序。可以作为新手练手使用-ksh based hpux to achieve the performance and fault data collection procedures. As a novice can use to practice hands
    2023-05-03 09:55:03下载
    积分:1
  • dkink the jigsaw puzzle, very very simple, new favorite.
    dkink的拼图游戏,很小很简单,新手的最爱。-dkink the jigsaw puzzle, very very simple, new favorite.
    2022-03-20 21:37:19下载
    积分:1
  • Secondary development of one module, the bulk barcode generation, styles: from i...
    二次开发模块 一、条形码的批量生成, 款式:由存货(7)+颜色(2)+尺码(2)+供应码(2)+年份(4)+月份(2)+流水号(6)自由组合生成 面料:由存货(7)+颜色(2)+供应码(2)自由组合生成 (1)由于每件款式的条码是唯一的,其数据量相当大,在数据库存储方面若按以往的方式处理,估计数据库是无法承受。故需采用新的存储方式,在这存储方面就需花较多的时间方可解决。 (2)条码生成后需同时往用友数据库(表:InventoryBarCodeSet)插入数据,以供用友制单时提供对应关系。 -Secondary development of one module, the bulk barcode generation, styles: from inventory (7)+ Color (2)+ Size (2)+ Supply code (2)+ Year (4)+ Month (2) 2B ! serial number (6) to generate ensembles of fabrics: from inventory (7)+ color (2)+ supply code (2) free combination to generate (1) as a result of each style of bar code is the only, the amount of data quite large, if the database storage means in accordance with the previous treatment, it is estimated that the database is not unbearable. Therefore need to adopt a new way of storage in this storage area on the need to spend more time in order to resolve. (2) bar code generated at the same time after UFIDA to database (table: InventoryBarCodeSet) Insert the data for single-UF s
    2022-05-29 12:52:49下载
    积分:1
  • 用ATMEL AVR CPU开发CF CARD的程式.在BASCOM环境
    用ATMEL AVR CPU开发CF CARD的程式.在BASCOM环境-with ATMEL AVR CPU CARD CF development programs. In BASCOM environment
    2022-11-24 12:45:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载