window.__require=function t(e,o,n){function i(c,l){if(!o[c]){if(!e[c]){var s=c.split("/");if(s=s[s.length-1],!e[s]){var a="function"==typeof __require&&__require;if(!l&&a)return a(s,!0);if(r)return r(s,!0);throw new Error("Cannot find module '"+c+"'")}c=s}var u=o[c]={exports:{}};e[c][0].call(u.exports,function(t){return i(e[c][1][t]||t)},u,u.exports,t,e,o,n)}return o[c].exports}for(var r="function"==typeof __require&&__require,c=0;c=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../../Script/Core/Base/EventMgr"),l=t("./eventDef"),s=cc._decorator,a=s.ccclass,u=s.property,p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$bg_node=null,e.$point_node=null,e.$arrow_node=null,e.temp={bgOriginPos:null,id:-1},e}return i(e,t),e.prototype.onLoad=function(){this.temp.bgOriginPos=this.$bg_node.getPosition()},e.prototype.onEnable=function(){this.node.on(cc.Node.EventType.TOUCH_START,this.onTouchStart,this),this.node.on(cc.Node.EventType.TOUCH_MOVE,this.onTouchMove,this),this.node.on(cc.Node.EventType.TOUCH_END,this.onTouchEnd,this),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this.onTouchEnd,this)},e.prototype.onDisable=function(){this.node.off(cc.Node.EventType.TOUCH_START,this.onTouchStart,this),this.node.off(cc.Node.EventType.TOUCH_MOVE,this.onTouchMove,this),this.node.off(cc.Node.EventType.TOUCH_END,this.onTouchEnd,this),this.node.off(cc.Node.EventType.TOUCH_CANCEL,this.onTouchEnd,this)},e.prototype.onTouchStart=function(t){if(-1==this.temp.id){var e=t.getLocation();e=this.node.convertToNodeSpaceAR(e),this.$bg_node.setPosition(e),this.temp.id=t.getID()}},e.prototype.onTouchMove=function(t){if(this.temp.id==t.getID()){var e=t.getLocation().sub(t.getStartLocation()),o=0;e.equals(cc.Vec2.ZERO)||(o=cc.v2(0,1).signAngle(e)/Math.PI*180),this.$arrow_node.angle=Math.round(100*o)/100;var n=e.normalize();e.mag()>85?this.$point_node.setPosition(85*n.x,85*n.y):this.$point_node.setPosition(e.x,e.y),c.EventMgr.inst.emit(l.Roker_Move,n)}},e.prototype.onTouchEnd=function(t){this.temp.id==t.getID()&&(this.$bg_node.setPosition(this.temp.bgOriginPos),this.$arrow_node.angle=0,this.$point_node.setPosition(0,0),this.temp.id=-1,c.EventMgr.inst.emit(l.Roker_End))},r([u({type:cc.Node,displayName:""})],e.prototype,"$bg_node",void 0),r([u({type:cc.Node,displayName:""})],e.prototype,"$point_node",void 0),r([u({type:cc.Node,displayName:""})],e.prototype,"$arrow_node",void 0),r([a],e)}(cc.Component);o.default=p,cc._RF.pop()},{"../../Script/Core/Base/EventMgr":"EventMgr","./eventDef":"eventDef"}],Start:[function(t,e,o){"use strict";cc._RF.push(e,"62a49ItD35F/77o+FdWPyV+","Start");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c},c=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(i,r){function c(t){try{s(n.next(t))}catch(e){r(e)}}function l(t){try{s(n.throw(t))}catch(e){r(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof o?e:new o(function(t){t(e)})).then(c,l)}s((n=n.apply(t,e||[])).next())})},l=this&&this.__generator||function(t,e){var o,n,i,r,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return s([t,e])}}function s(r){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return c.label++,{value:r[1],done:!1};case 5:c.label++,n=r[1],r=[0];continue;case 7:r=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){c=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../common/editorSet"),l=cc._decorator,s=l.ccclass,a=l.property,u=l.executeInEditMode,p=l.playOnFocus,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.monster=null,e.aniClip=[],e}return i(e,t),e.prototype.onLoad=function(){var t=new cc.Node("monsterGroup");this.monsterNode=t,c.EditorSet.DontShow(t),this.node.addChild(t),this.play()},e.prototype.end=function(){this.monsterNode.destroyAllChildren()},e.prototype.play=function(){var t=this;if(this.monsterNode.destroyAllChildren(),this.monster){var e=cc.instantiate(this.monster),o=0,n=function(){var i=new cc.Node("AniItem"),r=e.parent?e.parent:t.monsterNode;e.removeFromParent(!1),i.addChild(e),r.addChild(i);var c=i.addComponent(cc.Animation);c.addClip(t.aniClip[o],"path"),c.play("path"),c.once(cc.Animation.EventType.FINISHED,function(){++o=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../../Script/Collide/lq_collide_system/lq_collide"),l=t("../../Script/Collide/lq_collide_system/lq_collide_config"),s=t("./update/move"),a=cc._decorator,u=a.ccclass,p=a.property,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$dragon_bone=null,e.moveCpt=null,e}return i(e,t),e.prototype.onLoad=function(){var t=this;this.$dragon_bone.playAnimation("appear",1),this.$dragon_bone.addEventListener("complete",function(){t.$dragon_bone.playAnimation("bullet_1",0)})},e.prototype.on_enter=function(t){this.node.destroy(),t.collide_group_index==l.LQCollideInfoList.enemy&&(t.node.destroy(),cc.log("@@ -- ",t.node.name))},e.prototype.getMoveCpt=function(){return this.moveCpt||(this.moveCpt=this.node.getComponent(s.default),this.moveCpt||(this.moveCpt=this.node.addComponent(s.default))),this.moveCpt},r([p({type:dragonBones.ArmatureDisplay,displayName:""})],e.prototype,"$dragon_bone",void 0),r([u],e)}(c.LQCollide);o.default=d,cc._RF.pop()},{"../../Script/Collide/lq_collide_system/lq_collide":"lq_collide","../../Script/Collide/lq_collide_system/lq_collide_config":"lq_collide_config","./update/move":"move"}],configMgr:[function(t,e,o){"use strict";cc._RF.push(e,"61b51CM8LZJt7TUn6viH3Ik","configMgr"),Object.defineProperty(o,"__esModule",{value:!0}),o.ConfigMgr=void 0;var n=t("./ConfigDef"),i=function(){function t(){this.config=new cc.AssetManager.Cache}return Object.defineProperty(t,"inst",{get:function(){return null==this._inst&&(this._inst=new t),this._inst},enumerable:!1,configurable:!0}),t.prototype.init=function(){var t=this,e=n.jsonNames.map(function(t){return"json/"+t+".json"}),o=[];return e.forEach(function(e,i){var r=new Promise(function(o){cc.assetManager.loadRemote(e,function(e,r){r&&(t.config.add(n.jsonNames[i],r.json),cc.assetManager.releaseAsset(r)),o()})});o.push(r)}),Promise.all(o)},t.prototype.getCfgKeys=function(t){var e=this.config.get(t);return Object.keys(e)},t.prototype.getCfgById=function(t,e){return this.config.get(t)[e]},t.prototype.getCfgClassById=function(t,e,o){return new o(e,this.config.get(t)[e])},t}();o.ConfigMgr=i,cc._RF.pop()},{"./ConfigDef":"ConfigDef"}],debug:[function(t,e,o){"use strict";cc._RF.push(e,"9be2foFR/dPMrS0dlthIN09","debug");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../../levelMgr"),l=t("../player"),s=t("../update/logic"),a=cc._decorator,u=a.ccclass,p=a.property,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$gamePlay_btn=null,e.$decLevel_btn=null,e.$addLevel_btn=null,e.$levelSkip_btn=null,e.$attck_btn=null,e.$level_edit=null,e}return i(e,t),e.prototype.onGameplayTouchEnd=function(){s.GameLogicMgr.inst.switch()},e.prototype.onDeclevelTouchEnd=function(){c.LevelMgr.inst.pre()},e.prototype.onAddlevelTouchEnd=function(){c.LevelMgr.inst.next()},e.prototype.onLevelskipTouchEnd=function(){var t=this.$level_edit.string;c.LevelMgr.inst.skip(Number(t))},e.prototype.onAttckTouchEnd=function(){l.default.PlayerAttack=!l.default.PlayerAttack},e.prototype.onLoad=function(){this.$level_edit.string=c.LevelMgr.inst.getMax().toString()},r([p({type:cc.Button,displayName:""})],e.prototype,"$gamePlay_btn",void 0),r([p({type:cc.Button,displayName:""})],e.prototype,"$decLevel_btn",void 0),r([p({type:cc.Button,displayName:""})],e.prototype,"$addLevel_btn",void 0),r([p({type:cc.Button,displayName:""})],e.prototype,"$levelSkip_btn",void 0),r([p({type:cc.Button,displayName:""})],e.prototype,"$attck_btn",void 0),r([p({type:cc.EditBox,displayName:""})],e.prototype,"$level_edit",void 0),r([u],e)}(cc.Component);o.default=d,cc._RF.pop()},{"../../levelMgr":"levelMgr","../player":"player","../update/logic":"logic"}],editorSet:[function(t,e,o){"use strict";cc._RF.push(e,"827a74V/ddBf7ZqYjMo33pE","editorSet"),Object.defineProperty(o,"__esModule",{value:!0}),o.EditorSet=void 0,(o.EditorSet||(o.EditorSet={})).DontShow=function(){},cc._RF.pop()},{}],eventDef:[function(t,e,o){"use strict";cc._RF.push(e,"f6e330HhbVJBLbMuaPUeUxQ","eventDef"),Object.defineProperty(o,"__esModule",{value:!0}),o.Touch_End=o.Touch_Move=o.Touch_Start=o.Roker_End=o.Roker_Move=void 0,o.Roker_Move="roker_move",o.Roker_End="roker_end",o.Touch_Start="Touch_Start",o.Touch_Move="Touch_Move",o.Touch_End="Touch_End",cc._RF.pop()},{}],flyImg:[function(t,e,o){"use strict";cc._RF.push(e,"09583eOmypGVb3f5sErEHEE","flyImg");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("./update/GameLogic"),l=cc._decorator,s=l.ccclass,a=l.property,u=l.executeInEditMode,p=l.playOnFocus,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pos=cc.v2(0,0),e.uvSpeed=0,e.mat=null,e._speed=100,e}return i(e,t),Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t,this.uvSpeed=t/this.node.height},enumerable:!1,configurable:!0}),e.prototype.onLoad=function(){this.getComponent(cc.Sprite).getMaterial(0).setProperty("center",this.pos),this.speed=100,this.mat=this.node.getComponent(cc.Sprite).getMaterial(0)},e.prototype.gameUpdate=function(t){var e=this.uvSpeed*t;this.pos.y-=e,this.mat.setProperty("center",this.pos)},r([a({type:cc.Integer})],e.prototype,"speed",null),r([s,u,p],e)}(c.GameLogic);o.default=d,cc._RF.pop()},{"./update/GameLogic":"GameLogic"}],levelMgr:[function(t,e,o){"use strict";cc._RF.push(e,"4e226LcBG1AUrUjgcc4NxLI","levelMgr");var n=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(i,r){function c(t){try{s(n.next(t))}catch(e){r(e)}}function l(t){try{s(n.throw(t))}catch(e){r(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof o?e:new o(function(t){t(e)})).then(c,l)}s((n=n.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){var o,n,i,r,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return s([t,e])}}function s(r){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return c.label++,{value:r[1],done:!1};case 5:c.label++,n=r[1],r=[0];continue;case 7:r=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){c=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0||this.next())},t.prototype.end=function(){cc.director.getScheduler().unschedule(this.update,this)},t.prototype.begin=function(){return n(this,void 0,void 0,function(){return i(this,function(){return this.passCnt=0,h=s.ConfigMgr.inst.getCfgKeys(l.ConfigConst.smallLevel).length,this.load(),[2]})})},t.prototype.load=function(){this.title.string="level"+(this.passCnt+1),this.loadSmallLevel()},t.prototype.loadSmallLevel=function(){return n(this,void 0,void 0,function(){var t,e,o,n,c,d=this;return i(this,function(i){switch(i.label){case 0:return this.parent.destroyAllChildren(),this.state=r.loading,[4,_.ResMgr.inst.loadPrefab("level/levelEmpty",this.parent)];case 1:return t=i.sent(),e=t.getComponent(p.default),o=s.ConfigMgr.inst.getCfgClassById(l.ConfigConst.smallLevel,this.passCnt+1,a.SmallLevelItem),n=o.getNestId(),c=[],n.forEach(function(t){var o=u.Utils.createNode(e.$top_node,"nest"),n=d.fillNest(o,t);c.push(n)}),[4,Promise.all(c)];case 2:return i.sent(),this.state=r.playing,[2]}})})},t.prototype.fillNest=function(t,e){return n(this,void 0,void 0,function(){var o;return i(this,function(n){switch(n.label){case 0:return[4,(o=t.addComponent(d.NestPlay)).init(e)];case 1:return n.sent(),[4,o.waitDone()];case 2:return n.sent(),[2]}})})},t.prototype.skip=function(t){cc.log("skip-",t),t>h||t<1||(this.passCnt=t-1,this.load())},t.prototype.next=function(){this.passCnt+1>=h||(this.passCnt++,this.load())},t.prototype.pre=function(){this.passCnt<=0||(this.passCnt--,this.load())},t.prototype.getMax=function(){return h},t.prototype.loadPrefabLevel=function(){var t=this;this.state=r.loading,this.title.string="level"+(this.passCnt+1),this.parent.destroyAllChildren(),_.ResMgr.inst.loadPrefab("level/level"+(this.passCnt+1),this.parent).then(function(){t.state=r.playing})},t}();o.LevelMgr=f,cc._RF.pop()},{"./Collide/lq_collide_system/lq_collide":"lq_collide","./game/cfg/ConfigDef":"ConfigDef","./game/cfg/configMgr":"configMgr","./game/cfg/smallLevelItem":"smallLevelItem","./game/common/utils":"utils","./game/level/levelempty":"levelempty","./game/nest/nestPlay":"nestPlay","./game/res/resMgr":"resMgr"}],levelempty:[function(t,e,o){"use strict";cc._RF.push(e,"2f855CJRftJBq+e1rBSJT1T","levelempty");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=cc._decorator,l=c.ccclass,s=c.property,a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$top_node=null,e}return i(e,t),r([s({type:cc.Node,displayName:""})],e.prototype,"$top_node",void 0),r([l],e)}(cc.Component);o.default=a,cc._RF.pop()},{}],loading:[function(t,e,o){"use strict";cc._RF.push(e,"61057L8SgdKBL6yugliubUV","loading");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=cc._decorator,l=c.ccclass,s=(c.property,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),r([l],e)}(cc.Component));o.default=s,cc._RF.pop()},{}],logic:[function(t,e,o){"use strict";cc._RF.push(e,"721325RsEFGt6uG4FoA75+t","logic"),Object.defineProperty(o,"__esModule",{value:!0}),o.GameLogicMgr=void 0;var n=function(){function t(){this.isGamePause=!1}return Object.defineProperty(t,"inst",{get:function(){return null==this._inst&&(this._inst=new t,this._inst.init()),this._inst},enumerable:!1,configurable:!0}),t.prototype.switch=function(){this.isGamePause=!this.isGamePause,dragonBones.timeScale=this.isGamePause?0:1},t.prototype.init=function(){var e=cc.director.getAnimationManager();e._oldUpdate=e.update,e.update=function(o){t.inst.isGamePause||e._oldUpdate(o)}},t}();o.GameLogicMgr=n,cc._RF.pop()},{}],lq_base_util:[function(t,e,o){"use strict";cc._RF.push(e,"b1594dXFXBAz7OcUYK7qK7P","lq_base_util"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQBaseUtil=void 0;var n=t("./lq_platform_util"),i=t("../data/lq_const"),r=cc.view,c=function(){function t(){}return t.has_value=function(t,e){for(var o=!1,n=0;nt){o=n;break}if(-1===o)return e[e.length-1].y;var i=o-1;return e[i].y+(e[o].y-e[i].y)*((t-e[i].x)/(e[o].x-e[i].x))},t.number_to_counting=function(t){return t<1e3?t+"":t<1e6?Math.floor(t/1e3)+"K":t<1e9?Math.floor(t/1e6)+"M":t<1e12?Math.floor(t/1e9)+"B":Math.floor(t/1e12)+"T"},t.number_to_time=function(t){var e=Math.floor(t/3600);t-=3600*e;var o=e.toString(),n=Math.floor(t/60).toString(),i=(t%60).toString();return 1===o.length&&(o="0"+o),1===n.length&&(n="0"+n),1===i.length&&(i="0"+i),[o,n,i]},t.set_normal_angle=function(t){for(;t>360;)t-=360;for(;t<0;)t+=360;return t},t.compare_version=function(t,e){for(var o=t.split("."),n=e.split("."),i=Math.max(o.length,n.length);o.lengthl)return 1;if(c=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0}),o.LQCollideBase=void 0;var c=cc._decorator.ccclass,l=cc._decorator.executeInEditMode,s=(cc.PolygonCollider,cc._decorator.property),a=t("./lq_collide"),u=(t("../lq_base/data/lq_const"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.auto_update_point=!0,e}return i(e,t),e.prototype.find_collide=function(){var t=this.node.getComponent(a.LQCollide);if(t)return t;console.error(this.node.name+":\u6ca1\u6709\u627e\u5230LQCollide\u7ec4\u4ef6")},e.prototype.onLoad=function(){var t=this.find_collide();t&&t.init_lq_collide()},e.prototype.onEnable=function(){var t=this.find_collide();t&&t.enable_lq_collide()},e.prototype.onDisable=function(){var t=this.find_collide();t&&t.disable_lq_collide()},e.prototype.onDestroy=function(){this.find_collide()},e.prototype.onFocusInEditor=function(){this.find_collide()},e.prototype.onLostFocusInEditor=function(){this.find_collide()},e.prototype.resetInEditor=function(){this.find_collide()},e.prototype.update=function(){},r([s({tooltip:"\u591a\u8fb9\u5f62\u81ea\u52a8\u540c\u6b65cocos PolygonCollider \u7ec4\u4ef6\u4e2d\u7684\u78b0\u649e\u70b9"})],e.prototype,"auto_update_point",void 0),r([c,l],e)}(cc.Component));o.LQCollideBase=u,cc._RF.pop()},{"../lq_base/data/lq_const":"lq_const","./lq_collide":"lq_collide"}],lq_collide_config:[function(t,e,o){"use strict";cc._RF.push(e,"a7388G06nJN9a7Qh8tcl84U","lq_collide_config"),Object.defineProperty(o,"__esModule",{value:!0}),o.LQCollideConfig=o.LQCollideInfoList=void 0,function(t){t[t.default=0]="default",t[t.role=1]="role",t[t.role_bullet=2]="role_bullet",t[t.enemy=3]="enemy",t[t.enemy_bullet=4]="enemy_bullet",t[t.prop=5]="prop"}(o.LQCollideInfoList||(o.LQCollideInfoList={}));var n=function(){function t(){}return t.switch_auto_run=!0,t.switch_print_log=!1,t.switch_quad_tree=!0,t.max_node_len=10,t.per_frame=60,t.max_node_level=4,t.active_area_x=0,t.active_area_y=0,t.active_area_width=1e3,t.active_area_height=1e3,t.collide_group_map={default:{id:1,category:1,index:0,mask:1},role:{id:2,category:2,index:1,mask:56},role_bullet:{id:3,category:4,index:2,mask:40},enemy:{id:4,category:8,index:3,mask:6},enemy_bullet:{id:5,category:16,index:4,mask:2},prop:{id:6,category:32,index:5,mask:6}},t}();o.LQCollideConfig=n,cc._RF.pop()},{}],lq_collide_system:[function(t,e,o){"use strict";cc._RF.push(e,"1459eaDBFhFPZbiRADWgq6V","lq_collide_system"),o.__esModule=!0,o.LQCollideSystem=void 0;var n=t("../lq_base/data/lq_const"),i=t("../lq_base/util/lq_math_util"),r=t("./lq_collide_config"),c=t("../lq_base/data/lq_data"),l=cc.Vec2,s=cc.game,a=cc.director,u=cc.Scheduler,p=cc.misc,d=function(){function t(t,e,o,n){this.collide_arr=[],this.node_arr=[],this.max_object=e||10,this.max_level=o||4,this.level=n||0,this.rect=t,this.collide_arr=[],this.node_arr=[]}return t.prototype.split=function(){var e=this.level+1,o=.5*this.rect.width,n=.5*this.rect.height,i=this.rect.x,r=this.rect.y;this.node_arr[0]=new t(new c.LQRect(i+o,r,o,n),this.max_object,this.max_level,e),this.node_arr[1]=new t(new c.LQRect(i,r,o,n),this.max_object,this.max_level,e),this.node_arr[2]=new t(new c.LQRect(i,r+n,o,n),this.max_object,this.max_level,e),this.node_arr[3]=new t(new c.LQRect(i+o,r+n,o,n),this.max_object,this.max_level,e)},t.prototype.get_index=function(t){var e=[],o=this.rect.x+this.rect.half_width,n=this.rect.y+this.rect.half_height,i=t.world_rect.y+t.world_rect.half_height>n,r=t.world_rect.x-t.world_rect.half_widtho,l=t.world_rect.y-t.world_rect.half_heightthis.max_object&&this.level=0;e--)if(this.collide_arr[e].collide_id===t.collide_id){this.collide_arr.splice(e,1);break}},t.line_point=function(t,e,o,n,i,r){return Math.abs(this.distanceSquared(t,e,o,n)-(this.distanceSquared(t,e,i,r)+this.distanceSquared(o,n,i,r)))<=1},t.distanceSquared=function(t,e,o,n){return Math.sqrt(Math.pow(t-o,2)+Math.pow(e-n,2))},t.polygon_point=function(t,e,o){var n,i,r=t.length,c=!1;for(n=0,i=r-2;no!=t[i+1]>o&&e<(t[i]-t[n])*(o-t[n+1])/(t[i+1]-t[n+1])+t[n]&&(c=!c),i=n;if(c)return!0;for(n=0;n1?1:u)+t-i,s[1]*u+e-r];return this.dot(p,p)<=c*c},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},t.update_logic=function(){if(this.is_enable)if(r.LQCollideConfig.switch_quad_tree){this.quad_tree.clear();for(var t=this.collide_arr.length-1;t>=0;t--){if(!(s=this.collide_arr[t]))return;s.isValid?(this.update_collide_logic(s),s.is_enable&&(this.update_world_rect(s),this.quad_tree.insert(s))):this.collide_arr.splice(t,1)}d.all_collide_arr=[],this.quad_tree.get_all_area();for(var e=0;e=0;t--){var s;if(!(s=this.collide_arr[t]))return;s.isValid?(this.update_collide_logic(s),s.is_enable&&(this.update_world_rect(s),o.push(s))):this.collide_arr.splice(t,1)}var a=o.length;for(t=0;tn)&&(n=i);for(r=null,c=null,l=0;lc)&&(c=i);if(n=0;n--){var i=t.collide_arr[n];e!==i&&i.is_enable&&(e.follow_target_category?i.collide_category===e.follow_target_category&&o.push(i):0!=(i.collide_category&e.collide_mask)&&o.push(i))}return o.sort(function(t,o){return e.world_rect.sub(t.world_rect).magSqr()-e.world_rect.sub(o.world_rect).magSqr()}),o[0]},t.clear=function(t){if(void 0===t&&(t=!1),t)for(var e=this.collide_arr.length-1;e>=0;e--){var o=this.collide_arr[e];o.isValid&&o.node.destroy()}this.collide_arr=[]},t.check_collide=function(t){var e,o=[];r.LQCollideConfig.switch_quad_tree?(d.temp_collide_arr=[],this.quad_tree.retrieve(t),e=d.temp_collide_arr):e=this.collide_arr;for(var n=0;n=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0}),o.LQCollide=void 0;var c=cc._decorator.ccclass,l=cc._decorator.property,s=cc._decorator.requireComponent,a=cc._decorator.menu,u=cc.Component,p=cc.Enum,d=cc.Size,_=cc.Vec2,h=cc.Graphics,f=cc.Node,y=cc.macro,g=cc.Color,v=t("../lq_base/data/lq_const"),m=t("./lq_collide_config"),b=t("./lq_collide_system"),w=t("../lq_base/data/lq_data"),C=t("./lq_collide_base"),L=t("../lq_base/util/lq_game_util"),O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._draw_collide=!1,e._collide_shape=v.LQCollideShape.Rect,e._collide_group_index=-1,e.collide_group_id=0,e._radius=50,e._size=new d(100,100),e._polygon_points=[new _(-45,-45),new _(45,-45),new _(60,40),new _(0,70),new _(-60,40)],e._offset=new _(0,0),e.data_string="",e.collide_id=0,e.collide_status=v.LQCollideStatus.Idle,e.is_enable=!0,e.is_open_func=!0,e.collide_category=0,e.collide_mask=0,e.collide_map={},e}var o;return i(e,t),o=e,Object.defineProperty(e.prototype,"draw_collide",{get:function(){return this._draw_collide},set:function(t){this._draw_collide=t,this.draw_shape()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collide_shape",{get:function(){return this._collide_shape},set:function(t){this._collide_shape=t,this.draw_shape()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collide_group_index",{get:function(){return-1===this._collide_group_index&&(this._collide_group_index=b.LQCollideSystem.get_info_by_id(this.collide_group_id).index),this._collide_group_index},set:function(t){this._collide_group_index!==t&&(this._collide_group_index=t,this.collide_group_id=b.LQCollideSystem.get_group_by_index(t).id)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this._radius},set:function(t){this._radius=t,this.draw_shape()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(t){this._size=t,this.world_rect&&(this.world_rect.width=t.width,this.world_rect.height=t.height,this.world_rect.half_width=.5*t.width,this.world_rect.half_height=.5*t.height),this.draw_shape()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return this._offset},set:function(t){this._offset=t,this.draw_shape()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polygon_points",{get:function(){return this._polygon_points},set:function(t){this._polygon_points=t,this.draw_shape()},enumerable:!1,configurable:!0}),e.prototype.checkDebugDrawValid=function(){if(!this._debugDrawer||!this._debugDrawer.isValid){var t=this.node.getChildByName("Collide");t?this._debugDrawer=t.getComponent(h):((t=new f("Collide")).zIndex=y.MAX_ZINDEX,this.node.addChild(t),t._objFlags=1096,this._debugDrawer=t.addComponent(h),this._debugDrawer.lineWidth=3,this._debugDrawer.strokeColor=new g(255,0,0),this._debugDrawer.fillColor=new g(255,0,0))}},e.prototype.draw_shape=function(){if(this._draw_collide){this.checkDebugDrawValid(),this._debugDrawer.clear();var t={key:"scaleX",value:this.node.scaleX},e={key:"scaleY",value:this.node.scaleY};if(L.LQGameUtil.recursion_node_property(this.node,t),L.LQGameUtil.recursion_node_property(this.node,e),0!==t.value&&0!==e.value)switch(this._debugDrawer.node.scaleX=1/t.value,this._debugDrawer.node.scaleY=1/e.value,this._collide_shape){case v.LQCollideShape.Circle:this._debugDrawer.circle(+this._offset.x,+this._offset.y,this._radius),this._debugDrawer.stroke();break;case v.LQCollideShape.Rect:this._debugDrawer.moveTo(.5*-this._size.width+this._offset.x,.5*-this._size.height+this._offset.y),this._debugDrawer.lineTo(.5*-this._size.width+this._offset.x,.5*+this._size.height+this._offset.y),this._debugDrawer.lineTo(.5*this._size.width+this._offset.x,.5*+this._size.height+this._offset.y),this._debugDrawer.lineTo(.5*this._size.width+this._offset.x,.5*-this._size.height+this._offset.y),this._debugDrawer.lineTo(.5*-this._size.width+this._offset.x,.5*-this._size.height+this._offset.y),this._debugDrawer.stroke();break;case v.LQCollideShape.Polygon:this._debugDrawer.moveTo(this._polygon_points[0].x+this._offset.x,this._polygon_points[0].y+this._offset.y);for(var o=1;oo/e?(t.fitHeight=!1,t.fitWidth=!0):(t.fitHeight=!0,t.fitWidth=!1),t.fitHeight},t.recursion_node_property=function(t,e){t.parent&&(e.value*=t.parent[e.key],this.recursion_node_property(t.parent,e))},t.find_node=function(t){if(!t||t.length<=0)console.warn("\u8def\u5f84\u4e0d\u6b63\u786e");else{var e=t.split("/"),o=l(e[0]);if(o){for(var n=o,i=1;i0?o:o+6.28},t.intersects_rect=function(t,e){return Math.abs(t.x-e.x)e.x-.5*e.width&&t.xe.y-.5*e.height&&t.y=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=cc._decorator,l=c.ccclass,s=(c.property,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.start=function(){},e.prototype.onDestroy=function(){},r([l],e)}(cc.Component));o.default=s,cc._RF.pop()},{}],monsterFactory:[function(t,e,o){"use strict";cc._RF.push(e,"4d3fcHTBlpMkp4oVmYBBuEb","monsterFactory");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../common/editorSet"),l=cc._decorator,s=l.ccclass,a=l.property,u=l.executeInEditMode,p=l.playOnFocus,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.monster=null,e.aniClip=null,e._num=1,e._time=1,e._delay=0,e.timeArr=[],e}return i(e,t),Object.defineProperty(e.prototype,"num",{get:function(){return this._num},set:function(t){this._num=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"time",{get:function(){return this._time},set:function(t){this._time=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){return this._delay},set:function(t){this._delay=t},enumerable:!1,configurable:!0}),e.prototype.onLoad=function(){var t=new cc.Node("monsterGroup");this.monsterNode=t,c.EditorSet.DontShow(t),this.node.addChild(t),this.play()},e.prototype.onFocusInEditor=function(){},e.prototype.onLostFocusInEditor=function(){},e.prototype.end=function(){this.monsterNode.destroyAllChildren(),this.timeArr.forEach(function(t){clearTimeout(t)}),this.timeArr=[]},e.prototype.play=function(){var t=this;if(this.monsterNode.destroyAllChildren(),this.timeArr.forEach(function(t){clearTimeout(t)}),this.timeArr=[],this.monster)if(this.aniClip)if(this._delay>0){var e=setTimeout(function(){t.createMonster()},1e3*this._delay);this.timeArr.push(e)}else this.createMonster();else cc.log("\u8bbe\u7f6e\u52a8\u753b");else cc.log("\u8bbe\u7f6e\u602a\u7269\u8d44\u6e90")},e.prototype.createMonster=function(){var t=this;this.monsterCnt=0;for(var e=0;e=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("./aniList"),l=t("./monsterFactory"),s=cc._decorator,a=s.ccclass,u=(s.property,s.executeInEditMode),p=s.playOnFocus,d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.onFocusInEditor=function(){this.getComponentsInChildren(l.default).forEach(function(t){t.end(),t.play()}),this.getComponentsInChildren(c.default).forEach(function(t){t.end(),t.play()})},e.prototype.onLostFocusInEditor=function(){this.getComponentsInChildren(l.default).forEach(function(t){t.end()}),this.getComponentsInChildren(c.default).forEach(function(t){t.end()})},r([a,u,p],e)}(cc.Component);o.default=d,cc._RF.pop()},{"./aniList":"aniList","./monsterFactory":"monsterFactory"}],moveDest:[function(t,e,o){"use strict";cc._RF.push(e,"7b3a8QUk0JHAa0YcGXkm+Ku","moveDest");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("./GameLogic"),l=cc._decorator,s=l.ccclass,a=(l.property,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._speed=100,e._destination=cc.v2(0,0),e}return i(e,t),Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"destination",{get:function(){return this._destination},set:function(t){this._destination=t},enumerable:!1,configurable:!0}),e.prototype.gameUpdate=function(t){var e=this.destination.sub(this.node.getPosition());if(e.mag()<=this.speed*t)this.node.setPosition(this.destination);else{var o=e.normalize();this.node.x+=this.speed*t*o.x,this.node.y+=this.speed*t*o.y}},e.prototype.isDone=function(){return this.node.x==this._destination.x&&this.node.y==this._destination.y},r([s],e)}(c.GameLogic));o.default=a,cc._RF.pop()},{"./GameLogic":"GameLogic"}],move:[function(t,e,o){"use strict";cc._RF.push(e,"8e426MsXztKpq50Juo4gsQU","move");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("./GameLogic"),l=cc._decorator,s=l.ccclass,a=(l.property,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._speed=100,e._dirction=cc.v2(0,0),e}return i(e,t),Object.defineProperty(e.prototype,"speed",{get:function(){return this._speed},set:function(t){this._speed=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dirction",{get:function(){return this._dirction},set:function(t){this._dirction=t},enumerable:!1,configurable:!0}),e.prototype.gameUpdate=function(t){this.node.x+=this.speed*t*this.dirction.x,this.node.y+=this.speed*t*this.dirction.y},r([s],e)}(c.GameLogic));o.default=a,cc._RF.pop()},{"./GameLogic":"GameLogic"}],nestItem:[function(t,e,o){"use strict";cc._RF.push(e,"a690866iQtGuq3fo/8VYDgw","nestItem"),Object.defineProperty(o,"__esModule",{value:!0}),o.NestItem=void 0;o.NestItem=function(t,e){this.id=t,this.data=e},cc._RF.pop()},{}],nestPlay:[function(t,e,o){"use strict";cc._RF.push(e,"316d75cKThCnY9SsMcqIHL+","nestPlay");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c},c=this&&this.__awaiter||function(t,e,o,n){return new(o||(o=Promise))(function(i,r){function c(t){try{s(n.next(t))}catch(e){r(e)}}function l(t){try{s(n.throw(t))}catch(e){r(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof o?e:new o(function(t){t(e)})).then(c,l)}s((n=n.apply(t,e||[])).next())})},l=this&&this.__generator||function(t,e){var o,n,i,r,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return s([t,e])}}function s(r){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return c.label++,{value:r[1],done:!1};case 5:c.label++,n=r[1],r=[0];continue;case 7:r=c.ops.pop(),c.trys.pop();continue;default:if(!(i=(i=c.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){c=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0?(v=setTimeout(function(){m.createMonster()},1e3*i),this.timeArr.push(v)):this.createMonster(),[2]}})})},e.prototype.createMonster=function(){this.aniClip.length,this.createMonster2()},e.prototype.createMonster2=function(){var t=this;this.monsterCnt=0;for(var e=0;e0&&i[i.length-1])&&(6===r[0]||2===r[0])){c=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]0;){var c=s.ConfigMgr.inst.getCfgById(l.ConfigConst.behavior,n);i.push(c),n=c.next}this.behaviors=i}return t.prototype.begin=function(){return n(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return this.step=0,[4,this.oneBehavior()];case 1:return t.sent(),cc.director.getScheduler().scheduleUpdate(this,1,!1),[2]}})})},t.prototype.update=function(){if(this.state==r.moving&&!(Date.now()<=this.nextTime)){for(var t=!0,e=0;e=this.behaviors.length?this.end():this.oneBehavior()},t}();o.Nest=p,cc._RF.pop()},{"../cfg/ConfigDef":"ConfigDef","../cfg/configMgr":"configMgr","../common/utils":"utils","../res/resMgr":"resMgr","../update/moveDest":"moveDest"}],player:[function(t,e,o){"use strict";cc._RF.push(e,"19c49vmHFNOJ5wlVqraSfN6","player");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0}),o.PlayerAttack=void 0;var c=t("../Core/Base/EventMgr"),l=t("../Start"),s=t("./eventDef"),a=t("./update/GameLogic"),u=t("./update/moveDest"),p=cc._decorator,d=p.ccclass,_=p.property;o.PlayerAttack=!0;var h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.$role_node=null,e.moveCpt=null,e.bulletCD=.1,e.bulletCDTime=0,e}var o;return i(e,t),o=e,e.prototype.onLoad=function(){this.moveCpt=this.node.getComponent(u.default),this.moveCpt||(this.moveCpt=this.node.addComponent(u.default)),this.moveCpt.speed=800,this.moveCpt.enabled=!1},e.prototype.onEnable=function(){c.EventMgr.inst.on(s.Touch_Start,this.onTouchStart,this),c.EventMgr.inst.on(s.Touch_Move,this.onTouchMove,this),c.EventMgr.inst.on(s.Touch_End,this.onTouchEnd,this)},e.prototype.onDisable=function(){},e.prototype.gameUpdate=function(t){this.bulletCDTime-=t,this.bulletCDTime<=0&&(this.bulletCDTime=this.bulletCD,o.PlayerAttack&&l.default.inst.createPlayerBullet(this.node.getPosition()))},e.prototype.onTouchStart=function(){this.airStartPos=this.node.getPosition(),this.moveCpt.destination=this.airStartPos,this.moveCpt.enabled=!0},e.prototype.onTouchMove=function(t){this.moveCpt.destination=this.airStartPos.add(t)},e.prototype.onTouchEnd=function(){this.moveCpt.enabled=!1},e.PlayerAttack=!1,r([_({type:cc.Node,displayName:""})],e.prototype,"$role_node",void 0),o=r([d],e)}(a.GameLogic);o.default=h,cc._RF.pop()},{"../Core/Base/EventMgr":"EventMgr","../Start":"Start","./eventDef":"eventDef","./update/GameLogic":"GameLogic","./update/moveDest":"moveDest"}],resMgr:[function(t,e,o){"use strict";cc._RF.push(e,"7ccackTKgtEV7DJvOerXNIw","resMgr"),Object.defineProperty(o,"__esModule",{value:!0}),o.ResMgr=void 0;var n=t("./resRelease"),i=function(){function t(){}return Object.defineProperty(t,"inst",{get:function(){return null==this._inst&&(this._inst=new t),this._inst},enumerable:!1,configurable:!0}),t.prototype.loadPrefab=function(t,e){return new Promise(function(o){cc.resources.load(t,cc.Prefab,function(t,i){if(i){var r=cc.instantiate(i);return e.addChild(r),i.addRef(),r.addComponent(n.ResRelease).call=function(){i.decRef()},void o(r)}cc.log(t),o(null)})})},t.prototype.getPrefab=function(t){return new Promise(function(e){cc.resources.load(t,cc.Prefab,function(t,o){o?e(o):(cc.log(t),e(null))})})},t.prototype.createNode=function(t,e){var o=cc.instantiate(t);return e.addChild(o),t.addRef(),o.addComponent(n.ResRelease).call=function(){t.decRef()},o},t.prototype.loadAni=function(t,e){return new Promise(function(o){cc.resources.load(t,cc.AnimationClip,function(t,i){if(i)return i.addRef(),e.addComponent(n.ResRelease).call=function(){i.decRef()},void o(i);cc.log(t),o(null)})})},t.prototype.loadAniArr=function(t,e){return new Promise(function(o){cc.resources.load(t,cc.AnimationClip,function(t,i){if(i)return i.forEach(function(t){return t.addRef()}),e.addComponent(n.ResRelease).call=function(){i.forEach(function(t){return t.decRef()})},void o(i);cc.log(t),o(null)})})},t}();o.ResMgr=i,cc._RF.pop()},{"./resRelease":"resRelease"}],resRelease:[function(t,e,o){"use strict";cc._RF.push(e,"7b967KfRVBJUJntAJxkbpYu","resRelease");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0}),o.ResRelease=void 0;var c=cc._decorator,l=c.ccclass,s=(c.property,c.executeInEditMode,c.playOnFocus,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.call=null,e}return i(e,t),e.prototype.onDestroy=function(){this.call&&this.call()},r([l],e)}(cc.Component));o.ResRelease=s,cc._RF.pop()},{}],smallLevelItem:[function(t,e,o){"use strict";cc._RF.push(e,"b3abeFluKdNd4kJ0ufhkRIX","smallLevelItem"),Object.defineProperty(o,"__esModule",{value:!0}),o.SmallLevelItem=void 0;var n=t("../common/utils"),i=function(){function t(t,e){this.id=t,this.data=e}return t.prototype.getNestId=function(){return n.Utils.str2arr(this.data.nest+"",";")},t}();o.SmallLevelItem=i,cc._RF.pop()},{"../common/utils":"utils"}],test:[function(t,e,o){"use strict";cc._RF.push(e,"c8ad6fhb1BESYIiTZAAD3ne","test");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../Script/game/cfg/configMgr"),l=cc._decorator,s=l.ccclass,a=(l.property,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.onLoad=function(){c.ConfigMgr.inst.init()},r([s],e)}(cc.Component));o.default=a,cc._RF.pop()},{"../Script/game/cfg/configMgr":"configMgr"}],touch:[function(t,e,o){"use strict";cc._RF.push(e,"daaa5a9nd1KUqYlgoprfYb9","touch");var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),r=this&&this.__decorate||function(t,e,o,n){var i,r=arguments.length,c=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(c=(r<3?i(c):r>3?i(e,o,c):i(e,o))||c);return r>3&&c&&Object.defineProperty(e,o,c),c};Object.defineProperty(o,"__esModule",{value:!0});var c=t("../../Script/Core/Base/EventMgr"),l=t("./eventDef"),s=cc._decorator,a=s.ccclass,u=(s.property,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.touchId=-1,e}return i(e,t),e.prototype.onEnable=function(){this.node.on(cc.Node.EventType.TOUCH_START,this.onTouchStart,this),this.node.on(cc.Node.EventType.TOUCH_MOVE,this.onTouchMove,this),this.node.on(cc.Node.EventType.TOUCH_END,this.onTouchEnd,this),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this.onTouchEnd,this)},e.prototype.onDisable=function(){this.node.off(cc.Node.EventType.TOUCH_START,this.onTouchStart,this),this.node.off(cc.Node.EventType.TOUCH_MOVE,this.onTouchMove,this),this.node.off(cc.Node.EventType.TOUCH_END,this.onTouchEnd,this),this.node.off(cc.Node.EventType.TOUCH_CANCEL,this.onTouchEnd,this)},e.prototype.onTouchStart=function(t){-1==this.touchId&&(this.touchId=t.getID(),c.EventMgr.inst.emit(l.Touch_Start))},e.prototype.onTouchMove=function(t){if(this.touchId==t.getID()){var e=t.getLocation().sub(t.getStartLocation());c.EventMgr.inst.emit(l.Touch_Move,e)}},e.prototype.onTouchEnd=function(t){this.touchId==t.getID()&&(this.touchId=-1,c.EventMgr.inst.emit(l.Touch_End))},r([a],e)}(cc.Component));o.default=u,cc._RF.pop()},{"../../Script/Core/Base/EventMgr":"EventMgr","./eventDef":"eventDef"}],utils:[function(t,e,o){"use strict";cc._RF.push(e,"a320bXRUs5ITKZa4v3pNW+Q","utils"),Object.defineProperty(o,"__esModule",{value:!0}),o.Utils=void 0,function(t){t.pos2vec2=function(t){var e=t.split(";");return cc.v2(Number(e[0]),-Number(e[1]))},t.str2arr=function(t,e){return t.split(e)},t.createNode=function(t,e){void 0===e&&(e="");var o=new cc.Node(e);return t.addChild(o),o},t.intDefault=function(t,e){return void 0===e&&(e=0),""==t?0:Number(t)}}(o.Utils||(o.Utils={})),cc._RF.pop()},{}]},{},["test","lq_const","lq_data","lq_interface","lq_base_util","lq_game_util","lq_math_util","lq_platform_util","lq_pool_util","lq_collide","lq_collide_base","lq_collide_config","lq_collide_system","EventMgr","ModuleContext","UIController","UIDef","UILayers","UIMgr","Start","Rocker","bullet","ConfigDef","configMgr","nestItem","smallLevelItem","editorSet","utils","eventDef","flyImg","levelempty","loading","m2","aniList","monsterFactory","monsterPlay","nest","nestPlay","debug","player","resMgr","resRelease","touch","GameAnimation","GameLogic","logic","move","moveDest","levelMgr"]);