Flash射击游戏设计+需求分析(17)
时间:2016-11-27 21:38 来源:毕业论文 作者:毕业论文 点击:次
this._x = 0; } if (this._y<0) { this._y = -this._y; } if (this.xinc*this.inc<0) { if (this._x>_root.zhujue1._x) { if (this._x-_root.zhujue1._x>(-this.xinc*this.inc)) { this._x += this.xinc*this.inc; } else { this._x -= this._x-_root.zhujue1._x; } } if (this._x<_root.zhujue1._x) { if (this._x-_root.zhujue1._x>this.xinc*this.inc) { this._x += -(this._x-_root.zhujue1._x); } else { this._x -= this.xinc*this.inc; } } if (this._y>_root.zhujue1._y) { if (this._y-_root.zhujue1._y>(-this.yinc*this.inc)) { this._y += this.yinc*this.inc; } else { this._y -= this._y-_root.zhujue1._y; } } if (this._y<_root.zhujue1._y) { if (this._y-_root.zhujue1._y>this.yinc*this.inc) { this._y += -(this._y-_root.zhujue1._y); (责任编辑:qin) |