毕业论文

打赏
当前位置: 毕业论文 > 计算机论文 >

Flash射击游戏设计+需求分析(11)

时间:2016-11-27 21:38来源:毕业论文
if (N == 2) { if (this._y250) { this._x -= guaiwu_xmove; this._y -= guaiwu_ymove; } else { this._x += guaiwu_xmove; this._y -= guaiwu_ymove; } } 如果需要怪物斜着从怪物从上面飞进从上面


        if (N == 2) {
            if (this._y>250) {
                this._x -= guaiwu_xmove;
                this._y -= guaiwu_ymove;
            } else {
                this._x += guaiwu_xmove;
                this._y -= guaiwu_ymove;
            }
        }
如果需要怪物斜着从怪物从上面飞进从上面飞出,并且设定它的代号为3,即N==3那么我的代码是这么写的:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               Flash射击游戏设计+需求分析(11):http://www.youerw.com/jisuanji/lunwen_464.html
------分隔线----------------------------
推荐内容