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

毕业论文移动版

毕业论文 > 计算机论文 >

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


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