Commit 3890406a authored by Friends233's avatar Friends233

增加碰撞检测、计分、游戏逻辑基本完成

parent 40078fc7
......@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>new_game_template</title>
<title>flappy bird</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
......
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>new_game_template</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="full-screen" content="true"/>
<meta name="screen-orientation" content="portrait"/>
<meta name="x5-fullscreen" content="true"/>
<meta name="360-fullscreen" content="true"/>
<!-- polyfill -->
<!-- <script src="//yun.duiba.com.cn/db_games/libs0924/polyfill_220525.js" crossorigin="anonymous"></script>-->
<!-- 渲染引擎 -->
<script src="//yun.duiba.com.cn/db_games/libs0924/fyge2044.min.js" crossorigin="anonymous"></script>
<!--<script src="libs/fyge.min.js" crossorigin="anonymous"></script>-->
<!-- svga解析库 -->
<script src="//yun.duiba.com.cn/db_games/libs0924/svgaParser.minWeb.js" crossorigin="anonymous"></script>
<!-- 放声音的 -->
<script src="//yun.duiba.com.cn/db_games/libs0924/howler.min.js" crossorigin="anonymous"></script>
<style>
html,
body {
padding: 0;
margin: 0;
border: 0;
width: 100%;
height: 100%;
overflow: hidden;
position: absolute;
background-color: #ffffff;
}
#__loading__ {
position: absolute;
left: 50%;
top: 50%;
margin-left: -45px;
color: #ffffff;
}
#cusEngine {
line-height: 0;
font-size: 0;
position: absolute;
}
#canvas {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="__loading__">拼命加载中...</div>
<div id="cusEngine">
<canvas id="canvas"></canvas>
</div>
<!-- 帧率检测 -->
<!-- <script src="https://yun.duiba.com.cn/db_games/libs0126/stats.js"></script> -->
<script>
const app = {
checkMember: () => {
return false;
}
};
function getApp() {
return app;
}
// document.oncontextmenu = () => false;
</script>
<script>
var CFG = CFG || {};
CFG.projectId = 'pa525eacc';//线上直接写死
CFG.appID = '76177';//线上直接写死
//TODO我的奖品链接
window["recordUrl"] = "fe071865b.html";
window.addEventListener("load", function () {
//获取canvas
var canvas = document.getElementById("canvas");
canvas.width = document.body.clientWidth * (window.devicePixelRatio || 1)
canvas.height = document.body.clientHeight * (window.devicePixelRatio || 1)
var main = new output.Game(canvas);
main.initWebEvent();
window.stage = main.stage
})
</script>
<!-- 构建的js -->
<script src="//yun.duiba.com.cn/db_games/activity/template/1676451176/output.js" crossorigin="anonymous"></script>
</body>
</html>
var __ENV__="prod",__version__="1.0.0",__buildDate__="2023-02-15T08:52:51.482Z";!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).output={})}(this,(function(e){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var t,n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},n(e,t)};function i(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function o(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{p(i.next(e))}catch(e){r(e)}}function a(e){try{p(i.throw(e))}catch(e){r(e)}}function p(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}p((i=i.apply(e,t||[])).next())}))}function r(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}!function(e){var t,n,i={},s={},a={},p={},u={},l={};function c(e){if(p[e])return new Promise((function(e){e()}));if(u[e])return u[e];var t=function(e){var t=f(e);if(!t)return null;if(t.atlas){var n=[e+".json"];return t.keys&&(n=n.concat(t.keys.split(",").filter((function(e){return".png"!=e.substr(-4)})))),n}return t.keys?t.keys.split(","):null}(e);if(!t||!t.length)return p[e]=!0,new Promise((function(e){e()}));var n=new Promise((function(n,i){!function(e,t){var n=0,i=t.length;i||e(!0);for(var o=!0,r=0;r<i;r++){h(t[r],(function(t,r){t||(o=!1),++n==i&&e(o)}),this)}}((function(t){delete u[e],t?(p[e]=!0,n()):i()}),t)}));return u[e]=n,n}function h(t,n,o){var r=t.substring(t.lastIndexOf(".")+1,t.length);if("png"==r||"jpg"==r){var a=i[t]||FYGE.TextureCache[t];if(a)return n&&n.call(o,a,t),new Promise((function(e){e(a)}));if(l[t])return y(t,n,o);if((m=g(t))&&"jpg"!=r){var p=f(m);if(p&&p.atlas){var u=m+".json";return l[u]?l[u].then((function(e){var r=i[t]||FYGE.TextureCache[t];return n&&n.call(o,r,t),r}),(function(){return n&&n.call(o,null,t),null})):h(u).then((function(){var e=i[t]||FYGE.TextureCache[t];return n&&n.call(o,e,t),e}),(function(){return n&&n.call(o,null,t),null}))}}var c=m?e.resPath+m+"/"+t:t,d=new Promise((function(e,r){FYGE.GlobalLoader.loadImage((function(s,a){if(delete l[t],s){var p=FYGE.Texture.from(a);i[t]=p,FYGE.Texture.addToCache(p,t),n&&n.call(o,p,t),e(p)}else n&&n.call(o,null,t),r()}),c)}));return l[t]=d,d}if("svga"==r){if(s[t])return n&&n.call(o,s[t],t),new Promise((function(e){e(s[t])}));if(l[t])return y(t,n,o);c=(m=g(t))?e.resPath+m+"/"+t:t,d=new Promise((function(e,i){SvgaParser.loadSvga(c,(function(i){delete l[t],s[t]=i,n&&n.call(o,i,t),e(i)}),(function(e){delete l[t],n&&n.call(o,null,t),i(e)}))}));return l[t]=d,d}if("json"==r){if(l[t])return y(t,n,o);var m;c=(m=g(t))?e.resPath+m+"/"+t:t,d=new Promise((function(e,r){var s=f(m).atlas;FYGE.GlobalLoader.loadImage((function(a,p){if(a){var u=FYGE.createTextureSheet(new FYGE.BaseTexture(p),s);for(var c in u)i[c]=u[c];n&&n.call(o,u,t),e(u)}else delete l[t],n&&n.call(o,null,t),r()}),c.replace("json","png"))}));return l[t]=d,d}}function d(e){if(!e)return null;var t=e.substring(e.lastIndexOf(".")+1,e.length);return"png"==t||"jpg"==t?i[e]||FYGE.TextureCache[e]||null:"svga"==t?s[e]||null:"mp3"==t?a[e]||null:void 0}function g(e){for(var n=0;n<t.groups.length;n++){var i=t.groups[n],o=i.keys;if(o&&o.split(",").indexOf(e)>-1)return i.name;if(i.atlas&&i.name+".json"==e)return i.name}return null}function f(e){for(var n,i=t.groups,o=0;o<i.length;o++)if(i[o].name===e){n=i[o];break}return n}function y(e,t,n){return l[e].then((function(i){t&&t.call(n,i,e)}),(function(){t&&t.call(n,null,e)})),l[e]}function m(e,t){if(void 0===t&&(t=n),!t||!t.children||!t.children.length)return null;for(var i=0;i<t.children.length;i++){var o=t.children[i];if(o.name==e&&("container"==o.type||"item"==o.type))return o;var r=m(e,o);if(r)return r}return null}function v(e){var t;switch(e.type){case"container":t=new FYGE.Container;break;case"button":t=new FYGE.Button(d(e.props.tUp),e.props.tDown?d(e.props.tDown):null,e.props.tDisable?d(e.props.tDisable):null);break;case"text":for(var n in t=new FYGE.TextField,e.props)t[n]=e.props[n];break;case"sprite":t=new FYGE.Sprite(d(e.props.source));break;case"rect":(t=new FYGE.Shape).beginFill(FYGE.string2hex(e.props.fillColor)),t.drawRect(0,0,e.props.width,e.props.height),t.endFill()}return t.name=e.name,t.alpha=e.alpha||1,t.position.set(e.x,e.y),t}e.loadConfig=function(n){t=n,e.resPath=n.path},e.loadGroup=c,e.getResAsync=h,e.getResByUrl=function(){},e.getRes=d,e.loadAllGroup=function(){var e=t.groups,n=[];return e.forEach((function(e){n.push(c(e.name))})),Promise.all(n)},e.loadAllGroupForProgress=function(){var e=this;return new Promise((function(n){var i=t.groups,s=0;i.forEach((function(t){return o(e,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,c(t.name)];case 1:return e.sent(),s++,ie.dispatchEvent("loadPer",s/(i.length-1)),s==i.length-1&&n(0),[2]}}))}))}))}))},e.loadSkinConfig=function(e){n=e},e.initSkinDisplay=function e(t,n,i){var o="string"==typeof n?m(n):n;if(o.children&&o.children.length)for(var r=0;r<o.children.length;r++){var s=o.children[r];if("item"!=s.type){var a=t.addChild(v(s));i&&s.id&&(i[s.id]=a),"container"==s.type&&e(a,s,i)}}},e.getSkinDataByName=m,e.destroyGroup=function(e){var t=f(e);if(t){var n=[];t.keys&&(n=t.keys.split(","));for(var o=[],r=0;r<n.length;r++){var s=d(n[r]);s&&(-1==o.indexOf(s.baseTexture)&&(s.baseTexture.destroy(),o.push(s.baseTexture)),s.destroy()),delete i[n[r]]}}}}(t||(t={}));var s,a,p,u,l,c,h=!1,d=function(e){!function(){if(!h){h=!0;var e=new f;a=E.topLayer,s=e;var t=(E.stageWidth-160)/2,n=(E.stageHeight-s.height)/2;s.x=E.stageOffsetX-a.x+t,s.y=E.stageOffsetY-a.y+n;var i=(new FYGE.Graphics).beginFill(0).drawRect(-t,-n,E.stageWidth,E.stageHeight).endFill();i.alpha=0,s.addChildAt(i,0)}}(),s.show(e),a.addChild(s)},g=function(){a.removeChild(s)},f=function(e){function n(){var n=e.call(this)||this,i=t.getRes("waitingBg.png"),o=new FYGE.Sprite(i);n.addChild(o);var r=t.getRes("waitingRot.png"),s=new FYGE.Sprite(r);s.x=(i.width-r.width)/2,s.y=47,s.anchorX=r.width/2,s.anchorY=r.height/2,n.addChild(s);var a=0;return s.addEventListener(FYGE.Event.ENTER_FRAME,(function(){++a%30==0&&(s.rotation+=45)}),n),n.msg=new FYGE.TextField,n.msg.y=125,n.msg.textWidth=i.width,n.msg.textAlign=FYGE.TEXT_ALIGN.CENTER,n.msg.size=26,n.msg.fillColor="#ffffff",n.addChild(n.msg),n}return i(n,e),n.prototype.show=function(e){void 0===e&&(e="加载中"),this.msg.text=e},n.prototype.destroy=function(){e.prototype.destroy.call(this),this.msg=null},n}(FYGE.Container),y=!1,m=function(e){!function(){if(!y){y=!0,p=new v,u=E.toastLayer,p.alpha=0,p.x=E.stageOffsetX-u.x+(E.stageWidth-p.width)/2;var e=p.height,t=E.stageOffsetY-u.y;l=t-e,c=t+(E.stageHeight-e)/2}}(),p.show(e),u.addChild(p),FYGE.Tween.removeTweens(p),FYGE.Tween.get(p).set({y:l,alpha:1}).to({y:c},500,FYGE.Ease.quartOut).wait(800).to({alpha:0},300).call((function(){u.removeChild(p)}))},v=function(e){function n(){var n=e.call(this)||this;n.PADDING=40,n.mouseChildren=!1,n.mouseEnable=!1;var i=t.getRes("toastBg.png");return n.bg=new FYGE.Sprite(i),n.addChild(n.bg),n.msg=new FYGE.TextField,n.msg.size=28,n.msg.fillColor="0xffffff",n.msg.text="",n.msg.verticalAlign=FYGE.VERTICAL_ALIGN.MIDDLE,n.msg.textHeight=i.height,n.msg.textAlign=FYGE.TEXT_ALIGN.CENTER,n.addChild(n.msg),n}return i(n,e),n.prototype.show=function(e){this.msg.text=e,this.msg.x=(this.bg.width-this.msg.textWidth)/2},n.prototype.destroy=function(){FYGE.Tween.removeTweens(this),e.prototype.destroy.call(this),this.msg=null,this.bg=null},n}(FYGE.Container),w=function(){function e(){this.stacks=[]}return Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e)},enumerable:!1,configurable:!0}),e.prototype.init=function(e){this._parent=e;var t=new FYGE.Shape;t.beginFill(0),t.drawRect(E.stageOffsetX-e.x,E.stageOffsetY-e.y,E.stageWidth,E.stageHeight),t.endFill(),t.hitTestByPixel=!1,t.visible=!1,this._parent.addChild(t),this._bg=t},e.prototype.closeAll=function(){this.stacks.forEach((function(e){return e.hidePanel()}))},e.prototype.show=function(e,t){var n=this;d();var i=new e(t);return this.add(i),this.stacks.push(i),i.onLoaded=function(){i.y=-(1624-E.stageHeight>>1),g(),n.updateView(!1),i.start(t),i.visible&&i.showAni()},i.onLoadError=function(){g(),m("资源加载失败"),i.removeEventListener("onDestroy",n.onPanelHide,n),n.remove(i)},i},e.prototype.updateView=function(e){var t=this;void 0===e&&(e=!0),this.stacks.length?(this._parent.visible=!0,"hide"==this.bgAni&&(this.bgAni="show",FYGE.Tween.removeTweens(this._bg),this._bg.alpha=.7),!1===this._bg.visible&&(this._bg.visible=!0,this._bg.alpha=0,FYGE.Tween.get(this._bg).to({alpha:.7},200,FYGE.Ease.cubicOut))):this._bg.visible&&(this.bgAni="hide",FYGE.Tween.removeTweens(this._bg),FYGE.Tween.get(this._bg).to({alpha:0},200,FYGE.Ease.cubicOut).call((function(){t._bg.visible=!1,t._current=null,t._parent.visible=!1})));for(var n=0;n<this.stacks.length;n++)n<this.stacks.length-1?this.stacks[n].visible=!1:(this.stacks[n].visible=!0,e&&this.stacks[n].showAni(),this._current=this.stacks[n])},e.prototype.add=function(e){this._parent.addChild(e),e.addEventListener("onDestroy",this.onPanelHide,this)},e.prototype.remove=function(e){this._parent.removeChild(e),this.stacks=this.stacks.filter((function(t){return t!=e}))},e.prototype.onPanelHide=function(e){var t=e.target;t.removeEventListener("onDestroy",this.onPanelHide,this),this.remove(t),this.updateView()},Object.defineProperty(e.prototype,"currentPanel",{get:function(){return this._current},enumerable:!1,configurable:!0}),e.prototype.closeCurrent=function(){this._current&&this._current.hidePanel()},e.prototype.destroy=function(){e._instance=null,this.stacks=null,this._current=null,this._parent=null,FYGE.Tween.removeTweens(this._bg),this._bg=null},e}(),b=function(){function e(){}return Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e)},enumerable:!1,configurable:!0}),e.prototype.init=function(e){this._parent=e},e.prototype.change=function(e,t){var n=this,i=new e(t);i.visible=!1,d();var o=this._currentScene;i.onLoaded=function(){g(),i.showAni((function(){o&&o.destroy()})),i.visible=!0,i.start(t)},i.onLoadError=function(){g(),m("资源加载失败"),n._currentScene=o||null,n._parent.removeChild(i)},this._currentScene=i,this._parent.addChild(i)},Object.defineProperty(e.prototype,"currentScene",{get:function(){return this._currentScene},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){e._instance=null,this._currentScene=null,this._parent=null},e}(),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.init=function(e){e.addChild(this);for(var t=["_bottomLayer","_sceneLayer","_popupLayer","_toastLayer","_topLayer","_shareLayer"],n=0;n<t.length;n++)this[t[n]]=new FYGE.Container,this.addChild(this[t[n]]);this.shareLayer.y=-this.stageOffsetY,b.instance.init(this.sceneLayer),w.instance.init(this.popupLayer)},Object.defineProperty(t.prototype,"bottomLayer",{get:function(){return this._bottomLayer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sceneLayer",{get:function(){return this._sceneLayer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupLayer",{get:function(){return this._popupLayer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toastLayer",{get:function(){return this._toastLayer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topLayer",{get:function(){return this._topLayer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shareLayer",{get:function(){return this._shareLayer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stageHeight",{get:function(){return this.stage?this.stage.viewRect.height:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stageWidth",{get:function(){return this.stage?this.stage.viewRect.width:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stageOffsetX",{get:function(){return this.stage?this.stage.viewRect.x:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stageOffsetY",{get:function(){return this.stage?this.stage.viewRect.y:0},enumerable:!1,configurable:!0}),t}(FYGE.Container),E=new x;var _;function G(e,t){void 0===t&&(t=!0),e&&(FYGE.Tween.removeTweens(e),t&&e.children&&e.children.length&&e.children.forEach((function(e){G(e)})))}function T(){y&&p&&!p.destroyed&&(p.destroy(),p=null,u=null,y=!1),h&&s&&!s.destroyed&&(s.destroy(),s=null,a=null,h=!1),w.instance.destroy(),b.instance.destroy()}!function(e){e.ON_SHOW="onShow",e.ON_HIDE="onHide",e.UPDATE_TASK="onUpdateTask",e.UPDATE_SCENE="onUpdateScene"}(_||(_={}));var F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.showAni=function(e){e()},t.prototype.updateScene=function(){},t}(function(e){function n(t){var n=e.call(this)||this;return n.data=t,n.init(),n}return i(n,e),n.prototype.init=function(){var e=this;this.preLoadRes().then((function(){e.skinName&&t.initSkinDisplay(e,e.skinName,e),e.initUi(),e.onLoaded&&e.onLoaded()}),(function(){e.onLoadError&&e.onLoadError()}))},n.prototype.preLoadRes=function(){var e=this;return new Promise((function(n,i){if(e.groupNames&&e.groupNames.length){for(var o=[],r=0;r<e.groupNames.length;r++)o.push(t.loadGroup(e.groupNames[r]));Promise.all(o).then(n,i)}else n()}))},n.prototype.initUi=function(){},Object.defineProperty(n.prototype,"groupNames",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"skinName",{get:function(){return null},enumerable:!1,configurable:!0}),n.prototype.start=function(e){this.initEvents()},n.prototype.initEvents=function(){},n.prototype.removeEvents=function(){},n.prototype.enableMouseEvt=function(e){this.mouseEnable=e,this.mouseChildren=e},n.prototype.btnDelay=function(e,t){void 0===t&&(t=2e3),e.mouseEnable=!1,e.mouseChildren=!1,setTimeout((function(){e.mouseEnable=!0,e.mouseChildren=!0}),t)},n.prototype.destroy=function(){G(this),this.removeEvents(),this.dispatchEvent("onDestroy"),e.prototype.destroy.call(this)},n}(FYGE.Container)),S=FYGE.Container,O=FYGE.FrameAni,C=function(e){function n(){var t=e.call(this)||this;return t.failStep=4,t.jumpStep=13,t.player=null,t.isGameOver=!1,t.initUi(),t}return i(n,e),n.prototype.initUi=function(){return o(this,void 0,void 0,(function(){var e;return r(this,(function(n){return e=[t.getRes("redbird_upflap.png"),t.getRes("redbird_midflap.png"),t.getRes("redbird_downflap.png")],this.player=new O(e),this.player.play(0),this.player.scale.x=3,this.player.scale.y=3,this.addChild(this.player),[2]}))}))},n.prototype.birdRotation=function(){this.failStep>0?this.rotation=Math.min(80,2*this.failStep):this.failStep<0?this.rotation=-25:this.rotation=0},n.prototype.fail=function(e){this.isGameOver||(this.failStep+=.4*e,this.y=Math.max(this.y+this.failStep*e,0),0==this.y&&this.reset(),this.birdRotation())},n.prototype.jump=function(e){this.isGameOver||this.y<=0||(this.failStep-=this.jumpStep)},n.prototype.reset=function(){this.failStep=4,this.jumpStep=13},n.prototype.gameOver=function(){this.reset(),this.isGameOver=!0,this.rotation=0,this.player.reset()},n.prototype.destroy=function(){e.prototype.destroy.call(this)},n}(S),P=FYGE.Container,Y=FYGE.Sprite;var k,L,R,A,j=function(e){function n(t){var n=e.call(this)||this;return n.pipeType="",n.pipeType=t,n.init(),n}return i(n,e),n.prototype.init=function(){this.addChild(new Y(t.getRes("pipe_green.png"))),this.scale.x=2,this.scale.y=5,"down"===this.pipeType&&(this.rotation=180)},n.prototype.destroy=function(){e.prototype.destroy.call(this)},n}(P),B=function(){function e(e,t){this.upPipes=[],this.downPipes=[],this.pipes=[],this.stage=null,this.minGap=372,this.maxGap=432,this.speed=3,this.timer=null,this.player=null,this.stage=e,this.player=t}return e.prototype.startGame=function(){var e=this;this.timer=setTimeout((function(){e.createGroupPipe(),e.startGame()}),2e3)},e.prototype.createGroupPipe=function(){var e=this.downPipes.length?this.downPipes.pop():new j("down"),t=this.upPipes.length?this.upPipes.pop():new j("up");e.x=850,t.x=750;var n,i,o=(n=this.minGap,i=this.maxGap,Math.floor(Math.random()*(i-n))+n),r=Math.random();e.y=687-r*o,t.y=687+(1-r)*o,this.pipes.push({up:t,down:e}),this.stage.addChild(e),this.stage.addChild(t)},e.prototype.enterFrame=function(e){for(var t=0;t<this.pipes.length;t++)if(this.pipes[t]){var n=this.pipes[t],i=n.up,o=n.down;i.x-=this.speed*e,o.x-=this.speed*e,(i.x<=-300||o.x<=-400)&&(this.upPipes.push(i),this.stage.removeChild(i),this.downPipes.push(o),this.stage.removeChild(o),this.pipes[t]=null);var r=this.player.x+100;console.log(this.player.x,i.x),i.x!=r&&o.x!=r||console.log("管道")}},e.prototype.destroy=function(){clearTimeout(this.timer)},e}(),I=FYGE.Container,D=FYGE.Sprite,N=function(e){function n(){var t=e.call(this)||this;return t.bg1=null,t.bg2=null,t.speed=10,t.init(),t}return i(n,e),n.prototype.init=function(){var e=this;Array(2).fill("").forEach((function(n,i){var o=e["bg".concat(i+1)]=new I;o.addChild(new D(t.getRes("com_bg.jpg")));var r=new D(t.getRes("base.png"));o.addChild(r),r.width=750,r.height=250,r.y=1624-r.height,o.x=750*i,e.addChild(o)}))},n.prototype.enterFrame=function(e){var t=this;[this.bg1,this.bg2].forEach((function(n,i){n.x-=t.speed*e,n.x<=-750&&(n.x+=1500)}))},n.prototype.destroy=function(){e.prototype.destroy.call(this)},n}(I),M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.bird=null,t.isGameOver=!1,t.isGameStart=!1,t.slideBg=null,t.pipeMannage=null,t.prevTime=0,t.rate=1,t}return i(t,e),Object.defineProperty(t.prototype,"groupNames",{get:function(){return["index"]},enumerable:!1,configurable:!0}),t.prototype.initUi=function(){return o(this,void 0,void 0,(function(){var e;return r(this,(function(t){return this.slideBg=new N,this.addChild(this.slideBg),(e=this.bird=new C).x=100,e.y=800,this.addChild(e),this.pipeMannage=new B(this,e),this._initEvents(),[2]}))}))},t.prototype._initEvents=function(){this.addEventListener(FYGE.Event.ENTER_FRAME,this._enterFrame,this),this.addEventListener(FYGE.MouseEvent.CLICK,this.birdJump,this)},t.prototype._checkRmove=function(){this.bird.y>=this.stage.stageHeight&&this.gameOver()},t.prototype._enterFrame=function(){var e=Date.now(),t=1;if(this.prevTime){var n=e-this.prevTime;this.rate=t=n/16.7}this.prevTime=e,this.isGameOver||(this.slideBg.enterFrame(t),this.pipeMannage.enterFrame(t),this.isGameStart&&(this.bird.fail(t),this._checkRmove()))},t.prototype.gameOver=function(){this.isGameOver=!0,this.isGameStart=!1,this.bird.gameOver(),this.pipeMannage.destroy(),window.alert("GameOver")},t.prototype.birdJump=function(){this.isGameOver&&window.location.reload(),this.isGameStart?this.bird.jump(this.rate):this.startGame()},t.prototype.startGame=function(){this.isGameOver&&(this.bird.y=500,this.bird.reset()),this.isGameStart=!0,this.isGameOver=!1,this.pipeMannage.startGame()},t.prototype.destroy=function(){this.pipeMannage.destroy(),e.prototype.destroy.call(this)},t}(F),H={groups:[{keys:"5cab5037-81fc-4246-96e5-b1353f339275.png,7458bc9a-d07d-4a7c-972b-4de7ed7c040d.png,7e4500a1-83be-4686-a46b-67147ed44ddd.png,845ae874-998e-4f68-8e79-641eb77466f3.png,a122de8a-beed-4442-9252-8c047986f371.png,ad9681a6-9eb2-40ad-8c2c-0b3ad121a00d.png,b48ee079-b3d7-4371-b294-944200eccba9.png,cd1a775d-36c9-4c8e-9c67-8191070068e9.png",name:"LoadingEffect",atlas:{"5cab5037-81fc-4246-96e5-b1353f339275.png":{x:2,y:2,w:516,h:108,ox:0,oy:0,sw:516,sh:108,ro:!1},"b48ee079-b3d7-4371-b294-944200eccba9.png":{x:2,y:112,w:137,h:74,ox:0,oy:0,sw:137,sh:74,ro:!1},"a122de8a-beed-4442-9252-8c047986f371.png":{x:141,y:112,w:134,h:24,ox:0,oy:0,sw:134,sh:24,ro:!1},"cd1a775d-36c9-4c8e-9c67-8191070068e9.png":{x:2,y:188,w:123,h:104,ox:0,oy:0,sw:123,sh:104,ro:!1},"7458bc9a-d07d-4a7c-972b-4de7ed7c040d.png":{x:127,y:188,w:48,h:30,ox:0,oy:0,sw:48,sh:30,ro:!0},"ad9681a6-9eb2-40ad-8c2c-0b3ad121a00d.png":{x:141,y:138,w:23,h:36,ox:0,oy:0,sw:23,sh:36,ro:!1},"845ae874-998e-4f68-8e79-641eb77466f3.png":{x:127,y:238,w:24,h:25,ox:0,oy:0,sw:24,sh:25,ro:!1},"7e4500a1-83be-4686-a46b-67147ed44ddd.png":{x:141,y:176,w:5,h:6,ox:0,oy:0,sw:5,sh:6,ro:!1}}},{keys:"overBtn.png,overPrizeBg.png",name:"OverPanel",atlas:{"overPrizeBg.png":{x:2,y:2,w:581,h:843,ox:0,oy:0,sw:581,sh:843,ro:!1},"overBtn.png":{x:585,y:2,w:418,h:102,ox:0,oy:0,sw:418,sh:102,ro:!0}}},{keys:"reviveBg.png,reviveCancel.png,reviveOk.png",name:"RevivePanel",atlas:{"reviveBg.png":{x:2,y:2,w:581,h:508,ox:0,oy:0,sw:581,sh:508,ro:!1},"reviveOk.png":{x:2,y:512,w:233,h:89,ox:0,oy:0,sw:233,sh:89,ro:!1},"reviveCancel.png":{x:237,y:512,w:224,h:85,ox:0,oy:0,sw:224,sh:85,ro:!1}}},{keys:"base.png,pipe_green.png,redbird_downflap.png,redbird_midflap.png,redbird_upflap.png",name:"bird",atlas:{"base.png":{x:2,y:2,w:336,h:112,ox:0,oy:0,sw:336,sh:112,ro:!1},"pipe_green.png":{x:2,y:116,w:52,h:320,ox:0,oy:0,sw:52,sh:320,ro:!0},"redbird_downflap.png":{x:2,y:170,w:34,h:24,ox:0,oy:0,sw:34,sh:24,ro:!1},"redbird_midflap.png":{x:38,y:170,w:34,h:24,ox:0,oy:0,sw:34,sh:24,ro:!1},"redbird_upflap.png":{x:74,y:170,w:34,h:24,ox:0,oy:0,sw:34,sh:24,ro:!1}}},{keys:"comCloseBtn.png,com_bg.jpg,toastBg.png,waitingBg.png,waitingRot.png",name:"common",atlas:{"toastBg.png":{x:2,y:2,w:460,h:130,ox:0,oy:0,sw:460,sh:130,ro:!1},"waitingBg.png":{x:2,y:134,w:160,h:180,ox:0,oy:0,sw:160,sh:180,ro:!0},"comCloseBtn.png":{x:184,y:134,w:58,h:58,ox:0,oy:0,sw:58,sh:58,ro:!1},"waitingRot.png":{x:184,y:194,w:56,h:56,ox:0,oy:0,sw:56,sh:56,ro:!1}}},{keys:"gameMusicOff.png,gameMusicOn.png,gameScore+.png,gameScore0.png,gameScore1.png,gameScore2.png,gameScore3.png,gameScore4.png,gameScore5.png,gameScore6.png,gameScore7.png,gameScore8.png,gameScore9.png,guide.png",name:"game",atlas:{"guide.png":{x:2,y:2,w:320,h:416,ox:0,oy:0,sw:320,sh:416,ro:!1},"gameMusicOff.png":{x:324,y:2,w:82,h:82,ox:0,oy:0,sw:82,sh:82,ro:!1},"gameMusicOn.png":{x:324,y:86,w:82,h:82,ox:0,oy:0,sw:82,sh:82,ro:!1},"gameScore0.png":{x:324,y:170,w:44,h:56,ox:2,oy:0,sw:47,sh:56,ro:!0},"gameScore1.png":{x:324,y:216,w:28,h:56,ox:2,oy:0,sw:32,sh:56,ro:!0},"gameScore2.png":{x:324,y:246,w:44,h:56,ox:2,oy:0,sw:47,sh:56,ro:!0},"gameScore3.png":{x:324,y:292,w:44,h:56,ox:2,oy:0,sw:47,sh:56,ro:!0},"gameScore4.png":{x:324,y:338,w:44,h:56,ox:2,oy:0,sw:48,sh:56,ro:!1},"gameScore5.png":{x:408,y:2,w:44,h:56,ox:2,oy:0,sw:47,sh:56,ro:!1},"gameScore6.png":{x:408,y:60,w:44,h:56,ox:2,oy:0,sw:47,sh:56,ro:!1},"gameScore7.png":{x:408,y:118,w:44,h:56,ox:2,oy:0,sw:47,sh:56,ro:!1},"gameScore8.png":{x:382,y:176,w:44,h:56,ox:2,oy:0,sw:47,sh:56,ro:!0},"gameScore9.png":{x:382,y:222,w:44,h:56,ox:2,oy:0,sw:47,sh:56,ro:!0},"gameScore+.png":{x:382,y:268,w:42,h:40,ox:2,oy:8,sw:46,sh:56,ro:!1}}},{keys:"btnTipBg.png,prizeBtn.png,progressBg.png,progressFill.png,progressLabel.png,rankBtn.png,ruleBtn.png,startBtn.png,taskBtn.png",name:"index",atlas:{"progressBg.png":{x:2,y:2,w:750,h:188,ox:0,oy:0,sw:750,sh:188,ro:!1},"progressFill.png":{x:2,y:192,w:615,h:20,ox:0,oy:0,sw:615,sh:20,ro:!1},"startBtn.png":{x:2,y:214,w:490,h:111,ox:0,oy:0,sw:490,sh:111,ro:!1},"prizeBtn.png":{x:494,y:214,w:153,h:51,ox:0,oy:0,sw:153,sh:51,ro:!1},"taskBtn.png":{x:494,y:267,w:151,h:51,ox:0,oy:0,sw:151,sh:51,ro:!1},"btnTipBg.png":{x:2,y:327,w:147,h:36,ox:0,oy:0,sw:147,sh:36,ro:!1},"ruleBtn.png":{x:649,y:192,w:102,h:42,ox:0,oy:0,sw:102,sh:42,ro:!1},"rankBtn.png":{x:494,y:320,w:98,h:43,ox:0,oy:0,sw:98,sh:43,ro:!1},"progressLabel.png":{x:151,y:327,w:87,h:31,ox:0,oy:0,sw:87,sh:31,ro:!1}}},{keys:"loading_effect.png,loading_title.png",name:"loading",atlas:{"loading_effect.png":{x:2,y:2,w:665,h:121,ox:0,oy:0,sw:665,sh:121,ro:!1},"loading_title.png":{x:2,y:125,w:531,h:146,ox:0,oy:0,sw:531,sh:146,ro:!1}}}],path:"https://yun.duiba.com.cn/db_games/activity/template/1676451170/resource/"},U={x:0,y:0,type:"container",children:[]};!function(e){e.addData="surge.addStat",e.getActivityBaseInfoById="feileJump.getActivityBaseInfoById",e.getGameInfo="feileJump.getGameInfo",e.startGame="feileJump.startGame",e.doHelp="feileJump.doHelp",e.getVipInfo="feileJump.getVipInfo",e.submitGame="feileJump.submitGame",e.continueGame="feileJump.continueGame",e.getRankList="feileJump.getRankList",e.getPrizeList="feileJump.getPrizeList",e.getRankRewards="feileJump.getRankRewards",e.getMyRankPrize="feileJump.getMyRankPrize",e.receiveEnamePrize="feileJump.receiveEnamePrize",e.openMember="mine.openMember",e.openTask="mine.openTask",e.authorize="mine.authorize",e.favorShop="mine.favorShop",e.getUserAddress="mine.getUserAddress",e.getAdoptName="mine.getAdoptName",e.getAppData="mine.getAppData",e.navigateToOutside="mine.navigateToOutside",e.navigateTo="mine.navigateTo",e.navigateBack="mine.navigateBack",e.showSharePanel="mine.showSharePanel",e.openDetail="mine.openDetail",e.reportAnalytics="mine.reportAnalytics",e.openMusic="mine.openMusic"}(k||(k={})),function(e){e.AD="ad",e.TASK_ICON="taskIcon",e.FOLLOW_SHOP="followShop",e.INVITE_FRIEND="inviteFriend",e.BROWSE_PRODUCT="browseProduct",e.COLLECTION_PRODUCT="collectionProduct",e.BUY_PRODUCT="buyProduct",e.IMPROVE_INFORMATION="improveInformation",e.SECRET_ORDER="secretOrder",e.SIGN_ICON="signIcon",e.BAG_ICON="bagIcon"}(L||(L={})),function(e){e[e.ENAME=1]="ENAME",e[e.CREDITS=2]="CREDITS",e[e.OBJECT=3]="OBJECT",e[e.THANKS=5]="THANKS"}(R||(R={})),function(e){e.index="/projectx/{projectId}/game/index.do",e.join="/projectx/{projectId}/game/join.do",e.queryResult="/projectx/{projectId}/game/queryResult.do",e.projectRule="/projectx/{projectId}/projectRule.query"}(A||(A={}));var J,W,z=location.href.indexOf(".com.cn/projectx")>=0;!function(e){if(z){var t=document.getElementsByTagName("head")[0],n=document.createElement("script");n.src="getTokenKey?_="+Date.now(),n.onload=function(){t.removeChild(n),e&&e(!0)},n.onerror=function(){t.removeChild(n),e&&e(!1)},t.appendChild(n)}else e&&e(!0)}(),function(e){e.EXPOSURE="exposure",e.CLICK="click"}(J||(J={})),function(e){e.getAppData="mine.getAppData",e.getVoiceType="mine.getVoiceType"}(W||(W={}));var V=window.my;"web"==FYGE.getEnv()&&V&&(V.onMessage=function(e){console.log("返回数据",e.netName,e.data),ie.dispatchEvent(e.netName,e.data)});var q=FYGE.Tween,X=FYGE.EventDispatcher,K=FYGE.Stage,Z=FYGE.RENDERER_TYPE,Q=FYGE.Event,$=FYGE.getEnv,ee=FYGE.Texture,te=new X,ne=function(){function e(e,t,n,i,o,r,s,a,p){void 0===t&&(t=750),void 0===n&&(n=1624),void 0===r&&(r=Z.WEBGL),void 0===s&&(s=!0),void 0===a&&(a=!1);var u,l=this;this.loop=function(){l._pause||(q.flush(),l.stage.flush()),"tb"==$()?l.requestID=l.canvas.requestAnimationFrame(l.loop):l.requestID=window.requestAnimationFrame(l.loop)},window||(FYGE.initedByCanvas(e),u=my.getSystemInfoSync()),i=i||(null==u?void 0:u.windowWidth)||document.body.clientWidth,o=o||(null==u?void 0:u.windowHeight)||document.body.clientHeight,p=p||(null==u?void 0:u.pixelRatio)||window.devicePixelRatio||1;var c=this.stage=new K(e,t,n,i,o,r,s,a,p);this.canvas=e,c.addEventListener(Q.INIT_STAGE,this.onAddToStage,this),this.loop()}return e.prototype.onAddToStage=function(){return o(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return E.init(this.stage),console.log("初始化层级完成"),t.loadConfig(H),console.log("初始化资源配置完成"),t.loadSkinConfig(U),console.log("初始化皮肤配置完成"),[4,t.loadGroup("common")];case 1:return e.sent(),console.log("通用资源加载完成"),[4,t.loadGroup("bird")];case 2:return e.sent(),console.log("bird资源加载完成"),"web"==$()&&document.getElementById("__loading__")&&(document.getElementById("__loading__").style.display="none"),[4,Promise.all([ee.fromUrl("https://yun.duiba.com.cn/aurora/assets/923bcdee2d54f39797fb1cc5a79ab84da1bbe972.jpg"),ee.fromUrl("https://yun.duiba.com.cn/aurora/assets/92856abbb6293e863708fa2c0ea3556cf9b2afaa.jpg"),ee.fromUrl("https://yun.duiba.com.cn/aurora/assets/d660b9e12c66ad2c42fca23c57bf33db5009fedf.jpg"),ee.fromUrl("https://yun.duiba.com.cn/aurora/assets/a6903842083d8015e2e81d2dc652370574be6774.jpg")])];case 3:return e.sent(),n=M,i={from:"main"},b.instance.change(n,i),[2]}var n,i}))}))},e.prototype.initWebEvent=function(){var e=this.stage.onMouseEvent.bind(this.stage);this.canvas.addEventListener("touchstart",e,!1),this.canvas.addEventListener("touchmove",e,!1),this.canvas.addEventListener("touchend",e,!1)},e.prototype.run=function(){this._pause=!1,q._lastTime=null,te.dispatchEvent({type:_.ON_SHOW})},e.prototype.pause=function(){te.dispatchEvent({type:_.ON_HIDE})},e.prototype.addGlobalEvent=function(e,t,n,i){void 0===i&&(i=!1),i?te.once(e,t,n):te.addEventListener(e,t,n)},e.prototype.dispatchGlobalEvent=function(e,t){te.dispatchEvent(e,t)},e.prototype.removeGlobalEvent=function(e,t,n){te.removeEventListener(e,t,n)},e.prototype.destroy=function(){q.removeAllTweens(),"tb"==FYGE.getEnv()?this.canvas.cancelAnimationFrame(this.requestID):window.cancelAnimationFrame(this.requestID),E.removeChildren(),E.parent&&E.parent.removeChild(E),T(),this.stage.destroy(),te.removeAllEventListener()},e}(),ie=new(0,FYGE.EventDispatcher);e.GDispatcher=ie,e.Game=ne,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=output.js.map
{"version":3,"file":"output.js","sources":["../node_modules/tslib/tslib.es6.js","../../module/RES.ts","../../module/ctrls/waitingCtrl.ts","../../module/ctrls/toastCtrl.ts","../../module/ctrls/panelCtrl.ts","../../module/ctrls/sceneCtrl.ts","../../module/views/layers.ts","../../module/ctrls/index.ts","../../src/common/G_EVENT.ts","../../module/views/Module.ts","../../module/views/Scene.ts","../../src/scenes/bird.ts","../../src/scenes/pipe.ts","../../src/tools/TaoBaoNet.ts","../../src/tools/WebNet.ts","../../src/scenes/slideBg.ts","../../src/scenes/IndexScene.ts","../../src/ResJson.ts","../../src/SkinJson.ts","../../src/Game.ts","../../src/index.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["RES","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__extends","__","this","constructor","prototype","create","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","e","rejected","result","done","then","apply","__generator","body","f","y","t","g","_","label","sent","trys","ops","verb","throw","return","Symbol","iterator","n","v","op","TypeError","call","pop","length","push","resData","skinData","textureHash","videoEntityHash","soundHash","groupsCompleteHash","groupsPromiseHash","singleResPromiseHash","loadGroup","name","arr","group","getGroupByName","atlas","keys","concat","split","filter","k","substr","getGroupResByName","callback","count","countAll","mark","i","getResAsync","res","str","loadResList","s","comFun","thisObj","type","substring","lastIndexOf","cached_1","FYGE","TextureCache","r","returnSingleResPromise","groupName","hasRes","json","cached","src","resPath","GlobalLoader","loadImage","image","cached_2","Texture","from","addToCache","SvgaParser","loadSvga","err","jsonData","data","createTextureSheet","BaseTexture","key","replace","getRes","groups","indexOf","getSkinDataByName","skinName","skinNode","children","child","gson","getDisplayByData","dis","Container","Button","props","tUp","tDown","tDisable","TextField","Sprite","source","Shape","beginFill","string2hex","fillColor","drawRect","width","height","endFill","alpha","position","set","x","loadConfig","path","getResByUrl","loadAllGroup","forEach","all","loadAllGroupForProgress","_this","index","_a","GDispatcher","dispatchEvent","loadSkinConfig","skinJson","initSkinDisplay","con","skin","root","addChild","id","destroyGroup","removedBase","baseTexture","destroy","_waiting","_parent","_toast","startY","endY","inited","showWaiting","msg","waiting","Waiting","layers","topLayer","offX","stageWidth","offY","stageHeight","stageOffsetX","stageOffsetY","bg","Graphics","addChildAt","initWaiting","show","hideWaiting","removeChild","_super","rectBgTexture","rectBg","rotTexture","rot","anchorX","anchorY","addEventListener","Event","ENTER_FRAME","rotation","textWidth","textAlign","TEXT_ALIGN","CENTER","size","text","showToast","Toast","toastLayer","h","initToast","Tween","removeTweens","get","to","Ease","quartOut","wait","PADDING","mouseChildren","mouseEnable","toastBgTexture","verticalAlign","VERTICAL_ALIGN","MIDDLE","textHeight","PanelCtrl","stacks","defineProperty","_instance","init","parent","hitTestByPixel","visible","_bg","closeAll","hidePanel","cls","panel","add","onLoaded","updateView","start","showAni","onLoadError","removeEventListener","onPanelHide","remove","showPanelAni","bgAni","cubicOut","_current","target","closeCurrent","SceneCtrl","change","scene","preScene","_currentScene","Layers","stage","shareLayer","instance","sceneLayer","popupLayer","_bottomLayer","_sceneLayer","_popupLayer","_toastLayer","_topLayer","_shareLayer","viewRect","G_EVENT","obj","isRecursive","destroyAllCtrls","destroyed","Scene","updateScene","Module","preLoadRes","initUi","groupNames","initEvents","removeEvents","enableMouseEvt","enable","btnDelay","delay","setTimeout","FrameAni","Bird","failStep","jumpStep","player","isGameOver","birdAni","play","scale","birdRotation","Math","min","fail","rate","max","reset","jump","gameOver","TbNetName","LogTbEnum","TBPRIZE_TYPE","WebNetName","Pipe","pipeType","PipeMannager","upPipes","downPipes","pipes","minGap","maxGap","speed","timer","startGame","createGroupPipe","upD","upP","randGap","floor","random","up","down","enterFrame","posx","console","log","clearTimeout","SlideBg","bg1","bg2","fill","base","IndexScene","arguments","bird","isGameStart","slideBg","pipeMannage","prevTime","_initEvents","_enterFrame","MouseEvent","CLICK","birdJump","_checkRmove","now","Date","dt","window","alert","location","reload","ResJson","w","ox","oy","sw","sh","ro","SkinJson","LOG_TYPE","TmallNetName","isProd","href","head","document","getElementsByTagName","scriptEl_1","createElement","onload","onerror","appendChild","refreshPxTokenKey","my","getEnv","onMessage","netName","EventDispatcher","Stage","RENDERER_TYPE","Game","canvas","desWidth","desHeight","divWidth","divHeight","renderType","stageCenter","fixedHeight","resolution","WEBGL","sysInfo","loop","_pause","flush","requestID","requestAnimationFrame","initedByCanvas","getSystemInfoSync","windowWidth","clientWidth","windowHeight","clientHeight","pixelRatio","devicePixelRatio","INIT_STAGE","onAddToStage","getElementById","style","display","fromUrl","initWebEvent","mouseEvent","onMouseEvent","bind","run","_lastTime","ON_SHOW","pause","ON_HIDE","addGlobalEvent","fun","once","dispatchGlobalEvent","removeGlobalEvent","removeAllTweens","cancelAnimationFrame","removeChildren","removeAllEventListener"],"mappings":";;;;;;;;;;;;;;oFAgBA,ICsDiBA,EDtDbC,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,KAClEP,EAAcC,EAAGC,IAGrB,SAASO,EAAUR,EAAGC,GAEzB,SAASQ,IAAOC,KAAKC,YAAcX,EADnCD,EAAcC,EAAGC,GAEjBD,EAAEY,UAAkB,OAANX,EAAaC,OAAOW,OAAOZ,IAAMQ,EAAGG,UAAYX,EAAEW,UAAW,IAAIH,GAyC5E,SAASK,EAAUC,EAASC,EAAYC,EAAGC,GAE9C,OAAO,IAAKD,IAAMA,EAAIE,WAAU,SAAUC,EAASC,GAC/C,SAASC,EAAUC,GAAS,IAAMC,EAAKN,EAAUO,KAA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EAAKjW,GAE5ByE,GAAY8C,iBAAiB9I,EAAMwX,EAAKjW,IAS1CwT,EAAApY,UAAA+a,oBAAA,SAAoB1X,EAAoBiD,GACvC+C,GAAYC,cAAcjG,EAAMiD,IASjC8R,EAAApY,UAAAgb,kBAAA,SAAkB3X,EAAcwX,EAAejW,GAC9CyE,GAAY+F,oBAAoB/L,EAAMwX,EAAKjW,IAI5CwT,EAAApY,UAAAkK,QAAA,WAECgD,EAAM+N,kBAIW,MAAjBhW,KAAK6S,SAAmBhY,KAAKuY,OAAO6C,qBAAqBpb,KAAKqZ,WAC7D/C,OAAO8E,qBAAqBpb,KAAKqZ,Wb1EhCtO,EAAOsQ,iBAEHtQ,EAAOyD,QAAQzD,EAAOyD,OAAO3C,YAAYd,Ga8E/CqG,IAGApR,KAAKqQ,MAAMjG,UAGXb,GAAY+R,0BAQbhD,KC9MY/O,GAAc,IAAI4O,EAJNhT,KAAKgT"}
\ No newline at end of file
var e,t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},t(e,n)};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function n(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}function i(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{p(i.next(e))}catch(e){r(e)}}function a(e){try{p(i.throw(e))}catch(e){r(e)}}function p(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}p((i=i.apply(e,t||[])).next())}))}function o(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}!function(e){var t,n,r={},s={},a={},p={},l={},u={};function h(e){if(p[e])return new Promise((function(e){e()}));if(l[e])return l[e];var t=function(e){var t=f(e);if(!t)return null;if(t.atlas){var n=[e+".json"];return t.keys&&(n=n.concat(t.keys.split(",").filter((function(e){return".png"!=e.substr(-4)})))),n}return t.keys?t.keys.split(","):null}(e);if(!t||!t.length)return p[e]=!0,new Promise((function(e){e()}));var n=new Promise((function(n,i){!function(e,t){var n=0,i=t.length;i||e(!0);for(var o=!0,r=0;r<i;r++){c(t[r],(function(t,r){t||(o=!1),++n==i&&e(o)}),this)}}((function(t){delete l[e],t?(p[e]=!0,n()):i()}),t)}));return l[e]=n,n}function c(t,n,i){var o=t.substring(t.lastIndexOf(".")+1,t.length);if("png"==o||"jpg"==o){var a=r[t]||FYGE.TextureCache[t];if(a)return n&&n.call(i,a,t),new Promise((function(e){e(a)}));if(u[t])return y(t,n,i);if((m=g(t))&&"jpg"!=o){var p=f(m);if(p&&p.atlas){var l=m+".json";return u[l]?u[l].then((function(e){var o=r[t]||FYGE.TextureCache[t];return n&&n.call(i,o,t),o}),(function(){return n&&n.call(i,null,t),null})):c(l).then((function(){var e=r[t]||FYGE.TextureCache[t];return n&&n.call(i,e,t),e}),(function(){return n&&n.call(i,null,t),null}))}}var h=m?e.resPath+m+"/"+t:t,d=new Promise((function(e,o){FYGE.GlobalLoader.loadImage((function(s,a){if(delete u[t],s){var p=FYGE.Texture.from(a);r[t]=p,FYGE.Texture.addToCache(p,t),n&&n.call(i,p,t),e(p)}else n&&n.call(i,null,t),o()}),h)}));return u[t]=d,d}if("svga"==o){if(s[t])return n&&n.call(i,s[t],t),new Promise((function(e){e(s[t])}));if(u[t])return y(t,n,i);h=(m=g(t))?e.resPath+m+"/"+t:t,d=new Promise((function(e,o){SvgaParser.loadSvga(h,(function(o){delete u[t],s[t]=o,n&&n.call(i,o,t),e(o)}),(function(e){delete u[t],n&&n.call(i,null,t),o(e)}))}));return u[t]=d,d}if("json"==o){if(u[t])return y(t,n,i);var m;h=(m=g(t))?e.resPath+m+"/"+t:t,d=new Promise((function(e,o){var s=f(m).atlas;FYGE.GlobalLoader.loadImage((function(a,p){if(a){var l=FYGE.createTextureSheet(new FYGE.BaseTexture(p),s);for(var h in l)r[h]=l[h];n&&n.call(i,l,t),e(l)}else delete u[t],n&&n.call(i,null,t),o()}),h.replace("json","png"))}));return u[t]=d,d}}function d(e){if(!e)return null;var t=e.substring(e.lastIndexOf(".")+1,e.length);return"png"==t||"jpg"==t?r[e]||FYGE.TextureCache[e]||null:"svga"==t?s[e]||null:"mp3"==t?a[e]||null:void 0}function g(e){for(var n=0;n<t.groups.length;n++){var i=t.groups[n],o=i.keys;if(o&&o.split(",").indexOf(e)>-1)return i.name;if(i.atlas&&i.name+".json"==e)return i.name}return null}function f(e){for(var n,i=t.groups,o=0;o<i.length;o++)if(i[o].name===e){n=i[o];break}return n}function y(e,t,n){return u[e].then((function(i){t&&t.call(n,i,e)}),(function(){t&&t.call(n,null,e)})),u[e]}function m(e,t){if(void 0===t&&(t=n),!t||!t.children||!t.children.length)return null;for(var i=0;i<t.children.length;i++){var o=t.children[i];if(o.name==e&&("container"==o.type||"item"==o.type))return o;var r=m(e,o);if(r)return r}return null}function v(e){var t;switch(e.type){case"container":t=new FYGE.Container;break;case"button":t=new FYGE.Button(d(e.props.tUp),e.props.tDown?d(e.props.tDown):null,e.props.tDisable?d(e.props.tDisable):null);break;case"text":for(var n in t=new FYGE.TextField,e.props)t[n]=e.props[n];break;case"sprite":t=new FYGE.Sprite(d(e.props.source));break;case"rect":(t=new FYGE.Shape).beginFill(FYGE.string2hex(e.props.fillColor)),t.drawRect(0,0,e.props.width,e.props.height),t.endFill()}return t.name=e.name,t.alpha=e.alpha||1,t.position.set(e.x,e.y),t}e.loadConfig=function(n){t=n,e.resPath=n.path},e.loadGroup=h,e.getResAsync=c,e.getResByUrl=function(){},e.getRes=d,e.loadAllGroup=function(){var e=t.groups,n=[];return e.forEach((function(e){n.push(h(e.name))})),Promise.all(n)},e.loadAllGroupForProgress=function(){var e=this;return new Promise((function(n){var r=t.groups,s=0;r.forEach((function(t){return i(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,h(t.name)];case 1:return e.sent(),s++,te.dispatchEvent("loadPer",s/(r.length-1)),s==r.length-1&&n(0),[2]}}))}))}))}))},e.loadSkinConfig=function(e){n=e},e.initSkinDisplay=function e(t,n,i){var o="string"==typeof n?m(n):n;if(o.children&&o.children.length)for(var r=0;r<o.children.length;r++){var s=o.children[r];if("item"!=s.type){var a=t.addChild(v(s));i&&s.id&&(i[s.id]=a),"container"==s.type&&e(a,s,i)}}},e.getSkinDataByName=m,e.destroyGroup=function(e){var t=f(e);if(t){var n=[];t.keys&&(n=t.keys.split(","));for(var i=[],o=0;o<n.length;o++){var s=d(n[o]);s&&(-1==i.indexOf(s.baseTexture)&&(s.baseTexture.destroy(),i.push(s.baseTexture)),s.destroy()),delete r[n[o]]}}}}(e||(e={}));var r,s,a,p,l,u,h=!1,c=function(e){!function(){if(!h){h=!0;var e=new g;s=b.topLayer,r=e;var t=(b.stageWidth-160)/2,n=(b.stageHeight-r.height)/2;r.x=b.stageOffsetX-s.x+t,r.y=b.stageOffsetY-s.y+n;var i=(new FYGE.Graphics).beginFill(0).drawRect(-t,-n,b.stageWidth,b.stageHeight).endFill();i.alpha=0,r.addChildAt(i,0)}}(),r.show(e),s.addChild(r)},d=function(){s.removeChild(r)},g=function(t){function i(){var n=t.call(this)||this,i=e.getRes("waitingBg.png"),o=new FYGE.Sprite(i);n.addChild(o);var r=e.getRes("waitingRot.png"),s=new FYGE.Sprite(r);s.x=(i.width-r.width)/2,s.y=47,s.anchorX=r.width/2,s.anchorY=r.height/2,n.addChild(s);var a=0;return s.addEventListener(FYGE.Event.ENTER_FRAME,(function(){++a%30==0&&(s.rotation+=45)}),n),n.msg=new FYGE.TextField,n.msg.y=125,n.msg.textWidth=i.width,n.msg.textAlign=FYGE.TEXT_ALIGN.CENTER,n.msg.size=26,n.msg.fillColor="#ffffff",n.addChild(n.msg),n}return n(i,t),i.prototype.show=function(e){void 0===e&&(e="加载中"),this.msg.text=e},i.prototype.destroy=function(){t.prototype.destroy.call(this),this.msg=null},i}(FYGE.Container),f=!1,y=function(e){!function(){if(!f){f=!0,a=new m,p=b.toastLayer,a.alpha=0,a.x=b.stageOffsetX-p.x+(b.stageWidth-a.width)/2;var e=a.height,t=b.stageOffsetY-p.y;l=t-e,u=t+(b.stageHeight-e)/2}}(),a.show(e),p.addChild(a),FYGE.Tween.removeTweens(a),FYGE.Tween.get(a).set({y:l,alpha:1}).to({y:u},500,FYGE.Ease.quartOut).wait(800).to({alpha:0},300).call((function(){p.removeChild(a)}))},m=function(t){function i(){var n=t.call(this)||this;n.PADDING=40,n.mouseChildren=!1,n.mouseEnable=!1;var i=e.getRes("toastBg.png");return n.bg=new FYGE.Sprite(i),n.addChild(n.bg),n.msg=new FYGE.TextField,n.msg.size=28,n.msg.fillColor="0xffffff",n.msg.text="",n.msg.verticalAlign=FYGE.VERTICAL_ALIGN.MIDDLE,n.msg.textHeight=i.height,n.msg.textAlign=FYGE.TEXT_ALIGN.CENTER,n.addChild(n.msg),n}return n(i,t),i.prototype.show=function(e){this.msg.text=e,this.msg.x=(this.bg.width-this.msg.textWidth)/2},i.prototype.destroy=function(){FYGE.Tween.removeTweens(this),t.prototype.destroy.call(this),this.msg=null,this.bg=null},i}(FYGE.Container),v=function(){function e(){this.stacks=[]}return Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e)},enumerable:!1,configurable:!0}),e.prototype.init=function(e){this._parent=e;var t=new FYGE.Shape;t.beginFill(0),t.drawRect(b.stageOffsetX-e.x,b.stageOffsetY-e.y,b.stageWidth,b.stageHeight),t.endFill(),t.hitTestByPixel=!1,t.visible=!1,this._parent.addChild(t),this._bg=t},e.prototype.closeAll=function(){this.stacks.forEach((function(e){return e.hidePanel()}))},e.prototype.show=function(e,t){var n=this;c();var i=new e(t);return this.add(i),this.stacks.push(i),i.onLoaded=function(){i.y=-(1624-b.stageHeight>>1),d(),n.updateView(!1),i.start(t),i.visible&&i.showAni()},i.onLoadError=function(){d(),y("资源加载失败"),i.removeEventListener("onDestroy",n.onPanelHide,n),n.remove(i)},i},e.prototype.updateView=function(e){var t=this;void 0===e&&(e=!0),this.stacks.length?(this._parent.visible=!0,"hide"==this.bgAni&&(this.bgAni="show",FYGE.Tween.removeTweens(this._bg),this._bg.alpha=.7),!1===this._bg.visible&&(this._bg.visible=!0,this._bg.alpha=0,FYGE.Tween.get(this._bg).to({alpha:.7},200,FYGE.Ease.cubicOut))):this._bg.visible&&(this.bgAni="hide",FYGE.Tween.removeTweens(this._bg),FYGE.Tween.get(this._bg).to({alpha:0},200,FYGE.Ease.cubicOut).call((function(){t._bg.visible=!1,t._current=null,t._parent.visible=!1})));for(var n=0;n<this.stacks.length;n++)n<this.stacks.length-1?this.stacks[n].visible=!1:(this.stacks[n].visible=!0,e&&this.stacks[n].showAni(),this._current=this.stacks[n])},e.prototype.add=function(e){this._parent.addChild(e),e.addEventListener("onDestroy",this.onPanelHide,this)},e.prototype.remove=function(e){this._parent.removeChild(e),this.stacks=this.stacks.filter((function(t){return t!=e}))},e.prototype.onPanelHide=function(e){var t=e.target;t.removeEventListener("onDestroy",this.onPanelHide,this),this.remove(t),this.updateView()},Object.defineProperty(e.prototype,"currentPanel",{get:function(){return this._current},enumerable:!1,configurable:!0}),e.prototype.closeCurrent=function(){this._current&&this._current.hidePanel()},e.prototype.destroy=function(){e._instance=null,this.stacks=null,this._current=null,this._parent=null,FYGE.Tween.removeTweens(this._bg),this._bg=null},e}(),w=function(){function e(){}return Object.defineProperty(e,"instance",{get:function(){return e._instance||(e._instance=new e)},enumerable:!1,configurable:!0}),e.prototype.init=function(e){this._parent=e},e.prototype.change=function(e,t){var n=this,i=new e(t);i.visible=!1,c();var o=this._currentScene;i.onLoaded=function(){d(),i.showAni((function(){o&&o.destroy()})),i.visible=!0,i.start(t)},i.onLoadError=function(){d(),y("资源加载失败"),n._currentScene=o||null,n._parent.removeChild(i)},this._currentScene=i,this._parent.addChild(i)},Object.defineProperty(e.prototype,"currentScene",{get:function(){return this._currentScene},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){e._instance=null,this._currentScene=null,this._parent=null},e}(),b=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.init=function(e){e.addChild(this);for(var t=["_bottomLayer","_sceneLayer","_popupLayer","_toastLayer","_topLayer","_shareLayer"],n=0;n<t.length;n++)this[t[n]]=new FYGE.Container,this.addChild(this[t[n]]);this.shareLayer.y=-this.stageOffsetY,w.instance.init(this.sceneLayer),v.instance.init(this.popupLayer)},Object.defineProperty(t.prototype,"bottomLayer",{get:function(){return this._bottomLayer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sceneLayer",{get:function(){return this._sceneLayer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupLayer",{get:function(){return this._popupLayer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toastLayer",{get:function(){return this._toastLayer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topLayer",{get:function(){return this._topLayer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shareLayer",{get:function(){return this._shareLayer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stageHeight",{get:function(){return this.stage?this.stage.viewRect.height:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stageWidth",{get:function(){return this.stage?this.stage.viewRect.width:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stageOffsetX",{get:function(){return this.stage?this.stage.viewRect.x:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stageOffsetY",{get:function(){return this.stage?this.stage.viewRect.y:0},enumerable:!1,configurable:!0}),t}(FYGE.Container));var x;function E(e,t){void 0===t&&(t=!0),e&&(FYGE.Tween.removeTweens(e),t&&e.children&&e.children.length&&e.children.forEach((function(e){E(e)})))}function _(){f&&a&&!a.destroyed&&(a.destroy(),a=null,p=null,f=!1),h&&r&&!r.destroyed&&(r.destroy(),r=null,s=null,h=!1),v.instance.destroy(),w.instance.destroy()}!function(e){e.ON_SHOW="onShow",e.ON_HIDE="onHide",e.UPDATE_TASK="onUpdateTask",e.UPDATE_SCENE="onUpdateScene"}(x||(x={}));var G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.showAni=function(e){e()},t.prototype.updateScene=function(){},t}(function(t){function i(e){var n=t.call(this)||this;return n.data=e,n.init(),n}return n(i,t),i.prototype.init=function(){var t=this;this.preLoadRes().then((function(){t.skinName&&e.initSkinDisplay(t,t.skinName,t),t.initUi(),t.onLoaded&&t.onLoaded()}),(function(){t.onLoadError&&t.onLoadError()}))},i.prototype.preLoadRes=function(){var t=this;return new Promise((function(n,i){if(t.groupNames&&t.groupNames.length){for(var o=[],r=0;r<t.groupNames.length;r++)o.push(e.loadGroup(t.groupNames[r]));Promise.all(o).then(n,i)}else n()}))},i.prototype.initUi=function(){},Object.defineProperty(i.prototype,"groupNames",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"skinName",{get:function(){return null},enumerable:!1,configurable:!0}),i.prototype.start=function(e){this.initEvents()},i.prototype.initEvents=function(){},i.prototype.removeEvents=function(){},i.prototype.enableMouseEvt=function(e){this.mouseEnable=e,this.mouseChildren=e},i.prototype.btnDelay=function(e,t){void 0===t&&(t=2e3),e.mouseEnable=!1,e.mouseChildren=!1,setTimeout((function(){e.mouseEnable=!0,e.mouseChildren=!0}),t)},i.prototype.destroy=function(){E(this),this.removeEvents(),this.dispatchEvent("onDestroy"),t.prototype.destroy.call(this)},i}(FYGE.Container)),F=FYGE.Container,S=FYGE.FrameAni,T=function(t){function r(){var e=t.call(this)||this;return e.failStep=4,e.jumpStep=13,e.player=null,e.isGameOver=!1,e.initUi(),e}return n(r,t),r.prototype.initUi=function(){return i(this,void 0,void 0,(function(){var t;return o(this,(function(n){return t=[e.getRes("redbird_upflap.png"),e.getRes("redbird_midflap.png"),e.getRes("redbird_downflap.png")],this.player=new S(t),this.player.play(0),this.player.scale.x=3,this.player.scale.y=3,this.addChild(this.player),[2]}))}))},r.prototype.birdRotation=function(){this.failStep>0?this.rotation=Math.min(80,2*this.failStep):this.failStep<0?this.rotation=-25:this.rotation=0},r.prototype.fail=function(e){this.isGameOver||(this.failStep+=.4*e,this.y=Math.max(this.y+this.failStep*e,0),0==this.y&&this.reset(),this.birdRotation())},r.prototype.jump=function(e){this.isGameOver||this.y<=0||(this.failStep-=this.jumpStep)},r.prototype.reset=function(){this.failStep=4,this.jumpStep=13},r.prototype.gameOver=function(){this.reset(),this.isGameOver=!0,this.rotation=0,this.player.reset()},r.prototype.destroy=function(){t.prototype.destroy.call(this)},r}(F),O=FYGE.Container,C=FYGE.Sprite;var P,Y,k,L,R=function(t){function i(e){var n=t.call(this)||this;return n.pipeType="",n.pipeType=e,n.init(),n}return n(i,t),i.prototype.init=function(){this.addChild(new C(e.getRes("pipe_green.png"))),this.scale.x=2,this.scale.y=5,"down"===this.pipeType&&(this.rotation=180)},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i}(O),A=function(){function e(e,t){this.upPipes=[],this.downPipes=[],this.pipes=[],this.stage=null,this.minGap=372,this.maxGap=432,this.speed=3,this.timer=null,this.player=null,this.stage=e,this.player=t}return e.prototype.startGame=function(){var e=this;this.timer=setTimeout((function(){e.createGroupPipe(),e.startGame()}),2e3)},e.prototype.createGroupPipe=function(){var e=this.downPipes.length?this.downPipes.pop():new R("down"),t=this.upPipes.length?this.upPipes.pop():new R("up");e.x=850,t.x=750;var n,i,o=(n=this.minGap,i=this.maxGap,Math.floor(Math.random()*(i-n))+n),r=Math.random();e.y=687-r*o,t.y=687+(1-r)*o,this.pipes.push({up:t,down:e}),this.stage.addChild(e),this.stage.addChild(t)},e.prototype.enterFrame=function(e){for(var t=0;t<this.pipes.length;t++)if(this.pipes[t]){var n=this.pipes[t],i=n.up,o=n.down;i.x-=this.speed*e,o.x-=this.speed*e,(i.x<=-300||o.x<=-400)&&(this.upPipes.push(i),this.stage.removeChild(i),this.downPipes.push(o),this.stage.removeChild(o),this.pipes[t]=null);var r=this.player.x+100;console.log(this.player.x,i.x),i.x!=r&&o.x!=r||console.log("管道")}},e.prototype.destroy=function(){clearTimeout(this.timer)},e}(),B=FYGE.Container,I=FYGE.Sprite,j=function(t){function i(){var e=t.call(this)||this;return e.bg1=null,e.bg2=null,e.speed=10,e.init(),e}return n(i,t),i.prototype.init=function(){var t=this;Array(2).fill("").forEach((function(n,i){var o=t["bg".concat(i+1)]=new B;o.addChild(new I(e.getRes("com_bg.jpg")));var r=new I(e.getRes("base.png"));o.addChild(r),r.width=750,r.height=250,r.y=1624-r.height,o.x=750*i,t.addChild(o)}))},i.prototype.enterFrame=function(e){var t=this;[this.bg1,this.bg2].forEach((function(n,i){n.x-=t.speed*e,n.x<=-750&&(n.x+=1500)}))},i.prototype.destroy=function(){t.prototype.destroy.call(this)},i}(B),D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.bird=null,t.isGameOver=!1,t.isGameStart=!1,t.slideBg=null,t.pipeMannage=null,t.prevTime=0,t.rate=1,t}return n(t,e),Object.defineProperty(t.prototype,"groupNames",{get:function(){return["index"]},enumerable:!1,configurable:!0}),t.prototype.initUi=function(){return i(this,void 0,void 0,(function(){var e;return o(this,(function(t){return this.slideBg=new j,this.addChild(this.slideBg),(e=this.bird=new T).x=100,e.y=800,this.addChild(e),this.pipeMannage=new A(this,e),this._initEvents(),[2]}))}))},t.prototype._initEvents=function(){this.addEventListener(FYGE.Event.ENTER_FRAME,this._enterFrame,this),this.addEventListener(FYGE.MouseEvent.CLICK,this.birdJump,this)},t.prototype._checkRmove=function(){this.bird.y>=this.stage.stageHeight&&this.gameOver()},t.prototype._enterFrame=function(){var e=Date.now(),t=1;if(this.prevTime){var n=e-this.prevTime;this.rate=t=n/16.7}this.prevTime=e,this.isGameOver||(this.slideBg.enterFrame(t),this.pipeMannage.enterFrame(t),this.isGameStart&&(this.bird.fail(t),this._checkRmove()))},t.prototype.gameOver=function(){this.isGameOver=!0,this.isGameStart=!1,this.bird.gameOver(),this.pipeMannage.destroy(),window.alert("GameOver")},t.prototype.birdJump=function(){this.isGameOver&&window.location.reload(),this.isGameStart?this.bird.jump(this.rate):this.startGame()},t.prototype.startGame=function(){this.isGameOver&&(this.bird.y=500,this.bird.reset()),this.isGameStart=!0,this.isGameOver=!1,this.pipeMannage.startGame()},t.prototype.destroy=function(){this.pipeMannage.destroy(),e.prototype.destroy.call(this)},t}(G),N={groups:[{keys:"5cab5037-81fc-4246-96e5-b1353f339275.png,7458bc9a-d07d-4a7c-972b-4de7ed7c040d.png,7e4500a1-83be-4686-a46b-67147ed44ddd.png,845ae874-998e-4f68-8e79-641eb77466f3.png,a122de8a-beed-4442-9252-8c047986f371.png,ad9681a6-9eb2-40ad-8c2c-0b3ad121a00d.png,b48ee079-b3d7-4371-b294-944200eccba9.png,cd1a775d-36c9-4c8e-9c67-8191070068e9.png",name:"LoadingEffect",atlas:{"5cab5037-81fc-4246-96e5-b1353f339275.png":{x:2,y:2,w:516,h:108,ox:0,oy:0,sw:516,sh:108,ro:!1},"b48ee079-b3d7-4371-b294-944200eccba9.png":{x:2,y:112,w:137,h:74,ox:0,oy:0,sw:137,sh:74,ro:!1},"a122de8a-beed-4442-9252-8c047986f371.png":{x:141,y:112,w:134,h:24,ox:0,oy:0,sw:134,sh:24,ro:!1},"cd1a775d-36c9-4c8e-9c67-8191070068e9.png":{x:2,y:188,w:123,h:104,ox:0,oy:0,sw:123,sh:104,ro:!1},"7458bc9a-d07d-4a7c-972b-4de7ed7c040d.png":{x:127,y:188,w:48,h:30,ox:0,oy:0,sw:48,sh:30,ro:!0},"ad9681a6-9eb2-40ad-8c2c-0b3ad121a00d.png":{x:141,y:138,w:23,h:36,ox:0,oy:0,sw:23,sh:36,ro:!1},"845ae874-998e-4f68-8e79-641eb77466f3.png":{x:127,y:238,w:24,h:25,ox:0,oy:0,sw:24,sh:25,ro:!1},"7e4500a1-83be-4686-a46b-67147ed44ddd.png":{x:141,y:176,w:5,h:6,ox:0,oy:0,sw:5,sh:6,ro:!1}}},{keys:"overBtn.png,overPrizeBg.png",name:"OverPanel",atlas:{"overPrizeBg.png":{x:2,y:2,w:581,h:843,ox:0,oy:0,sw:581,sh:843,ro:!1},"overBtn.png":{x:585,y:2,w:418,h:102,ox:0,oy:0,sw:418,sh:102,ro:!0}}},{keys:"reviveBg.png,reviveCancel.png,reviveOk.png",name:"RevivePanel",atlas:{"reviveBg.png":{x:2,y:2,w:581,h:508,ox:0,oy:0,sw:581,sh:508,ro:!1},"reviveOk.png":{x:2,y:512,w:233,h:89,ox:0,oy:0,sw:233,sh:89,ro:!1},"reviveCancel.png":{x:237,y:512,w:224,h:85,ox:0,oy:0,sw:224,sh:85,ro:!1}}},{keys:"base.png,pipe_green.png,redbird_downflap.png,redbird_midflap.png,redbird_upflap.png",name:"bird",atlas:{"base.png":{x:2,y:2,w:336,h:112,ox:0,oy:0,sw:336,sh:112,ro:!1},"pipe_green.png":{x:2,y:116,w:52,h:320,ox:0,oy:0,sw:52,sh:320,ro:!0},"redbird_downflap.png":{x:2,y:170,w:34,h:24,ox:0,oy:0,sw:34,sh:24,ro:!1},"redbird_midflap.png":{x:38,y:170,w:34,h:24,ox:0,oy:0,sw:34,sh:24,ro:!1},"redbird_upflap.png":{x:74,y:170,w:34,h:24,ox:0,oy:0,sw:34,sh:24,ro:!1}}},{keys:"comCloseBtn.png,com_bg.jpg,toastBg.png,waitingBg.png,waitingRot.png",name:"common",atlas:{"toastBg.png":{x:2,y:2,w:460,h:130,ox:0,oy:0,sw:460,sh:130,ro:!1},"waitingBg.png":{x:2,y:134,w:160,h:180,ox:0,oy:0,sw:160,sh:180,ro:!0},"comCloseBtn.png":{x:184,y:134,w:58,h:58,ox:0,oy:0,sw:58,sh:58,ro:!1},"waitingRot.png":{x:184,y:194,w:56,h:56,ox:0,oy:0,sw:56,sh:56,ro:!1}}},{keys:"gameMusicOff.png,gameMusicOn.png,gameScore+.png,gameScore0.png,gameScore1.png,gameScore2.png,gameScore3.png,gameScore4.png,gameScore5.png,gameScore6.png,gameScore7.png,gameScore8.png,gameScore9.png,guide.png",name:"game",atlas:{"guide.png":{x:2,y:2,w:320,h:416,ox:0,oy:0,sw:320,sh:416,ro:!1},"gameMusicOff.png":{x:324,y:2,w:82,h:82,ox:0,oy:0,sw:82,sh:82,ro:!1},"gameMusicOn.png":{x:324,y:86,w:82,h:82,ox:0,oy:0,sw:82,sh:82,ro:!1},"gameScore0.png":{x:324,y:170,w:44,h:56,ox:2,oy:0,sw:47,sh:56,ro:!0},"gameScore1.png":{x:324,y:216,w:28,h:56,ox:2,oy:0,sw:32,sh:56,ro:!0},"gameScore2.png":{x:324,y:246,w:44,h:56,ox:2,oy:0,sw:47,sh:56,ro:!0},"gameScore3.png":{x:324,y:292,w:44,h:56,ox:2,oy:0,sw:47,sh:56,ro:!0},"gameScore4.png":{x:324,y:338,w:44,h:56,ox:2,oy:0,sw:48,sh:56,ro:!1},"gameScore5.png":{x:408,y:2,w:44,h:56,ox:2,oy:0,sw:47,sh:56,ro:!1},"gameScore6.png":{x:408,y:60,w:44,h:56,ox:2,oy:0,sw:47,sh:56,ro:!1},"gameScore7.png":{x:408,y:118,w:44,h:56,ox:2,oy:0,sw:47,sh:56,ro:!1},"gameScore8.png":{x:382,y:176,w:44,h:56,ox:2,oy:0,sw:47,sh:56,ro:!0},"gameScore9.png":{x:382,y:222,w:44,h:56,ox:2,oy:0,sw:47,sh:56,ro:!0},"gameScore+.png":{x:382,y:268,w:42,h:40,ox:2,oy:8,sw:46,sh:56,ro:!1}}},{keys:"btnTipBg.png,prizeBtn.png,progressBg.png,progressFill.png,progressLabel.png,rankBtn.png,ruleBtn.png,startBtn.png,taskBtn.png",name:"index",atlas:{"progressBg.png":{x:2,y:2,w:750,h:188,ox:0,oy:0,sw:750,sh:188,ro:!1},"progressFill.png":{x:2,y:192,w:615,h:20,ox:0,oy:0,sw:615,sh:20,ro:!1},"startBtn.png":{x:2,y:214,w:490,h:111,ox:0,oy:0,sw:490,sh:111,ro:!1},"prizeBtn.png":{x:494,y:214,w:153,h:51,ox:0,oy:0,sw:153,sh:51,ro:!1},"taskBtn.png":{x:494,y:267,w:151,h:51,ox:0,oy:0,sw:151,sh:51,ro:!1},"btnTipBg.png":{x:2,y:327,w:147,h:36,ox:0,oy:0,sw:147,sh:36,ro:!1},"ruleBtn.png":{x:649,y:192,w:102,h:42,ox:0,oy:0,sw:102,sh:42,ro:!1},"rankBtn.png":{x:494,y:320,w:98,h:43,ox:0,oy:0,sw:98,sh:43,ro:!1},"progressLabel.png":{x:151,y:327,w:87,h:31,ox:0,oy:0,sw:87,sh:31,ro:!1}}},{keys:"loading_effect.png,loading_title.png",name:"loading",atlas:{"loading_effect.png":{x:2,y:2,w:665,h:121,ox:0,oy:0,sw:665,sh:121,ro:!1},"loading_title.png":{x:2,y:125,w:531,h:146,ox:0,oy:0,sw:531,sh:146,ro:!1}}}],path:"https://yun.duiba.com.cn/db_games/activity/template/1676451170/resource/"},M={x:0,y:0,type:"container",children:[]};!function(e){e.addData="surge.addStat",e.getActivityBaseInfoById="feileJump.getActivityBaseInfoById",e.getGameInfo="feileJump.getGameInfo",e.startGame="feileJump.startGame",e.doHelp="feileJump.doHelp",e.getVipInfo="feileJump.getVipInfo",e.submitGame="feileJump.submitGame",e.continueGame="feileJump.continueGame",e.getRankList="feileJump.getRankList",e.getPrizeList="feileJump.getPrizeList",e.getRankRewards="feileJump.getRankRewards",e.getMyRankPrize="feileJump.getMyRankPrize",e.receiveEnamePrize="feileJump.receiveEnamePrize",e.openMember="mine.openMember",e.openTask="mine.openTask",e.authorize="mine.authorize",e.favorShop="mine.favorShop",e.getUserAddress="mine.getUserAddress",e.getAdoptName="mine.getAdoptName",e.getAppData="mine.getAppData",e.navigateToOutside="mine.navigateToOutside",e.navigateTo="mine.navigateTo",e.navigateBack="mine.navigateBack",e.showSharePanel="mine.showSharePanel",e.openDetail="mine.openDetail",e.reportAnalytics="mine.reportAnalytics",e.openMusic="mine.openMusic"}(P||(P={})),function(e){e.AD="ad",e.TASK_ICON="taskIcon",e.FOLLOW_SHOP="followShop",e.INVITE_FRIEND="inviteFriend",e.BROWSE_PRODUCT="browseProduct",e.COLLECTION_PRODUCT="collectionProduct",e.BUY_PRODUCT="buyProduct",e.IMPROVE_INFORMATION="improveInformation",e.SECRET_ORDER="secretOrder",e.SIGN_ICON="signIcon",e.BAG_ICON="bagIcon"}(Y||(Y={})),function(e){e[e.ENAME=1]="ENAME",e[e.CREDITS=2]="CREDITS",e[e.OBJECT=3]="OBJECT",e[e.THANKS=5]="THANKS"}(k||(k={})),function(e){e.index="/projectx/{projectId}/game/index.do",e.join="/projectx/{projectId}/game/join.do",e.queryResult="/projectx/{projectId}/game/queryResult.do",e.projectRule="/projectx/{projectId}/projectRule.query"}(L||(L={}));var H,U,J=location.href.indexOf(".com.cn/projectx")>=0;!function(e){if(J){var t=document.getElementsByTagName("head")[0],n=document.createElement("script");n.src="getTokenKey?_="+Date.now(),n.onload=function(){t.removeChild(n),e&&e(!0)},n.onerror=function(){t.removeChild(n),e&&e(!1)},t.appendChild(n)}else e&&e(!0)}(),function(e){e.EXPOSURE="exposure",e.CLICK="click"}(H||(H={})),function(e){e.getAppData="mine.getAppData",e.getVoiceType="mine.getVoiceType"}(U||(U={}));var W=window.my;"web"==FYGE.getEnv()&&W&&(W.onMessage=function(e){console.log("返回数据",e.netName,e.data),te.dispatchEvent(e.netName,e.data)});var z=FYGE.Tween,q=FYGE.EventDispatcher,V=FYGE.Stage,X=FYGE.RENDERER_TYPE,K=FYGE.Event,Q=FYGE.getEnv,Z=FYGE.Texture,$=new q,ee=function(){function t(e,t,n,i,o,r,s,a,p){void 0===t&&(t=750),void 0===n&&(n=1624),void 0===r&&(r=X.WEBGL),void 0===s&&(s=!0),void 0===a&&(a=!1);var l,u=this;this.loop=function(){u._pause||(z.flush(),u.stage.flush()),"tb"==Q()?u.requestID=u.canvas.requestAnimationFrame(u.loop):u.requestID=window.requestAnimationFrame(u.loop)},window||(FYGE.initedByCanvas(e),l=my.getSystemInfoSync()),i=i||(null==l?void 0:l.windowWidth)||document.body.clientWidth,o=o||(null==l?void 0:l.windowHeight)||document.body.clientHeight,p=p||(null==l?void 0:l.pixelRatio)||window.devicePixelRatio||1;var h=this.stage=new V(e,t,n,i,o,r,s,a,p);this.canvas=e,h.addEventListener(K.INIT_STAGE,this.onAddToStage,this),this.loop()}return t.prototype.onAddToStage=function(){return i(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return b.init(this.stage),console.log("初始化层级完成"),e.loadConfig(N),console.log("初始化资源配置完成"),e.loadSkinConfig(M),console.log("初始化皮肤配置完成"),[4,e.loadGroup("common")];case 1:return t.sent(),console.log("通用资源加载完成"),[4,e.loadGroup("bird")];case 2:return t.sent(),console.log("bird资源加载完成"),"web"==Q()&&document.getElementById("__loading__")&&(document.getElementById("__loading__").style.display="none"),[4,Promise.all([Z.fromUrl("https://yun.duiba.com.cn/aurora/assets/923bcdee2d54f39797fb1cc5a79ab84da1bbe972.jpg"),Z.fromUrl("https://yun.duiba.com.cn/aurora/assets/92856abbb6293e863708fa2c0ea3556cf9b2afaa.jpg"),Z.fromUrl("https://yun.duiba.com.cn/aurora/assets/d660b9e12c66ad2c42fca23c57bf33db5009fedf.jpg"),Z.fromUrl("https://yun.duiba.com.cn/aurora/assets/a6903842083d8015e2e81d2dc652370574be6774.jpg")])];case 3:return t.sent(),n=D,i={from:"main"},w.instance.change(n,i),[2]}var n,i}))}))},t.prototype.initWebEvent=function(){var e=this.stage.onMouseEvent.bind(this.stage);this.canvas.addEventListener("touchstart",e,!1),this.canvas.addEventListener("touchmove",e,!1),this.canvas.addEventListener("touchend",e,!1)},t.prototype.run=function(){this._pause=!1,z._lastTime=null,$.dispatchEvent({type:x.ON_SHOW})},t.prototype.pause=function(){$.dispatchEvent({type:x.ON_HIDE})},t.prototype.addGlobalEvent=function(e,t,n,i){void 0===i&&(i=!1),i?$.once(e,t,n):$.addEventListener(e,t,n)},t.prototype.dispatchGlobalEvent=function(e,t){$.dispatchEvent(e,t)},t.prototype.removeGlobalEvent=function(e,t,n){$.removeEventListener(e,t,n)},t.prototype.destroy=function(){z.removeAllTweens(),"tb"==FYGE.getEnv()?this.canvas.cancelAnimationFrame(this.requestID):window.cancelAnimationFrame(this.requestID),b.removeChildren(),b.parent&&b.parent.removeChild(b),_(),this.stage.destroy(),$.removeAllEventListener()},t}(),te=new(0,FYGE.EventDispatcher);export{te as GDispatcher,ee as Game};
//# sourceMappingURL=output.module.js.map
{"version":3,"file":"output.module.js","sources":["../../module/RES.ts","../node_modules/tslib/tslib.es6.js","../../module/ctrls/waitingCtrl.ts","../../module/ctrls/toastCtrl.ts","../../module/ctrls/panelCtrl.ts","../../module/ctrls/sceneCtrl.ts","../../module/views/layers.ts","../../module/ctrls/index.ts","../../src/common/G_EVENT.ts","../../module/views/Module.ts","../../module/views/Scene.ts","../../src/scenes/bird.ts","../../src/scenes/pipe.ts","../../src/tools/TaoBaoNet.ts","../../src/tools/WebNet.ts","../../src/scenes/slideBg.ts","../../src/scenes/IndexScene.ts","../../src/ResJson.ts","../../src/SkinJson.ts","../../src/Game.ts","../../src/index.ts"],"sourcesContent":[null,"/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["RES","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__extends","__","this","constructor","prototype","create","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","e","rejected","result","done","then","apply","__generator","body","f","y","t","g","_","label","sent","trys","ops","verb","throw","return","Symbol","iterator","n","v","op","TypeError","call","pop","length","push","resData","skinData","textureHash","videoEntityHash","soundHash","groupsCompleteHash","groupsPromiseHash","singleResPromiseHash","loadGroup","name","arr","group","getGroupByName","atlas","keys","concat","split","filter","k","substr","getGroupResByName","callback","count","countAll","mark","i","getResAsync","res","str","loadResList","s","comFun","thisObj","type","substring","lastIndexOf","cached_1","FYGE","TextureCache","r","returnSingleResPromise","groupName","hasRes","json","cached","src","resPath","GlobalLoader","loadImage","image","cached_2","Texture","from","addToCache","SvgaParser","loadSvga","err","jsonData","data","createTextureSheet","BaseTexture","key","replace","getRes","groups","indexOf","getSkinDataByName","skinName","skinNode","children","child","gson","getDisplayByData","dis","Container","Button","props","tUp","tDown","tDisable","TextField","Sprite","source","Shape","beginFill","string2hex","fillColor","drawRect","width","height","endFill","alpha","position","set","x","loadConfig","path","getResByUrl","loadAllGroup","forEach","all","loadAllGroupForProgress","_this","index","_a","GDispatcher","dispatchEvent","loadSkinConfig","skinJson","initSkinDisplay","con","skin","root","addChild","id","destroyGroup","removedBase","baseTexture","destroy","_waiting","_parent","_toast","startY","endY","inited","showWaiting","msg","waiting","Waiting","layers","topLayer","offX","stageWidth","offY","stageHeight","stageOffsetX","stageOffsetY","bg","Graphics","addChildAt","initWaiting","show","hideWaiting","removeChild","_super","rectBgTexture","rectBg","rotTexture","rot","anchorX","anchorY","addEventListener","Event","ENTER_FRAME","rotation","textWidth","textAlign","TEXT_ALIGN","CENTER","size","text","showToast","Toast","toastLayer","h","initToast","Tween","removeTweens","get","to","Ease","quartOut","wait","PADDING","mouseChildren","mouseEnable","toastBgTexture","verticalAlign","VERTICAL_ALIGN","MIDDLE","textHeight","PanelCtrl","stacks","defineProperty","_instance","init","parent","hitTestByPixel","visible","_bg","closeAll","hidePanel","cls","panel","add","onLoaded","updateView","start","showAni","onLoadError","removeEventListener","onPanelHide","remove","showPanelAni","bgAni","cubicOut","_current","target","closeCurrent","SceneCtrl","change","scene","preScene","_currentScene","Layers","stage","shareLayer","instance","sceneLayer","popupLayer","_bottomLayer","_sceneLayer","_popupLayer","_toastLayer","_topLayer","_shareLayer","viewRect","G_EVENT","obj","isRecursive","destroyAllCtrls","destroyed","Scene","updateScene","Module","preLoadRes","initUi","groupNames","initEvents","removeEvents","enableMouseEvt","enable","btnDelay","delay","setTimeout","FrameAni","Bird","failStep","jumpStep","player","isGameOver","birdAni","play","scale","birdRotation","Math","min","fail","rate","max","reset","jump","gameOver","TbNetName","LogTbEnum","TBPRIZE_TYPE","WebNetName","Pipe","pipeType","PipeMannager","upPipes","downPipes","pipes","minGap","maxGap","speed","timer","startGame","createGroupPipe","upD","upP","randGap","floor","random","up","down","enterFrame","posx","console","log","clearTimeout","SlideBg","bg1","bg2","fill","base","IndexScene","arguments","bird","isGameStart","slideBg","pipeMannage","prevTime","_initEvents","_enterFrame","MouseEvent","CLICK","birdJump","_checkRmove","now","Date","dt","window","alert","location","reload","ResJson","w","ox","oy","sw","sh","ro","SkinJson","LOG_TYPE","TmallNetName","isProd","href","head","document","getElementsByTagName","scriptEl_1","createElement","onload","onerror","appendChild","refreshPxTokenKey","my","getEnv","onMessage","netName","EventDispatcher","Stage","RENDERER_TYPE","Game","canvas","desWidth","desHeight","divWidth","divHeight","renderType","stageCenter","fixedHeight","resolution","WEBGL","sysInfo","loop","_pause","flush","requestID","requestAnimationFrame","initedByCanvas","getSystemInfoSync","windowWidth","clientWidth","windowHeight","clientHeight","pixelRatio","devicePixelRatio","INIT_STAGE","onAddToStage","getElementById","style","display","fromUrl","initWebEvent","mouseEvent","onMouseEvent","bind","run","_lastTime","ON_SHOW","pause","ON_HIDE","addGlobalEvent","fun","once","dispatchGlobalEvent","removeGlobalEvent","removeAllTweens","cancelAnimationFrame","removeChildren","removeAllEventListener"],"mappings":"IAsEiBA,ECtDbC,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,KAClEP,EAAcC,EAAGC;;;;;;;;;;;;;;gFAGrB,SAASO,EAAUR,EAAGC,GAEzB,SAASQ,IAAOC,KAAKC,YAAcX,EADnCD,EAAcC,EAAGC,GAEjBD,EAAEY,UAAkB,OAANX,EAAaC,OAAOW,OAAOZ,IAAMQ,EAAGG,UAAYX,EAAEW,UAAW,IAAIH,GAyC5E,SAASK,EAAUC,EAASC,EAAYC,EAAGC,GAE9C,OAAO,IAAKD,IAAMA,EAAIE,WAAU,SAAUC,EAASC,GAC/C,SAASC,EAAUC,GAAS,IAAMC,EAAKN,EAAUO,KAAKF,IAAW,MAAOG,GAAKL,EAAOK,IACpF,SAASC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AS1CwT,EAAApY,UAAA+a,oBAAA,SAAoB1X,EAAoBiD,GACvC+C,EAAYC,cAAcjG,EAAMiD,IASjC8R,EAAApY,UAAAgb,kBAAA,SAAkB3X,EAAcwX,EAAejW,GAC9CyE,EAAY+F,oBAAoB/L,EAAMwX,EAAKjW,IAI5CwT,EAAApY,UAAAkK,QAAA,WAECgD,EAAM+N,kBAIW,MAAjBhW,KAAK6S,SAAmBhY,KAAKuY,OAAO6C,qBAAqBpb,KAAKqZ,WAC7D/C,OAAO8E,qBAAqBpb,KAAKqZ,Wb1EhCtO,EAAOsQ,iBAEHtQ,EAAOyD,QAAQzD,EAAOyD,OAAO3C,YAAYd,Ga8E/CqG,IAGApR,KAAKqQ,MAAMjG,UAGXb,EAAY+R,0BAQbhD,KC9MY/O,GAAc,IAAI4O,EAJNhT,KAAKgT"}
\ No newline at end of file
resource/bird/base.png

664 Bytes | W: | H:

resource/bird/base.png

15.9 KB | W: | H:

resource/bird/base.png
resource/bird/base.png
resource/bird/base.png
resource/bird/base.png
  • 2-up
  • Swipe
  • Onion skin
resource/bird/pipe_green.png

4.92 KB | W: | H:

resource/bird/pipe_green.png

41.5 KB | W: | H:

resource/bird/pipe_green.png
resource/bird/pipe_green.png
resource/bird/pipe_green.png
resource/bird/pipe_green.png
  • 2-up
  • Swipe
  • Onion skin
resource/bird/redbird_downflap.png

2.88 KB | W: | H:

resource/bird/redbird_downflap.png

6.7 KB | W: | H:

resource/bird/redbird_downflap.png
resource/bird/redbird_downflap.png
resource/bird/redbird_downflap.png
resource/bird/redbird_downflap.png
  • 2-up
  • Swipe
  • Onion skin
resource/bird/redbird_midflap.png

2.88 KB | W: | H:

resource/bird/redbird_midflap.png

6.58 KB | W: | H:

resource/bird/redbird_midflap.png
resource/bird/redbird_midflap.png
resource/bird/redbird_midflap.png
resource/bird/redbird_midflap.png
  • 2-up
  • Swipe
  • Onion skin
resource/bird/redbird_upflap.png

2.88 KB | W: | H:

resource/bird/redbird_upflap.png

6.7 KB | W: | H:

resource/bird/redbird_upflap.png
resource/bird/redbird_upflap.png
resource/bird/redbird_upflap.png
resource/bird/redbird_upflap.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -13,7 +13,7 @@
"name": "RevivePanel"
},
{
"keys": "base.png,pipe_green.png,redbird_downflap.png,redbird_midflap.png,redbird_upflap.png",
"keys": "base.png,pipe_green.png,pipe_green_down.png,redbird_downflap.png,redbird_midflap.png,redbird_upflap.png",
"name": "bird"
},
{
......
......@@ -13,7 +13,7 @@ export const ResJson = {
"name": "RevivePanel"
},
{
"keys": "base.png,pipe_green.png,redbird_downflap.png,redbird_midflap.png,redbird_upflap.png",
"keys": "base.png,pipe_green.png,pipe_green_down.png,redbird_downflap.png,redbird_midflap.png,redbird_upflap.png",
"name": "bird"
},
{
......
import { changeScene } from "../../module/ctrls";
import { layers } from "../../module/views/layers";
import { Scene } from "../../module/views/Scene";
import { Tools } from "../tools/Tools";
import UI from "../tools/UI";
......@@ -42,6 +43,13 @@ export class IndexScene extends Scene {
private rate = 1
/** 分数实例 */
private scoreText:TextField = null
/** 得分 */
private score = 0
private timer = null
async initUi() {
// UI.Sp(this, Texture.from('com_bg.jpg'))
this.slideBg = new SlideBg()
......@@ -51,13 +59,30 @@ export class IndexScene extends Scene {
bird.x = 100
bird.y = 800
this.addChild(bird)
this.scoreText = new TextField()
this.addChild(this.scoreText)
this.pipeMannage = new PipeMannager(this, bird,this.getChildIndex(this.scoreText))
this.pipeMannage = new PipeMannager(this, bird)
this.scoreText.text = `${this.score}`
this.scoreText.size = 58
this.scoreText.textAlign = TEXT_ALIGN.CENTER
this.scoreText.fillColor = '#ff5432'
this.scoreText.position.set((750-this.scoreText.width)/2, 200)
this._initEvents()
}
_countDown(){
this.timer = setTimeout(() => {
this.score += 1
this.scoreText.text = this.score
this._countDown()
}, 1000);
}
_initEvents() {
this.addEventListener(FYGE.Event.ENTER_FRAME, this._enterFrame, this)
this.addEventListener(FYGE.MouseEvent.CLICK, this.birdJump, this)
......@@ -94,7 +119,8 @@ export class IndexScene extends Scene {
this.isGameStart = false
this.bird.gameOver()
this.pipeMannage.destroy()
window.alert('GameOver')
clearTimeout(this.timer)
window.alert('GameOver\n得分:'+this.score)
}
/** 小鸟跳跃 */
......@@ -111,6 +137,7 @@ export class IndexScene extends Scene {
/** 开始游戏 */
startGame() {
this._countDown()
if (this.isGameOver) {
this.bird.y = 500
this.bird.reset()
......
......@@ -46,8 +46,8 @@ export class Bird extends Container {
]
this.player = new FrameAni(birdAni)
this.player.play(0)
this.player.scale.x = 3
this.player.scale.y = 3
// this.player.scale.x = 3
// this.player.scale.y = 3
this.addChild(this.player)
}
......
......@@ -13,6 +13,7 @@ import VERTICAL_ALIGN = FYGE.VERTICAL_ALIGN;
import Texture = FYGE.Texture;
import FrameAni = FYGE.FrameAni;
import { Bird } from "./bird";
import { IndexScene } from "./IndexScene";
/**
* 获取区间随机数 [min,max)
......@@ -37,12 +38,9 @@ export class Pipe extends Container {
}
init() {
this.addChild(new Sprite(RES.getRes('pipe_green.png')))
this.scale.x = 2
this.scale.y = 5
if (this.pipeType === 'down') {
this.rotation = 180
}
this.addChild(new Sprite(RES.getRes(this.pipeType === 'down' ? 'pipe_green_down.png' : 'pipe_green.png')))
// this.scale.x = 2
// this.scale.y = 5
}
destroy() {
......@@ -62,7 +60,7 @@ export class PipeMannager {
pipes: { up: Pipe, down: Pipe }[] = []
/** 舞台 */
stage: Container = null
stage: IndexScene = null
/** 生成水管最小缺口 */
minGap = 372
......@@ -75,11 +73,15 @@ export class PipeMannager {
timer = null
player:Bird = null
player: Bird = null
deep = 0
constructor(stage,player) {
constructor(stage, player, deep) {
this.stage = stage
this.player = player
this.deep = deep
// this.createGroupPipe()
}
/** 开始游戏 */
......@@ -92,24 +94,23 @@ export class PipeMannager {
/** 创建一组水管 */
createGroupPipe() {
console.log(this.deep)
const upD = this.downPipes.length ? this.downPipes.pop() : new Pipe('down')
const upP = this.upPipes.length ? this.upPipes.pop() : new Pipe('up')
upD.x = 750 + 100
upD.x = 750
upP.x = 750
const randGap = randomNum(this.minGap, this.maxGap)
const k = Math.random()
// console.log(randGap)
upD.y = 687 - k * randGap
upP.y = 687 + ((1 - k) * randGap)
upD.y = -812 - k * randGap
upP.y = upP.height - 812 + (1 - k) * randGap
this.stage.height
this.pipes.push({
up: upP,
down: upD
})
this.stage.addChild(upD)
this.stage.addChild(upP)
this.stage.addChildAt(upD, this.deep - 1)
this.stage.addChildAt(upP, this.deep - 1)
}
/** 帧动画 */
......@@ -126,10 +127,18 @@ export class PipeMannager {
this.stage.removeChild(down)
this.pipes[i] = null
}
const posx = this.player.x + 100
// console.log(this.player.x,up.x)
if(up.x == posx|| down.x == posx){
console.log('管道')
const player = this.player
const posx = player.x
// 重叠水管
if ((posx + player.width/2) >= up.x && (posx - player.width/2) <= (up.x + up.width)) {
// 碰撞头朝上的水管
if (up.y <= player.y) {
this.stage.gameOver()
}
// 碰撞头朝下的水管
if ((down.y + down.height + player.height / 2) >= player.y) {
this.stage.gameOver()
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment