var game2;!function(e){var t=function(){function t(){this._skinIndex=0,this._touchBegin=!1,this._touchPosX=0,this._moveDirePosX=0,this._curBendTime=0,this._changeTime=0,this._dstIndex=0,e.EventCenter.instance.init(),e.AssetLoader.instance.init()}return t.prototype.preloadResource=function(t,s){var a=[];a.push(e.GameConfig2.Assets.SPEED_WIND_NODE),a.push(e.GameConfig2.Assets.DEAD_POINT_MESH),a.push(e.GameConfig2.Assets.BOOST_MESH),a.push(e.GameConfig2.Assets.PLANE_MESH),a.push(e.GameConfig2.Assets.PLANE_TEX),a.push(e.GameConfig2.Assets.WHITE_CUBE_TEX),a.push(e.GameConfig2.Assets.CUBE_TEX);for(i=0;ithis._camera.fieldOfView&&(this._camera.fieldOfView+=2):60=25){this._speedWind.active=!0;var s=7*(this._currentBall.speed-24);t.particleSystem.emission.emissionRate=s}else this._speedWind.active=!1,t.particleSystem.emission.emissionRate=0},t.prototype.onMouseDown=function(){this._touchBegin=!0,this._touchPosX=Laya.stage.mouseX},t.prototype.onMouseUp=function(){this._touchBegin=!1,this._moveDirePosX=0,this._touchPosX=0},t.prototype.udpateTouchInput=function(){var e=Laya.stage.mouseX-this._touchPosX;this._touchPosX=Laya.stage.mouseX;var t=0,s=GameBaseData.halfScreenWidth;return t=Laya.stage.mouseX<=s?2.1*Laya.stage.mouseX/s-2.1:2.1*(Laya.stage.mouseX-s)/s,t*=1.5,t=2.10?1:-1,t},t.prototype.updateBendEffect=function(e){this._curBendTime+=this._currentBall.speed/24*Laya.timer.delta,this._curBendTime>=this._changeTime&&(this._dstIndex=this.randomAngle(this._dstIndex),this._changeTime=touch.GameDefine.BEND_TIMES[this._dstIndex],this._curBendTime=0);var t=this._curBendTime/this._changeTime,s=touch.GameDefine.DST_ANGLES[this._dstIndex],a=new Laya.Vector4(0,0,0,0);Laya.Vector4.lerp(this._curBendAngle,s,t/20,a);this._gameWorld.updateBendEffectAndDistance(a,100),this._currentBall.updateBendEffectAndDistance(a,100);for(var i=0;i