Commit e5e3e39f authored by 邱旭's avatar 邱旭

@babel/core

parent 4a852e6a
...@@ -55,7 +55,7 @@ export class Game { ...@@ -55,7 +55,7 @@ export class Game {
divHeight = divHeight || sysInfo?.windowHeight || document.body.clientHeight; divHeight = divHeight || sysInfo?.windowHeight || document.body.clientHeight;
resolution = resolution || sysInfo?.pixelRatio || window.devicePixelRatio || 1; resolution = resolution || sysInfo?.pixelRatio || window.devicePixelRatio || 1;
//建舞台 // 建舞台
const stage = this.stage = new Stage( const stage = this.stage = new Stage(
canvas, canvas,
desWidth, // 设计宽度,按设计搞给的就行 desWidth, // 设计宽度,按设计搞给的就行
...@@ -70,7 +70,7 @@ export class Game { ...@@ -70,7 +70,7 @@ export class Game {
this.canvas = canvas; // 赋值下,为了下面的destroy的cancelAnimationFrame this.canvas = canvas; // 赋值下,为了下面的destroy的cancelAnimationFrame
//stage初始化 // stage初始化
stage.addEventListener(Event.INIT_STAGE, this.onAddToStage, this); stage.addEventListener(Event.INIT_STAGE, this.onAddToStage, this);
//循环 //循环
......
...@@ -2,681 +2,52 @@ export const ResJson = { ...@@ -2,681 +2,52 @@ export const ResJson = {
"groups": [ "groups": [
{ {
"keys": "helpBg.png,helpBtn.png", "keys": "helpBg.png,helpBtn.png",
"name": "HelpPanel", "name": "HelpPanel"
"atlas": {
"helpBg.png": {
"x": 2,
"y": 2,
"w": 581,
"h": 547,
"ox": 0,
"oy": 0,
"sw": 581,
"sh": 547,
"ro": false
},
"helpBtn.png": {
"x": 2,
"y": 551,
"w": 418,
"h": 102,
"ox": 0,
"oy": 0,
"sw": 418,
"sh": 102,
"ro": false
}
}
}, },
{ {
"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", "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", "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": false
},
"b48ee079-b3d7-4371-b294-944200eccba9.png": {
"x": 2,
"y": 112,
"w": 137,
"h": 74,
"ox": 0,
"oy": 0,
"sw": 137,
"sh": 74,
"ro": false
},
"a122de8a-beed-4442-9252-8c047986f371.png": {
"x": 141,
"y": 112,
"w": 134,
"h": 24,
"ox": 0,
"oy": 0,
"sw": 134,
"sh": 24,
"ro": false
},
"cd1a775d-36c9-4c8e-9c67-8191070068e9.png": {
"x": 2,
"y": 188,
"w": 123,
"h": 104,
"ox": 0,
"oy": 0,
"sw": 123,
"sh": 104,
"ro": false
},
"7458bc9a-d07d-4a7c-972b-4de7ed7c040d.png": {
"x": 127,
"y": 188,
"w": 48,
"h": 30,
"ox": 0,
"oy": 0,
"sw": 48,
"sh": 30,
"ro": true
},
"ad9681a6-9eb2-40ad-8c2c-0b3ad121a00d.png": {
"x": 141,
"y": 138,
"w": 23,
"h": 36,
"ox": 0,
"oy": 0,
"sw": 23,
"sh": 36,
"ro": false
},
"845ae874-998e-4f68-8e79-641eb77466f3.png": {
"x": 127,
"y": 238,
"w": 24,
"h": 25,
"ox": 0,
"oy": 0,
"sw": 24,
"sh": 25,
"ro": false
},
"7e4500a1-83be-4686-a46b-67147ed44ddd.png": {
"x": 141,
"y": 176,
"w": 5,
"h": 6,
"ox": 0,
"oy": 0,
"sw": 5,
"sh": 6,
"ro": false
}
}
}, },
{ {
"keys": "noTimeBg.png,noTimeBtn.png", "keys": "noTimeBg.png,noTimeBtn.png",
"name": "NoTimePanel", "name": "NoTimePanel"
"atlas": {
"noTimeBg.png": {
"x": 2,
"y": 2,
"w": 581,
"h": 547,
"ox": 0,
"oy": 0,
"sw": 581,
"sh": 547,
"ro": false
},
"noTimeBtn.png": {
"x": 2,
"y": 551,
"w": 418,
"h": 102,
"ox": 0,
"oy": 0,
"sw": 418,
"sh": 102,
"ro": false
}
}
}, },
{ {
"keys": "overBtn.png,overNoPrizeBg.png,overPrizeBg.png", "keys": "overBtn.png,overNoPrizeBg.png,overPrizeBg.png",
"name": "OverPanel", "name": "OverPanel"
"atlas": {
"overPrizeBg.png": {
"x": 2,
"y": 2,
"w": 581,
"h": 843,
"ox": 0,
"oy": 0,
"sw": 581,
"sh": 843,
"ro": false
},
"overNoPrizeBg.png": {
"x": 585,
"y": 2,
"w": 581,
"h": 577,
"ox": 0,
"oy": 0,
"sw": 581,
"sh": 577,
"ro": true
},
"overBtn.png": {
"x": 585,
"y": 585,
"w": 418,
"h": 102,
"ox": 0,
"oy": 0,
"sw": 418,
"sh": 102,
"ro": false
}
}
}, },
{ {
"keys": "rankBg.png,rankIcon.png", "keys": "rankBg.png,rankIcon.png",
"name": "RankPanel", "name": "RankPanel"
"atlas": {
"rankBg.png": {
"x": 2,
"y": 2,
"w": 581,
"h": 944,
"ox": 0,
"oy": 0,
"sw": 581,
"sh": 944,
"ro": false
},
"rankIcon.png": {
"x": 585,
"y": 2,
"w": 34,
"h": 42,
"ox": 0,
"oy": 0,
"sw": 34,
"sh": 42,
"ro": false
}
}
}, },
{ {
"keys": "rankNoPrizeBg.png,rankNoPrizeBtn.png,rankPrizeBg.png,rankPrizeBtn.png", "keys": "rankNoPrizeBg.png,rankNoPrizeBtn.png,rankPrizeBg.png,rankPrizeBtn.png",
"name": "RankPrizePanel", "name": "RankPrizePanel"
"atlas": {
"rankPrizeBg.png": {
"x": 2,
"y": 2,
"w": 581,
"h": 717,
"ox": 0,
"oy": 0,
"sw": 581,
"sh": 717,
"ro": false
},
"rankNoPrizeBg.png": {
"x": 585,
"y": 2,
"w": 581,
"h": 546,
"ox": 0,
"oy": 0,
"sw": 581,
"sh": 546,
"ro": true
},
"rankNoPrizeBtn.png": {
"x": 585,
"y": 585,
"w": 418,
"h": 102,
"ox": 0,
"oy": 0,
"sw": 418,
"sh": 102,
"ro": false
},
"rankPrizeBtn.png": {
"x": 2,
"y": 721,
"w": 418,
"h": 102,
"ox": 0,
"oy": 0,
"sw": 418,
"sh": 102,
"ro": false
}
}
}, },
{ {
"keys": "reviveBg.png,reviveCancel.png,reviveOk.png", "keys": "reviveBg.png,reviveCancel.png,reviveOk.png",
"name": "RevivePanel", "name": "RevivePanel"
"atlas": {
"reviveBg.png": {
"x": 2,
"y": 2,
"w": 581,
"h": 508,
"ox": 0,
"oy": 0,
"sw": 581,
"sh": 508,
"ro": false
},
"reviveOk.png": {
"x": 2,
"y": 512,
"w": 233,
"h": 89,
"ox": 0,
"oy": 0,
"sw": 233,
"sh": 89,
"ro": false
},
"reviveCancel.png": {
"x": 237,
"y": 512,
"w": 224,
"h": 85,
"ox": 0,
"oy": 0,
"sw": 224,
"sh": 85,
"ro": false
}
}
}, },
{ {
"keys": "rulePanelBg.png,rulePanelBtn.png", "keys": "rulePanelBg.png,rulePanelBtn.png",
"name": "RulePanel", "name": "RulePanel"
"atlas": {
"rulePanelBg.png": {
"x": 2,
"y": 2,
"w": 581,
"h": 717,
"ox": 0,
"oy": 0,
"sw": 581,
"sh": 717,
"ro": false
},
"rulePanelBtn.png": {
"x": 585,
"y": 2,
"w": 418,
"h": 102,
"ox": 0,
"oy": 0,
"sw": 418,
"sh": 102,
"ro": true
}
}
}, },
{ {
"keys": "comCloseBtn.png,com_bg.jpg,toastBg.png,waitingBg.png,waitingRot.png", "keys": "comCloseBtn.png,com_bg.jpg,toastBg.png,waitingBg.png,waitingRot.png",
"name": "common", "name": "common"
"atlas": {
"toastBg.png": {
"x": 2,
"y": 2,
"w": 460,
"h": 130,
"ox": 0,
"oy": 0,
"sw": 460,
"sh": 130,
"ro": false
},
"waitingBg.png": {
"x": 2,
"y": 134,
"w": 160,
"h": 180,
"ox": 0,
"oy": 0,
"sw": 160,
"sh": 180,
"ro": true
},
"comCloseBtn.png": {
"x": 184,
"y": 134,
"w": 58,
"h": 58,
"ox": 0,
"oy": 0,
"sw": 58,
"sh": 58,
"ro": false
},
"waitingRot.png": {
"x": 184,
"y": 194,
"w": 56,
"h": 56,
"ox": 0,
"oy": 0,
"sw": 56,
"sh": 56,
"ro": false
}
}
}, },
{ {
"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", "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", "name": "game"
"atlas": {
"guide.png": {
"x": 2,
"y": 2,
"w": 320,
"h": 416,
"ox": 0,
"oy": 0,
"sw": 320,
"sh": 416,
"ro": false
},
"gameMusicOff.png": {
"x": 324,
"y": 2,
"w": 82,
"h": 82,
"ox": 0,
"oy": 0,
"sw": 82,
"sh": 82,
"ro": false
},
"gameMusicOn.png": {
"x": 324,
"y": 86,
"w": 82,
"h": 82,
"ox": 0,
"oy": 0,
"sw": 82,
"sh": 82,
"ro": false
},
"gameScore0.png": {
"x": 324,
"y": 170,
"w": 44,
"h": 56,
"ox": 2,
"oy": 0,
"sw": 47,
"sh": 56,
"ro": true
},
"gameScore1.png": {
"x": 324,
"y": 216,
"w": 28,
"h": 56,
"ox": 2,
"oy": 0,
"sw": 32,
"sh": 56,
"ro": true
},
"gameScore2.png": {
"x": 324,
"y": 246,
"w": 44,
"h": 56,
"ox": 2,
"oy": 0,
"sw": 47,
"sh": 56,
"ro": true
},
"gameScore3.png": {
"x": 324,
"y": 292,
"w": 44,
"h": 56,
"ox": 2,
"oy": 0,
"sw": 47,
"sh": 56,
"ro": true
},
"gameScore4.png": {
"x": 324,
"y": 338,
"w": 44,
"h": 56,
"ox": 2,
"oy": 0,
"sw": 48,
"sh": 56,
"ro": false
},
"gameScore5.png": {
"x": 408,
"y": 2,
"w": 44,
"h": 56,
"ox": 2,
"oy": 0,
"sw": 47,
"sh": 56,
"ro": false
},
"gameScore6.png": {
"x": 408,
"y": 60,
"w": 44,
"h": 56,
"ox": 2,
"oy": 0,
"sw": 47,
"sh": 56,
"ro": false
},
"gameScore7.png": {
"x": 408,
"y": 118,
"w": 44,
"h": 56,
"ox": 2,
"oy": 0,
"sw": 47,
"sh": 56,
"ro": false
},
"gameScore8.png": {
"x": 382,
"y": 176,
"w": 44,
"h": 56,
"ox": 2,
"oy": 0,
"sw": 47,
"sh": 56,
"ro": true
},
"gameScore9.png": {
"x": 382,
"y": 222,
"w": 44,
"h": 56,
"ox": 2,
"oy": 0,
"sw": 47,
"sh": 56,
"ro": true
},
"gameScore+.png": {
"x": 382,
"y": 268,
"w": 42,
"h": 40,
"ox": 2,
"oy": 8,
"sw": 46,
"sh": 56,
"ro": false
}
}
}, },
{ {
"keys": "btnTipBg.png,prizeBtn.png,progressBg.png,progressFill.png,progressLabel.png,rankBtn.png,ruleBtn.png,startBtn.png,taskBtn.png", "keys": "btnTipBg.png,prizeBtn.png,progressBg.png,progressFill.png,progressLabel.png,rankBtn.png,ruleBtn.png,startBtn.png,taskBtn.png",
"name": "index", "name": "index"
"atlas": {
"progressBg.png": {
"x": 2,
"y": 2,
"w": 750,
"h": 188,
"ox": 0,
"oy": 0,
"sw": 750,
"sh": 188,
"ro": false
},
"progressFill.png": {
"x": 2,
"y": 192,
"w": 615,
"h": 20,
"ox": 0,
"oy": 0,
"sw": 615,
"sh": 20,
"ro": false
},
"startBtn.png": {
"x": 2,
"y": 214,
"w": 490,
"h": 111,
"ox": 0,
"oy": 0,
"sw": 490,
"sh": 111,
"ro": false
},
"prizeBtn.png": {
"x": 494,
"y": 214,
"w": 153,
"h": 51,
"ox": 0,
"oy": 0,
"sw": 153,
"sh": 51,
"ro": false
},
"taskBtn.png": {
"x": 494,
"y": 267,
"w": 151,
"h": 51,
"ox": 0,
"oy": 0,
"sw": 151,
"sh": 51,
"ro": false
},
"btnTipBg.png": {
"x": 2,
"y": 327,
"w": 147,
"h": 36,
"ox": 0,
"oy": 0,
"sw": 147,
"sh": 36,
"ro": false
},
"ruleBtn.png": {
"x": 649,
"y": 192,
"w": 102,
"h": 42,
"ox": 0,
"oy": 0,
"sw": 102,
"sh": 42,
"ro": false
},
"rankBtn.png": {
"x": 494,
"y": 320,
"w": 98,
"h": 43,
"ox": 0,
"oy": 0,
"sw": 98,
"sh": 43,
"ro": false
},
"progressLabel.png": {
"x": 151,
"y": 327,
"w": 87,
"h": 31,
"ox": 0,
"oy": 0,
"sw": 87,
"sh": 31,
"ro": false
}
}
}, },
{ {
"keys": "loading_effect.png,loading_title.png", "keys": "loading_effect.png,loading_title.png",
"name": "loading", "name": "loading"
"atlas": {
"loading_effect.png": {
"x": 2,
"y": 2,
"w": 665,
"h": 121,
"ox": 0,
"oy": 0,
"sw": 665,
"sh": 121,
"ro": false
},
"loading_title.png": {
"x": 2,
"y": 125,
"w": 531,
"h": 146,
"ox": 0,
"oy": 0,
"sw": 531,
"sh": 146,
"ro": false
}
}
} }
], ],
"path": "https://yun.duiba.com.cn/db_games/activity/template/1654501304/resource/" "path": location.origin + "/resource/"
} }
\ No newline at end of file
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