云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > FLASH射击游戏设计测试报告

FLASH射击游戏设计测试报告

  • 62 次阅读
  • 3 次下载
  • 2025/5/23 17:07:27

(3)问题集飞出舞台的代码如下: //问题集飞出舞台的起始位置和方向 _root.mcnum0.onEnterFrame = function() { };

_root.mcnum1.onEnterFrame = function() { };

_root.mcnum2.onEnterFrame = function() { };

_root.mcnum3.onEnterFrame = function() { };

if (_root.mcnum3._x>600) {

_root.mcnum3._x = 600; if (_root.mcnum2._x>600) {

_root.mcnum2._x = 600; if (_root.mcnum1._x>600) {

_root.mcnum1._x = 600; if (_root.mcnum0._x>600) {

_root.mcnum0._x = 600;

} else { }

_root.mcnum0._x += 3.5;

} else { }

_root.mcnum1._x += 2.5;

} else { }

_root.mcnum2._x += 2.5;

} else { }

_root.mcnum3._x += 2.5;

_root.mcnum4.onEnterFrame = function() { };

_root.mcnum5.onEnterFrame = function() { };

_root.mcnum6.onEnterFrame = function() { };

_root.mcnum7.onEnterFrame = function() { };

_root.mcnum8.onEnterFrame = function() {

if (_root.mcnum8._x>600) { if (_root.mcnum7._x>600) {

_root.mcnum7._x = 600; if (_root.mcnum6._x>600) {

_root.mcnum6._x = 600; if (_root.mcnum5._x>600) {

_root.mcnum5._x = 600; if (_root.mcnum4._x>600) {

_root.mcnum4._x = 600;

} else { }

_root.mcnum4._x += 2.5;

} else { }

_root.mcnum5._x += 2.5;

} else { }

_root.mcnum6._x += 2.5;

} else { }

_root.mcnum7._x += 2.5;

};

_root.mcnum8._x = 600;

} else { }

_root.mcnum8._x += 2.5;

(4)游戏结束的代码测试与关数2的一样。

五:关数4测试

关数4的代码测试除了有关关数3的代码测试后,还增加了对船代码的测试,还有奖励的测试。

(1)对船的测试代码如下: //船的初始位置 function firstBoat1() { }

function firstBoat2() { }

function firstBoat3() { }

function firstBoat4() { }

function firstBoat5() {

_root.boat4._x = 645; _root.boat4._y = 231; _root.boat3._x = -900; _root.boat3._y = 231; _root.boat2._x = -450; _root.boat2._y = 231; _root.boat1._x = -43.2; _root.boat1._y = 231;

}

_root.boat5._x = 1000; _root.boat5._y = 231;

(2)船被击中的代码如下:

//检测弓箭与船集碰撞

if (_root.tan._currentframe == 10) {

hitboat1 = _root.tan.hitTest(_root.boat1); if (hitboat1) {

//myDieboat1Sound = new Sound();

//myDieboat1Sound.loadSound(\_root.boat1._x = 600; _root.score += 2; //船集中箭之后被打沉 with (_root.dieboat) { }

_x = _root.tan._x; _y = _root.tan._y; gotoAndPlay(2);

}

}

if (_root.tan._currentframe == 10) {

hitboat2 = _root.tan.hitTest(_root.boat2); if (hitboat2) {

//myDieboat1Sound = new Sound();

//myDieboat1Sound.loadSound(\_root.boat2._x = 600; _root.score += 2; //船集中箭之后被打沉 with (_root.dieboat) {

_x = _root.tan._x;

搜索更多关于: FLASH射击游戏设计测试报告 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

(3)问题集飞出舞台的代码如下: //问题集飞出舞台的起始位置和方向 _root.mcnum0.onEnterFrame = function() { }; _root.mcnum1.onEnterFrame = function() { }; _root.mcnum2.onEnterFrame = function() { }; _root.mcnum3.onEnterFrame = function() { }; if (_root.mcnum3._x>600) { _root.mcnum3._x = 600; if (_root.mcnum2._x>600) { _root.mcnum2._x = 600; if (_root.mcnum1._

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com