Commit fa485400 authored by Master Q's avatar Master Q

build

parent 75e85328
......@@ -100,7 +100,7 @@
})
</script>
<!-- 构建的js -->
<script src="./debug/output.js" crossorigin="anonymous"></script>
<script src="//yun.duiba.com.cn/db_games/activity/template/1655694745/output.js" crossorigin="anonymous"></script>
</body>
</html>
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -4,7 +4,7 @@ function createHtml(url) {
var js = `//yun.duiba.com.cn/db_games/${url}/output.js`;
var template = fs.readFileSync("./index.html").toString();
//写入released
fs.writeFileSync("./released/index.html", template.replace("./build/output.js", js))
fs.writeFileSync("./released/index.html", template.replace("./debug/output.js", js))
}
module.exports = createHtml
......@@ -2,36 +2,624 @@ export const ResJson = {
"groups": [
{
"keys": "bucket_GE.png,countDown.svga,mountain.svga,normalGamer.svga,powerBall.svga,scene-back.jpg,speedShow.svga,speedUpGamer.svga,tree.svga",
"name": "GameRes"
"name": "GameRes",
"atlas": {
"bucket_GE.png": {
"x": 2,
"y": 2,
"w": 128,
"h": 137,
"ox": 0,
"oy": 0,
"sw": 128,
"sh": 137,
"ro": false
}
}
},
{
"keys": "0.png,1.png,2.png,3.png,4.png,5.png,6.png,7.png,8.png,9.png,Guide1.png,GuideBack.jpg,back.png,countdownback.png,fkingCar.png,next-step.png,obstack1.png,obstack2.png,obstack3.png,s.png,scoreboardback.png,倒计时.svga,护盾.png,背景移动元素.svga,跑道.svga,路架子.svga",
"name": "GameScene"
"name": "GameScene",
"atlas": {
"back.png": {
"x": 2,
"y": 2,
"w": 750,
"h": 1624,
"ox": 0,
"oy": 0,
"sw": 750,
"sh": 1624,
"ro": false
},
"Guide1.png": {
"x": 754,
"y": 2,
"w": 487,
"h": 43,
"ox": 0,
"oy": 0,
"sw": 487,
"sh": 43,
"ro": true
},
"护盾.png": {
"x": 799,
"y": 2,
"w": 401,
"h": 396,
"ox": 0,
"oy": 0,
"sw": 401,
"sh": 396,
"ro": true
},
"fkingCar.png": {
"x": 799,
"y": 405,
"w": 211,
"h": 309,
"ox": 0,
"oy": 0,
"sw": 211,
"sh": 309,
"ro": true
},
"countdownback.png": {
"x": 754,
"y": 618,
"w": 171,
"h": 94,
"ox": 0,
"oy": 0,
"sw": 171,
"sh": 94,
"ro": false
},
"scoreboardback.png": {
"x": 1110,
"y": 405,
"w": 152,
"h": 58,
"ox": 0,
"oy": 0,
"sw": 152,
"sh": 58,
"ro": true
},
"obstack3.png": {
"x": 927,
"y": 618,
"w": 86,
"h": 104,
"ox": 0,
"oy": 0,
"sw": 86,
"sh": 104,
"ro": true
},
"obstack2.png": {
"x": 1110,
"y": 559,
"w": 77,
"h": 101,
"ox": 0,
"oy": 0,
"sw": 77,
"sh": 101,
"ro": false
},
"next-step.png": {
"x": 754,
"y": 491,
"w": 100,
"h": 39,
"ox": 0,
"oy": 0,
"sw": 100,
"sh": 39,
"ro": true
},
"obstack1.png": {
"x": 1033,
"y": 618,
"w": 73,
"h": 92,
"ox": 0,
"oy": 0,
"sw": 73,
"sh": 92,
"ro": false
},
"0.png": {
"x": 1108,
"y": 662,
"w": 29,
"h": 37,
"ox": 0,
"oy": 0,
"sw": 29,
"sh": 37,
"ro": true
},
"1.png": {
"x": 754,
"y": 593,
"w": 23,
"h": 37,
"ox": 0,
"oy": 0,
"sw": 23,
"sh": 37,
"ro": true
},
"2.png": {
"x": 1147,
"y": 662,
"w": 33,
"h": 37,
"ox": 0,
"oy": 0,
"sw": 33,
"sh": 37,
"ro": true
},
"3.png": {
"x": 1108,
"y": 693,
"w": 30,
"h": 37,
"ox": 0,
"oy": 0,
"sw": 30,
"sh": 37,
"ro": true
},
"4.png": {
"x": 1147,
"y": 697,
"w": 30,
"h": 37,
"ox": 0,
"oy": 0,
"sw": 30,
"sh": 37,
"ro": true
},
"5.png": {
"x": 927,
"y": 706,
"w": 32,
"h": 37,
"ox": 0,
"oy": 0,
"sw": 32,
"sh": 37,
"ro": true
},
"6.png": {
"x": 966,
"y": 706,
"w": 30,
"h": 37,
"ox": 0,
"oy": 0,
"sw": 30,
"sh": 37,
"ro": true
},
"7.png": {
"x": 1005,
"y": 712,
"w": 29,
"h": 37,
"ox": 0,
"oy": 0,
"sw": 29,
"sh": 37,
"ro": true
},
"8.png": {
"x": 966,
"y": 738,
"w": 30,
"h": 37,
"ox": 0,
"oy": 0,
"sw": 30,
"sh": 37,
"ro": true
},
"9.png": {
"x": 1044,
"y": 712,
"w": 30,
"h": 37,
"ox": 0,
"oy": 0,
"sw": 30,
"sh": 37,
"ro": true
},
"s.png": {
"x": 1005,
"y": 743,
"w": 30,
"h": 29,
"ox": 0,
"oy": 0,
"sw": 30,
"sh": 29,
"ro": false
}
}
},
{
"keys": "awardBtn.png,indexSceneBack.jpg,indexSceneLogo.png,ruleBtn.png,startBtn.png,首页氛围.svga",
"name": "IndexScene"
"name": "IndexScene",
"atlas": {
"indexSceneLogo.png": {
"x": 2,
"y": 2,
"w": 746,
"h": 354,
"ox": 0,
"oy": 0,
"sw": 746,
"sh": 354,
"ro": false
},
"startBtn.png": {
"x": 2,
"y": 358,
"w": 374,
"h": 126,
"ox": 0,
"oy": 0,
"sw": 374,
"sh": 126,
"ro": false
},
"ruleBtn.png": {
"x": 378,
"y": 358,
"w": 137,
"h": 51,
"ox": 0,
"oy": 0,
"sw": 137,
"sh": 51,
"ro": false
},
"awardBtn.png": {
"x": 378,
"y": 411,
"w": 136,
"h": 51,
"ox": 0,
"oy": 0,
"sw": 136,
"sh": 51,
"ro": false
}
}
},
{
"keys": "cancelBtn.png,oneMoreTime.png,resultModalback.png",
"name": "ResultModal"
"name": "ResultModal",
"atlas": {
"resultModalback.png": {
"x": 2,
"y": 2,
"w": 667,
"h": 944,
"ox": 0,
"oy": 0,
"sw": 667,
"sh": 944,
"ro": false
},
"cancelBtn.png": {
"x": 671,
"y": 2,
"w": 265,
"h": 95,
"ox": 0,
"oy": 0,
"sw": 265,
"sh": 95,
"ro": true
},
"oneMoreTime.png": {
"x": 671,
"y": 269,
"w": 265,
"h": 95,
"ox": 0,
"oy": 0,
"sw": 265,
"sh": 95,
"ro": true
}
}
},
{
"keys": "ruleModalBack.png",
"name": "RuleModal"
"name": "RuleModal",
"atlas": {
"ruleModalBack.png": {
"x": 2,
"y": 2,
"w": 547,
"h": 697,
"ox": 0,
"oy": 0,
"sw": 547,
"sh": 697,
"ro": false
}
}
},
{
"keys": "close-btn.png,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
},
"close-btn.png": {
"x": 242,
"y": 194,
"w": 50,
"h": 51,
"ox": 0,
"oy": 0,
"sw": 50,
"sh": 51,
"ro": false
}
}
},
{
"keys": "l+.png,l0.png,l1.png,l2.png,l3.png,l4.png,l5.png,l6.png,l7.png,l8.png,l9.png,loadBack.jpg,progress-back.png,progress-icon.png,progress-track.png",
"name": "loading"
"name": "loading",
"atlas": {
"progress-track.png": {
"x": 2,
"y": 2,
"w": 278,
"h": 29,
"ox": 0,
"oy": 0,
"sw": 278,
"sh": 29,
"ro": false
},
"progress-back.png": {
"x": 2,
"y": 33,
"w": 277,
"h": 29,
"ox": 0,
"oy": 0,
"sw": 277,
"sh": 29,
"ro": false
},
"progress-icon.png": {
"x": 2,
"y": 64,
"w": 92,
"h": 59,
"ox": 0,
"oy": 0,
"sw": 92,
"sh": 59,
"ro": false
},
"l0.png": {
"x": 96,
"y": 64,
"w": 19,
"h": 26,
"ox": 0,
"oy": 0,
"sw": 19,
"sh": 26,
"ro": false
},
"l1.png": {
"x": 96,
"y": 92,
"w": 15,
"h": 26,
"ox": 0,
"oy": 0,
"sw": 15,
"sh": 26,
"ro": false
},
"l2.png": {
"x": 113,
"y": 92,
"w": 21,
"h": 26,
"ox": 0,
"oy": 0,
"sw": 21,
"sh": 26,
"ro": false
},
"l3.png": {
"x": 117,
"y": 64,
"w": 20,
"h": 26,
"ox": 0,
"oy": 0,
"sw": 20,
"sh": 26,
"ro": false
},
"l4.png": {
"x": 136,
"y": 92,
"w": 20,
"h": 26,
"ox": 0,
"oy": 0,
"sw": 20,
"sh": 26,
"ro": false
},
"l5.png": {
"x": 139,
"y": 64,
"w": 20,
"h": 26,
"ox": 0,
"oy": 0,
"sw": 20,
"sh": 26,
"ro": false
},
"l6.png": {
"x": 158,
"y": 92,
"w": 20,
"h": 26,
"ox": 0,
"oy": 0,
"sw": 20,
"sh": 26,
"ro": false
},
"l7.png": {
"x": 161,
"y": 64,
"w": 19,
"h": 26,
"ox": 0,
"oy": 0,
"sw": 19,
"sh": 26,
"ro": false
},
"l8.png": {
"x": 180,
"y": 92,
"w": 20,
"h": 26,
"ox": 0,
"oy": 0,
"sw": 20,
"sh": 26,
"ro": false
},
"l9.png": {
"x": 182,
"y": 64,
"w": 20,
"h": 26,
"ox": 0,
"oy": 0,
"sw": 20,
"sh": 26,
"ro": false
},
"l+.png": {
"x": 202,
"y": 92,
"w": 17,
"h": 16,
"ox": 0,
"oy": 0,
"sw": 17,
"sh": 16,
"ro": true
}
}
},
{
"keys": "fkBtn.png,lookBtn.png,rescurrectionModalBack.png",
"name": "rescurrectionModal"
"name": "rescurrectionModal",
"atlas": {
"rescurrectionModalBack.png": {
"x": 2,
"y": 2,
"w": 547,
"h": 389,
"ox": 0,
"oy": 0,
"sw": 547,
"sh": 389,
"ro": false
},
"fkBtn.png": {
"x": 2,
"y": 393,
"w": 265,
"h": 95,
"ox": 0,
"oy": 0,
"sw": 265,
"sh": 95,
"ro": false
},
"lookBtn.png": {
"x": 269,
"y": 393,
"w": 265,
"h": 95,
"ox": 0,
"oy": 0,
"sw": 265,
"sh": 95,
"ro": false
}
}
}
],
"path": location.origin + "/resource/"
"path": "https://yun.duiba.com.cn/db_games/activity/template/1655694731/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