window.__require=function e(t,i,o){function n(r,c){if(!i[r]){if(!t[r]){var l=r.split("/");if(l=l[l.length-1],!t[l]){var d="function"==typeof __require&&__require;if(!c&&d)return d(l,!0);if(s)return s(l,!0);throw new Error("Cannot find module '"+r+"'")}}var p=i[r]={exports:{}};t[r][0].call(p.exports,function(e){return n(t[r][1][e]||e)},p,p.exports,e,t,i,o)}return i[r].exports}for(var s="function"==typeof __require&&__require,r=0;r<o.length;r++)n(o[r]);return n}({Helloworld:[function(e,t,i){"use strict";cc._RF.push(t,"e1b90/rohdEk4SdmmEZANaD","Helloworld"),Object.defineProperty(i,"__esModule",{value:!0});var o=cc._decorator,n=o.ccclass,s=o.property,r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.label=null,t.text="hello",t.bulletPf=null,t}return __extends(t,e),t.prototype.start=function(){var e=this;this.label.string=this.text,this.schedule(function(){var t=cc.instantiate(e.bulletPf);e.node.addChild(t),t.getComponent("SimpleBulletView").reuse(0,cc.v2(-400,300),cc.v2(1e3,300),5e3,-500),t.zIndex=1e3},.5)},__decorate([s(cc.Label)],t.prototype,"label",void 0),__decorate([s],t.prototype,"text",void 0),__decorate([s(cc.Prefab)],t.prototype,"bulletPf",void 0),t=__decorate([n],t)}(cc.Component);i.default=r,cc._RF.pop()},{}],SimpleBulletView:[function(e,t,i){"use strict";cc._RF.push(t,"c7740GnumdE+7dwFSqErqYQ","SimpleBulletView"),Object.defineProperty(i,"__esModule",{value:!0});var o=cc._decorator,n=o.ccclass,s=(o.property,o.disallowMultiple),r=o.menu;function c(e,t){e.normalizeSelf(),e.mulSelf(t)}i.pSetInLength=c;var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.id=0,t.acc=0,t.isDying=!1,t._dyingCnt=0,t.inited=!1,t.isFirstUpdate=!1,t}return __extends(t,e),t.prototype.start=function(){},t.prototype.reuse=function(e,t,i,o,n){this.endPos=i,this.isDying=!1,this._dyingCnt=0,this.id=e,this.node.setPosition(t);var s=i.sub(t);c(s,o),this.speed=s,this.acc=n,this.inited=!0,this.isFirstUpdate=!0},t.prototype.unuse=function(){},t.prototype.lateUpdate=function(e){var t;if(this.inited)if(this.isFirstUpdate)this.isFirstUpdate=!1;else if(!this.isDying&&(t=this.speed.mag(),t+=this.acc*e,c(this.speed,t),this.node.x+=this.speed.x*e,this.node.y+=this.speed.y*e,this.endPos)){var i=!1,o=!1;i=this.speed.x>0?this.node.x>=this.endPos.x:this.node.x<=this.endPos.x,o=this.speed.y>0?this.node.y>=this.endPos.y:this.node.y<=this.endPos.y,i&&o&&this.die(this.endPos)}},t.prototype.die=function(e){var t=this;if(!this.isDying){this.isDying=!0,e&&this.node.setPosition(e),this.getComponent(cc.MotionStreak).reset();this.node.runAction(cc.sequence(cc.delayTime(.2),cc.callFunc(function(){t.node.destroy(),t.inited=!1})))}},t=__decorate([n,s,r("View/SimpleBulletView")],t)}(cc.Component);i.SimpleBulletView=l,cc._RF.pop()},{}],Test:[function(e,t,i){"use strict";cc._RF.push(t,"bbe4egwTZNGRpoSDSYm1UnX","Test"),Object.defineProperty(i,"__esModule",{value:!0});var o=cc._decorator,n=o.ccclass,s=o.property,r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.label=null,t.pf=null,t.text="hello",t}return __extends(t,e),t.prototype.onLoad=function(){this.scheduleOnce(this.setSprite,1)},t.prototype.setSprite=function(){var e=cc.instantiate(this.pf);this.node.addChild(e),e.setPosition(cc.v2())},t.prototype.start=function(){},__decorate([s(cc.Label)],t.prototype,"label",void 0),__decorate([s(cc.Prefab)],t.prototype,"pf",void 0),__decorate([s],t.prototype,"text",void 0),t=__decorate([n],t)}(cc.Component);i.default=r,cc._RF.pop()},{}]},{},["Helloworld","SimpleBulletView","Test"]);