Flash射击游戏设计+需求分析(10)_毕业论文

毕业论文移动版

毕业论文 > 计算机论文 >

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


        if (N == 1) {
            if (this._y<150) {
                this._x -= guaiwu_xmove;
                this._y += guaiwu_ymove;
            } else {
                this._x += guaiwu_xmove;
                this._y += guaiwu_ymove;
            }
        }
如果需要怪物斜着从下方飞进,斜着从上方飞出,并且设定它的代号为2,即N==2那么我的代码是这么写的:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              (责任编辑:qin)