1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| start_move_feijian(){ console.log('mFeiJian move') this.mFeiJian.position = new cc.Vec3(0,0,0);
this.mFeiJian.getComponent("feijian").is_flying = true
this.point1 = cc.v2(this.mZhunXin.position.x*3,600) this.point2 = cc.v2(this.mZhunXin.position.x*2,2100) let endPoint = cc.v2(this.mZhunXin.position.x,750) let ddd = this.mFeiJian.runAction( cc.sequence( cc.spawn(cc.rotateBy(1, 360), cc.bezierTo(1, [this.point1, this.point2, endPoint]) ), cc.moveTo(1,this.mZhunXin.position.x,0), cc.callFunc(this.isGameOver,this) ) );
}
|