登录
首页 » 其他 » HTML5写的经典坦克大战游戏

HTML5写的经典坦克大战游戏

于 2022-01-25 发布 文件大小:414.58 kB
0 194
下载积分: 2 下载次数: 1

代码说明:

HTML5写的经典坦克大战游戏,为了编程方便,专门写一个函数,用于定时刷新我们的作战区,把要在作战区出现的元素(自己坦克,敌人坦克,子弹,炸弹,我们定义两个颜色数组,其它的敌人坦克,这里的扩展性,还是不错的,还包括了子弹类(判断子弹是否已经到边界),Tank类,Hero类(x 表示坦克的 横坐标, y 表示纵坐标, direct 方向),调用我们的子弹run, 50 是老师多次测试得到的一个结论., 这里技术难度比较大.就算你工作过1-2年,你也未必想到, 下面启动方式,每个子弹的定时器是独立,如果按原来的方法则所有子弹共享一个定时器.

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

发表评论

0 个回复

  • VC++ Windows系统控制编程实例集
    VC++ Windows系统控制编程实例集(源码),比如获得和设置NetBIOS计算机名、打开我的电脑,打开我的文档、注销、关闭、重启计算机、执行屏幕保护、在应用程序中启动其他程序、使用多媒体定时器、使用定时器、使应用程序只运行一个实例、系统托盘、钩子、设置桌面墙纸、枚举当前进程、获得系统显示元素的颜色、获得系统时间、获得系统度量信息等。
    2022-01-25 23:24:48下载
    积分:1
  • 学生成绩核算系统的设计与实现(25) 要求:(1)按班级按课程从文件中读入相应的平时成绩、期中考试成绩和期末考试成绩。 (2)三个成绩对总评成绩的百...
    学生成绩核算系统的设计与实现(25) 要求:(1)按班级按课程从文件中读入相应的平时成绩、期中考试成绩和期末考试成绩。 (2)三个成绩对总评成绩的百分比被定义为常数,各占总成绩的30 、30 和40 。 (3)计算每位学生的总评成绩。 (4)计算该班级本课程的总平均成绩。 (5)计算处于优、良、中、及格、不及格的学生人数以及占总人数的百分比。其中100-90为优,89-80为良,79-70为中,69-60为及格,60分以下为不及格。 (6)按要求输出成绩在优、良、中、及格、不及格各区间的学生学号、成绩。-The student achievement calculation system s design with realizes (25) Request: (1) reads in the corresponding usual result, the midterm examination result and the terminal examinations result according to the class and grade according to the curriculum from the document. (2) three result are defined to the general appraisal result s percentage as the constant, occupies the overall result respectively 30 , 30 and 40 . (3) calculates each student s general appraisal result. (4) calculates this class and grade this curriculum the population mean result. (5) calculates the student population which is in superiorly, good, passes an examination, does not pass an examination as well as accounts for the total number of peop
    2022-03-15 21:39:52下载
    积分:1
  • jquery api解压后即可使用,封装ajax的比较不错的框架
    jquery api解压后即可使用,封装ajax的比较不错的框架-jquery api ?庋 ????
    2022-01-28 09:42:31下载
    积分:1
  • 用法:无效CRC(int,int,int)
    Usage: void CRC(int*, int,int) Input: XAR0:coded data(InputData) XAR1:decoded CRC bits(CrcPoly) T0: Length of coded data(CodeOutlen) T1: Length of CRC bits(CrcPolylen) Return: NO Altered Registers: AC0-AC2,T2 Others: 8 bits of AC0 LSB is CRCcheck bit-Usage: void CRC (int*, int*, int, int) Input: XAR0: coded data (InputData) XAR1: decoded CRC bits (CrcPoly) T0: Length of coded data (CodeOutlen) T1: Length of CRC bits (CrcPolylen) Return: NO Altered Registers: AC0-AC2, T2 Others: 8 bits of AC0 LSB is CRCcheck bit
    2022-01-26 03:25:53下载
    积分:1
  • controls name : Date Controls
    控件名称:日期控件-controls name : Date Controls
    2022-03-06 03:02:20下载
    积分:1
  • Rs232 Rs232
    Rs232 Rs232 -Rs232 Rs232 Rs232 Rs232
    2023-07-14 07:45:02下载
    积分:1
  • 用MATLAB编程来实现语音信号中D比的计算,D比在说话人特征提取中有应用...
    用MATLAB编程来实现语音信号中D比的计算,D比在说话人特征提取中有应用-MATLAB programming to voice signals over the D, D than in the Speaker feature extraction Applications
    2023-01-20 08:00:04下载
    积分:1
  • Vipul这是同样progamar于acctiocation
    vipul this is a sampale progamar dfor acctiocation
    2022-01-24 17:33:50下载
    积分:1
  • VHDL代码 键盘扫描,数码管静态移位显示,类似于计算器显示数据...
    VHDL代码 键盘扫描,数码管静态移位显示,类似于计算器显示数据-VHDL code
    2022-06-21 23:05:03下载
    积分:1
  • 8139卡驱动程序和一个简单的收发器数据源代码
    8139网卡dos实模式驱动及简单收发数据源代码-8139 card dos real mode drivers and a simple transceiver data source code
    2022-03-17 06:07:37下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载