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

毕业论文移动版

毕业论文 > 计算机论文 >

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


        if (N == 5) {
            if (this._x>500) {
                this._x -= guaiwu_xmove;
            }
            if (guaiwu_movetime>=150 || guaiwu.guaiwu_hp<5) {
                this._x -= guaiwu_xmove;
                this._y -= guaiwu_ymove/2;
            }
        }
如果需要怪物从右边偏下方飞进,从左下方飞出,并且设定它的代号为6,即N==6那么我的代码是这么写的:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            (责任编辑:qin)