第一范文网 - 专业文章范例文档资料分享平台

FLASH射击游戏设计测试报告

来源:用户分享 时间:2025/5/20 14:32:34 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

(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射击游戏设计测试报告 的文档
FLASH射击游戏设计测试报告.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c3yr491v23o4oweh0piq5_5.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top