Commit 10f1dc9d authored by Master Q's avatar Master Q

背景音乐添加

parent 5342f43c
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
"firstLoginToday": true, "firstLoginToday": true,
"newUser": false, "newUser": false,
"shop": "FUSION", "shop": "FUSION",
"shopId": 10004 "shopId": 10004,
"completed": true
} }
} }
{
"success": true
}
\ No newline at end of file
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
"name": "balance_guidance" "name": "balance_guidance"
}, },
{ {
"keys": "back.png,back_jordan.png,comCloseBtn.png,com_light.png,toastBg.png,waitingBg.png,waitingRot.png,跳过按钮.png", "keys": "back.png,back_jordan.png,comCloseBtn.png,com_light.png,music-off.png,music-on.png,toastBg.png,waitingBg.png,waitingRot.png,跳过按钮.png",
"name": "common" "name": "common"
}, },
{ {
......
...@@ -2,40 +2,1477 @@ export const ResJson = { ...@@ -2,40 +2,1477 @@ export const ResJson = {
"groups": [ "groups": [
{ {
"keys": "countdown-back.png", "keys": "countdown-back.png",
"name": "CountDownComp" "name": "CountDownComp",
"atlas": {
"countdown-back.png": {
"x": 2,
"y": 2,
"w": 207,
"h": 57,
"ox": 0,
"oy": 0,
"sw": 207,
"sh": 57,
"ro": false
}
}
}, },
{ {
"keys": "back-home.png,jump-icon.png,more-btn.png,new-record-icon.png,product-link__icon.png,share-btn.png", "keys": "back-home.png,jump-icon.png,more-btn.png,new-record-icon.png,product-link__icon.png,share-btn.png",
"name": "GameOver" "name": "GameOver",
"atlas": {
"more-btn.png": {
"x": 2,
"y": 2,
"w": 655,
"h": 120,
"ox": 0,
"oy": 0,
"sw": 655,
"sh": 120,
"ro": false
},
"share-btn.png": {
"x": 2,
"y": 124,
"w": 655,
"h": 120,
"ox": 0,
"oy": 0,
"sw": 655,
"sh": 120,
"ro": false
},
"back-home.png": {
"x": 2,
"y": 246,
"w": 130,
"h": 43,
"ox": 0,
"oy": 0,
"sw": 130,
"sh": 43,
"ro": false
},
"jump-icon.png": {
"x": 2,
"y": 291,
"w": 102,
"h": 54,
"ox": 0,
"oy": 0,
"sw": 102,
"sh": 54,
"ro": false
},
"new-record-icon.png": {
"x": 106,
"y": 291,
"w": 102,
"h": 37,
"ox": 0,
"oy": 0,
"sw": 102,
"sh": 37,
"ro": false
},
"product-link__icon.png": {
"x": 210,
"y": 246,
"w": 87,
"h": 87,
"ox": 0,
"oy": 0,
"sw": 87,
"sh": 87,
"ro": false
}
}
}, },
{ {
"keys": "over-back.png,over-tipsicon.png,prize-icon1.png,prize-icon2.png,prize-icon3.png", "keys": "over-back.png,over-tipsicon.png,prize-icon1.png,prize-icon2.png,prize-icon3.png",
"name": "GameOverPanel" "name": "GameOverPanel",
"atlas": {
"over-back.png": {
"x": 2,
"y": 2,
"w": 590,
"h": 804,
"ox": 0,
"oy": 0,
"sw": 590,
"sh": 804,
"ro": false
},
"prize-icon3.png": {
"x": 594,
"y": 2,
"w": 464,
"h": 220,
"ox": 0,
"oy": 0,
"sw": 464,
"sh": 220,
"ro": true
},
"prize-icon2.png": {
"x": 594,
"y": 468,
"w": 463,
"h": 220,
"ox": 0,
"oy": 0,
"sw": 463,
"sh": 220,
"ro": true
},
"prize-icon1.png": {
"x": 2,
"y": 808,
"w": 412,
"h": 195,
"ox": 0,
"oy": 0,
"sw": 412,
"sh": 195,
"ro": false
},
"over-tipsicon.png": {
"x": 416,
"y": 808,
"w": 172,
"h": 37,
"ox": 0,
"oy": 0,
"sw": 172,
"sh": 37,
"ro": false
}
}
}, },
{ {
"keys": "balance_guidance.png,guidance-t1.png,num0.png,num1.png,num2.png,num3.png,num4.png,num5.png,num6.png,num7.png,num8.png,num9.png,numb0.png,numb1.png,numb2.png,numb3.png,numb4.png,numb5.png,numb6.png,numb7.png,numb8.png,numb9.png,numbp.png,nump.png,p1-b.png,p10-b.png,p11-b.png,p12-b.png,p13-b.png,p14-b.png,p15-b.png,p16-b.png,p17-b.png,p18-b.png,p19-b.png,p2-b.png,p20-b.png,p3-b.png,p4-b.png,p5-b.png,p6-b.png,p7-b.png,p8-b.png,p9-b.png", "keys": "balance_guidance.png,guidance-t1.png,num0.png,num1.png,num2.png,num3.png,num4.png,num5.png,num6.png,num7.png,num8.png,num9.png,numb0.png,numb1.png,numb2.png,numb3.png,numb4.png,numb5.png,numb6.png,numb7.png,numb8.png,numb9.png,numbp.png,nump.png,p1-b.png,p10-b.png,p11-b.png,p12-b.png,p13-b.png,p14-b.png,p15-b.png,p16-b.png,p17-b.png,p18-b.png,p19-b.png,p2-b.png,p20-b.png,p3-b.png,p4-b.png,p5-b.png,p6-b.png,p7-b.png,p8-b.png,p9-b.png",
"name": "GameScene" "name": "GameScene",
"atlas": {
"guidance-t1.png": {
"x": 2,
"y": 2,
"w": 574,
"h": 183,
"ox": 0,
"oy": 0,
"sw": 574,
"sh": 183,
"ro": false
},
"balance_guidance.png": {
"x": 2,
"y": 187,
"w": 258,
"h": 532,
"ox": 0,
"oy": 0,
"sw": 258,
"sh": 532,
"ro": true
},
"p13-b.png": {
"x": 2,
"y": 447,
"w": 438,
"h": 410,
"ox": 0,
"oy": 0,
"sw": 438,
"sh": 410,
"ro": false
},
"p4-b.png": {
"x": 578,
"y": 2,
"w": 343,
"h": 438,
"ox": 0,
"oy": 0,
"sw": 343,
"sh": 438,
"ro": false
},
"p6-b.png": {
"x": 442,
"y": 447,
"w": 425,
"h": 377,
"ox": 0,
"oy": 0,
"sw": 425,
"sh": 377,
"ro": false
},
"p17-b.png": {
"x": 2,
"y": 859,
"w": 416,
"h": 298,
"ox": 0,
"oy": 0,
"sw": 416,
"sh": 298,
"ro": false
},
"p9-b.png": {
"x": 442,
"y": 826,
"w": 410,
"h": 299,
"ox": 0,
"oy": 0,
"sw": 410,
"sh": 299,
"ro": false
},
"p15-b.png": {
"x": 923,
"y": 2,
"w": 401,
"h": 373,
"ox": 0,
"oy": 0,
"sw": 401,
"sh": 373,
"ro": true
},
"p5-b.png": {
"x": 869,
"y": 442,
"w": 337,
"h": 397,
"ox": 0,
"oy": 0,
"sw": 337,
"sh": 397,
"ro": true
},
"p18-b.png": {
"x": 869,
"y": 781,
"w": 270,
"h": 394,
"ox": 0,
"oy": 0,
"sw": 270,
"sh": 394,
"ro": true
},
"p10-b.png": {
"x": 2,
"y": 1159,
"w": 390,
"h": 367,
"ox": 0,
"oy": 0,
"sw": 390,
"sh": 367,
"ro": false
},
"p19-b.png": {
"x": 420,
"y": 1127,
"w": 272,
"h": 390,
"ox": 0,
"oy": 0,
"sw": 272,
"sh": 390,
"ro": false
},
"p12-b.png": {
"x": 694,
"y": 1127,
"w": 345,
"h": 387,
"ox": 0,
"oy": 0,
"sw": 345,
"sh": 387,
"ro": false
},
"p8-b.png": {
"x": 1298,
"y": 2,
"w": 382,
"h": 318,
"ox": 0,
"oy": 0,
"sw": 382,
"sh": 318,
"ro": true
},
"p7-b.png": {
"x": 1268,
"y": 405,
"w": 381,
"h": 332,
"ox": 0,
"oy": 0,
"sw": 381,
"sh": 332,
"ro": true
},
"p3-b.png": {
"x": 1041,
"y": 1053,
"w": 374,
"h": 380,
"ox": 0,
"oy": 0,
"sw": 374,
"sh": 380,
"ro": false
},
"p2-b.png": {
"x": 2,
"y": 1528,
"w": 378,
"h": 342,
"ox": 0,
"oy": 0,
"sw": 378,
"sh": 342,
"ro": false
},
"p14-b.png": {
"x": 382,
"y": 1528,
"w": 373,
"h": 333,
"ox": 0,
"oy": 0,
"sw": 373,
"sh": 333,
"ro": false
},
"p1-b.png": {
"x": 757,
"y": 1516,
"w": 324,
"h": 372,
"ox": 0,
"oy": 0,
"sw": 324,
"sh": 372,
"ro": true
},
"p16-b.png": {
"x": 1131,
"y": 1435,
"w": 251,
"h": 371,
"ox": 0,
"oy": 0,
"sw": 251,
"sh": 371,
"ro": false
},
"p11-b.png": {
"x": 1618,
"y": 2,
"w": 326,
"h": 356,
"ox": 0,
"oy": 0,
"sw": 326,
"sh": 356,
"ro": false
},
"p20-b.png": {
"x": 1618,
"y": 360,
"w": 300,
"h": 343,
"ox": 0,
"oy": 0,
"sw": 300,
"sh": 343,
"ro": false
},
"num0.png": {
"x": 1265,
"y": 788,
"w": 160,
"h": 226,
"ox": 0,
"oy": 0,
"sw": 160,
"sh": 226,
"ro": false
},
"num3.png": {
"x": 1602,
"y": 705,
"w": 151,
"h": 226,
"ox": 0,
"oy": 0,
"sw": 151,
"sh": 226,
"ro": true
},
"num8.png": {
"x": 1427,
"y": 788,
"w": 154,
"h": 226,
"ox": 0,
"oy": 0,
"sw": 154,
"sh": 226,
"ro": false
},
"numb0.png": {
"x": 1583,
"y": 858,
"w": 160,
"h": 226,
"ox": 0,
"oy": 0,
"sw": 160,
"sh": 226,
"ro": true
},
"numb3.png": {
"x": 1417,
"y": 1016,
"w": 151,
"h": 226,
"ox": 0,
"oy": 0,
"sw": 151,
"sh": 226,
"ro": false
},
"numb8.png": {
"x": 1570,
"y": 1020,
"w": 154,
"h": 226,
"ox": 0,
"oy": 0,
"sw": 154,
"sh": 226,
"ro": true
},
"num2.png": {
"x": 1570,
"y": 1176,
"w": 155,
"h": 222,
"ox": 0,
"oy": 0,
"sw": 155,
"sh": 222,
"ro": true
},
"num5.png": {
"x": 1794,
"y": 1176,
"w": 148,
"h": 222,
"ox": 0,
"oy": 0,
"sw": 148,
"sh": 222,
"ro": false
},
"num6.png": {
"x": 1417,
"y": 1333,
"w": 153,
"h": 222,
"ox": 0,
"oy": 0,
"sw": 153,
"sh": 222,
"ro": true
},
"num9.png": {
"x": 1641,
"y": 1400,
"w": 153,
"h": 222,
"ox": 0,
"oy": 0,
"sw": 153,
"sh": 222,
"ro": true
},
"numb2.png": {
"x": 1384,
"y": 1488,
"w": 155,
"h": 222,
"ox": 0,
"oy": 0,
"sw": 155,
"sh": 222,
"ro": true
},
"numb5.png": {
"x": 1384,
"y": 1645,
"w": 148,
"h": 222,
"ox": 0,
"oy": 0,
"sw": 148,
"sh": 222,
"ro": false
},
"numb6.png": {
"x": 1534,
"y": 1645,
"w": 153,
"h": 222,
"ox": 0,
"oy": 0,
"sw": 153,
"sh": 222,
"ro": false
},
"numb9.png": {
"x": 1689,
"y": 1555,
"w": 153,
"h": 222,
"ox": 0,
"oy": 0,
"sw": 153,
"sh": 222,
"ro": true
},
"num1.png": {
"x": 1830,
"y": 705,
"w": 94,
"h": 218,
"ox": 0,
"oy": 0,
"sw": 94,
"sh": 218,
"ro": false
},
"num4.png": {
"x": 2,
"y": 1872,
"w": 162,
"h": 218,
"ox": 0,
"oy": 0,
"sw": 162,
"sh": 218,
"ro": true
},
"num7.png": {
"x": 382,
"y": 1869,
"w": 163,
"h": 218,
"ox": 0,
"oy": 0,
"sw": 163,
"sh": 218,
"ro": true
},
"numb1.png": {
"x": 1131,
"y": 1808,
"w": 94,
"h": 218,
"ox": 0,
"oy": 0,
"sw": 94,
"sh": 218,
"ro": false
},
"numb4.png": {
"x": 1227,
"y": 1869,
"w": 162,
"h": 218,
"ox": 0,
"oy": 0,
"sw": 162,
"sh": 218,
"ro": true
},
"numb7.png": {
"x": 1447,
"y": 1869,
"w": 163,
"h": 218,
"ox": 0,
"oy": 0,
"sw": 163,
"sh": 218,
"ro": true
},
"numbp.png": {
"x": 1811,
"y": 925,
"w": 118,
"h": 128,
"ox": 0,
"oy": 0,
"sw": 118,
"sh": 128,
"ro": true
},
"nump.png": {
"x": 1798,
"y": 1045,
"w": 118,
"h": 128,
"ox": 0,
"oy": 0,
"sw": 118,
"sh": 128,
"ro": false
}
}
}, },
{ {
"keys": "confirm-btn.png,prize-back.png", "keys": "confirm-btn.png,prize-back.png",
"name": "PrizeShowPanel" "name": "PrizeShowPanel",
"atlas": {
"prize-back.png": {
"x": 2,
"y": 2,
"w": 590,
"h": 741,
"ox": 0,
"oy": 0,
"sw": 590,
"sh": 741,
"ro": false
},
"confirm-btn.png": {
"x": 594,
"y": 2,
"w": 510,
"h": 94,
"ox": 0,
"oy": 0,
"sw": 510,
"sh": 94,
"ro": true
}
}
}, },
{ {
"keys": "12b9628f-0c5a-49be-9f00-c7f62387cec7.png,261235a9-61cf-40fb-af98-cdf1ced9778b.png,28cede68-743e-4d46-a055-d6e8736aab5a.png,333eac73-d4e6-4da1-a213-8c81ca234caa.png,40386850-f496-4fe2-bb14-aec96c1a8b61.png,43460abf-48cd-43dd-9e72-e465954608b7.png,446f4c57-072a-438f-bbf2-b3e399e2eba3.png,458845e6-748b-4a52-89ff-79c3bd59ca91.png,4c550308-e250-4bef-925c-e985bb61c4ff.png,5a9a15c8-17bf-44d7-8ffa-fd9633bb1ce3.png,5c80f674-ba5f-40c2-9c90-2efefd60417d.png,5eebb359-b49b-4451-afd6-e07b434c4c03.png,67c83ee1-83eb-4642-9f74-0eee9888fd91.png,8cd45674-a8f4-41a5-8917-6913e1321deb.png,af0c1ed5-6e1c-4969-98fd-f78f1b4264a2.png,b7cfbac8-199e-4f7c-bfb5-4d60bd213b32.png,c0880282-4472-4478-8237-938cf998e4b6.png,c8f20379-7b70-4b48-9900-4b0063446622.png,e344aae7-0859-4e1f-b814-289825f71a8d.png,f43c377b-156e-435f-a830-95e668901412.png,fef72c71-217c-47c2-9428-576069f1e6b1.png", "keys": "12b9628f-0c5a-49be-9f00-c7f62387cec7.png,261235a9-61cf-40fb-af98-cdf1ced9778b.png,28cede68-743e-4d46-a055-d6e8736aab5a.png,333eac73-d4e6-4da1-a213-8c81ca234caa.png,40386850-f496-4fe2-bb14-aec96c1a8b61.png,43460abf-48cd-43dd-9e72-e465954608b7.png,446f4c57-072a-438f-bbf2-b3e399e2eba3.png,458845e6-748b-4a52-89ff-79c3bd59ca91.png,4c550308-e250-4bef-925c-e985bb61c4ff.png,5a9a15c8-17bf-44d7-8ffa-fd9633bb1ce3.png,5c80f674-ba5f-40c2-9c90-2efefd60417d.png,5eebb359-b49b-4451-afd6-e07b434c4c03.png,67c83ee1-83eb-4642-9f74-0eee9888fd91.png,8cd45674-a8f4-41a5-8917-6913e1321deb.png,af0c1ed5-6e1c-4969-98fd-f78f1b4264a2.png,b7cfbac8-199e-4f7c-bfb5-4d60bd213b32.png,c0880282-4472-4478-8237-938cf998e4b6.png,c8f20379-7b70-4b48-9900-4b0063446622.png,e344aae7-0859-4e1f-b814-289825f71a8d.png,f43c377b-156e-435f-a830-95e668901412.png,fef72c71-217c-47c2-9428-576069f1e6b1.png",
"name": "balance_guidance" "name": "balance_guidance",
"atlas": {
"5a9a15c8-17bf-44d7-8ffa-fd9633bb1ce3.png": {
"x": 2,
"y": 2,
"w": 186,
"h": 124,
"ox": 0,
"oy": 0,
"sw": 186,
"sh": 124,
"ro": false
},
"c0880282-4472-4478-8237-938cf998e4b6.png": {
"x": 2,
"y": 128,
"w": 186,
"h": 127,
"ox": 0,
"oy": 0,
"sw": 186,
"sh": 127,
"ro": false
},
"f43c377b-156e-435f-a830-95e668901412.png": {
"x": 190,
"y": 2,
"w": 185,
"h": 122,
"ox": 0,
"oy": 0,
"sw": 185,
"sh": 122,
"ro": true
},
"fef72c71-217c-47c2-9428-576069f1e6b1.png": {
"x": 2,
"y": 257,
"w": 185,
"h": 129,
"ox": 0,
"oy": 1,
"sw": 185,
"sh": 130,
"ro": false
},
"333eac73-d4e6-4da1-a213-8c81ca234caa.png": {
"x": 314,
"y": 2,
"w": 182,
"h": 134,
"ox": 0,
"oy": 0,
"sw": 182,
"sh": 134,
"ro": true
},
"446f4c57-072a-438f-bbf2-b3e399e2eba3.png": {
"x": 189,
"y": 257,
"w": 182,
"h": 125,
"ox": 0,
"oy": 0,
"sw": 182,
"sh": 125,
"ro": false
},
"4c550308-e250-4bef-925c-e985bb61c4ff.png": {
"x": 2,
"y": 388,
"w": 92,
"h": 182,
"ox": 0,
"oy": 0,
"sw": 92,
"sh": 182,
"ro": true
},
"e344aae7-0859-4e1f-b814-289825f71a8d.png": {
"x": 189,
"y": 384,
"w": 94,
"h": 182,
"ox": 0,
"oy": 0,
"sw": 94,
"sh": 182,
"ro": true
},
"b7cfbac8-199e-4f7c-bfb5-4d60bd213b32.png": {
"x": 450,
"y": 2,
"w": 94,
"h": 181,
"ox": 0,
"oy": 0,
"sw": 94,
"sh": 181,
"ro": false
},
"12b9628f-0c5a-49be-9f00-c7f62387cec7.png": {
"x": 373,
"y": 186,
"w": 179,
"h": 126,
"ox": 0,
"oy": 0,
"sw": 179,
"sh": 126,
"ro": true
},
"28cede68-743e-4d46-a055-d6e8736aab5a.png": {
"x": 2,
"y": 482,
"w": 177,
"h": 129,
"ox": 0,
"oy": 0,
"sw": 177,
"sh": 129,
"ro": false
},
"40386850-f496-4fe2-bb14-aec96c1a8b61.png": {
"x": 373,
"y": 367,
"w": 177,
"h": 137,
"ox": 0,
"oy": 0,
"sw": 177,
"sh": 137,
"ro": true
},
"458845e6-748b-4a52-89ff-79c3bd59ca91.png": {
"x": 546,
"y": 2,
"w": 177,
"h": 142,
"ox": 0,
"oy": 0,
"sw": 177,
"sh": 142,
"ro": true
},
"5c80f674-ba5f-40c2-9c90-2efefd60417d.png": {
"x": 181,
"y": 482,
"w": 177,
"h": 129,
"ox": 0,
"oy": 0,
"sw": 177,
"sh": 129,
"ro": false
},
"8cd45674-a8f4-41a5-8917-6913e1321deb.png": {
"x": 546,
"y": 181,
"w": 177,
"h": 141,
"ox": 0,
"oy": 0,
"sw": 177,
"sh": 141,
"ro": true
},
"af0c1ed5-6e1c-4969-98fd-f78f1b4264a2.png": {
"x": 512,
"y": 360,
"w": 98,
"h": 174,
"ox": 0,
"oy": 0,
"sw": 98,
"sh": 174,
"ro": true
},
"c8f20379-7b70-4b48-9900-4b0063446622.png": {
"x": 512,
"y": 460,
"w": 170,
"h": 151,
"ox": 0,
"oy": 0,
"sw": 170,
"sh": 151,
"ro": false
},
"261235a9-61cf-40fb-af98-cdf1ced9778b.png": {
"x": 2,
"y": 613,
"w": 100,
"h": 163,
"ox": 0,
"oy": 0,
"sw": 100,
"sh": 163,
"ro": true
},
"43460abf-48cd-43dd-9e72-e465954608b7.png": {
"x": 167,
"y": 613,
"w": 106,
"h": 94,
"ox": 0,
"oy": 0,
"sw": 106,
"sh": 94,
"ro": false
},
"5eebb359-b49b-4451-afd6-e07b434c4c03.png": {
"x": 275,
"y": 613,
"w": 106,
"h": 94,
"ox": 0,
"oy": 0,
"sw": 106,
"sh": 94,
"ro": false
},
"67c83ee1-83eb-4642-9f74-0eee9888fd91.png": {
"x": 383,
"y": 613,
"w": 106,
"h": 95,
"ox": 0,
"oy": 0,
"sw": 106,
"sh": 95,
"ro": false
}
}
}, },
{ {
"keys": "back.png,back_jordan.png,comCloseBtn.png,com_light.png,toastBg.png,waitingBg.png,waitingRot.png,跳过按钮.png", "keys": "back.png,back_jordan.png,comCloseBtn.png,com_light.png,music-off.png,music-on.png,toastBg.png,waitingBg.png,waitingRot.png,跳过按钮.png",
"name": "common" "name": "common",
"atlas": {
"back.png": {
"x": 2,
"y": 2,
"w": 750,
"h": 1624,
"ox": 0,
"oy": 0,
"sw": 750,
"sh": 1624,
"ro": false
},
"back_jordan.png": {
"x": 754,
"y": 2,
"w": 750,
"h": 1624,
"ox": 0,
"oy": 0,
"sw": 750,
"sh": 1624,
"ro": false
},
"com_light.png": {
"x": 1506,
"y": 2,
"w": 746,
"h": 756,
"ox": 0,
"oy": 0,
"sw": 746,
"sh": 756,
"ro": false
},
"toastBg.png": {
"x": 1506,
"y": 760,
"w": 460,
"h": 130,
"ox": 0,
"oy": 0,
"sw": 460,
"sh": 130,
"ro": false
},
"waitingBg.png": {
"x": 1968,
"y": 760,
"w": 160,
"h": 180,
"ox": 0,
"oy": 0,
"sw": 160,
"sh": 180,
"ro": true
},
"跳过按钮.png": {
"x": 2150,
"y": 760,
"w": 123,
"h": 57,
"ox": 0,
"oy": 0,
"sw": 123,
"sh": 57,
"ro": true
},
"comCloseBtn.png": {
"x": 2150,
"y": 885,
"w": 72,
"h": 72,
"ox": 0,
"oy": 0,
"sw": 72,
"sh": 72,
"ro": false
},
"music-off.png": {
"x": 1506,
"y": 892,
"w": 60,
"h": 60,
"ox": 0,
"oy": 0,
"sw": 60,
"sh": 60,
"ro": false
},
"music-on.png": {
"x": 1568,
"y": 892,
"w": 60,
"h": 60,
"ox": 0,
"oy": 0,
"sw": 60,
"sh": 60,
"ro": false
},
"waitingRot.png": {
"x": 1630,
"y": 892,
"w": 56,
"h": 56,
"ox": 0,
"oy": 0,
"sw": 56,
"sh": 56,
"ro": false
}
}
}, },
{ {
"keys": "p1.png,p10.png,p11.png,p12.png,p13.png,p14.png,p15.png,p16.png,p17.png,p18.png,p19.png,p2.png,p20.png,p3.png,p4.png,p5.png,p6.png,p7.png,p8.png,p9.png", "keys": "p1.png,p10.png,p11.png,p12.png,p13.png,p14.png,p15.png,p16.png,p17.png,p18.png,p19.png,p2.png,p20.png,p3.png,p4.png,p5.png,p6.png,p7.png,p8.png,p9.png",
"name": "jordan_eles" "name": "jordan_eles",
"atlas": {
"p13.png": {
"x": 2,
"y": 2,
"w": 438,
"h": 410,
"ox": 0,
"oy": 0,
"sw": 438,
"sh": 410,
"ro": false
},
"p4.png": {
"x": 2,
"y": 414,
"w": 343,
"h": 438,
"ox": 0,
"oy": 0,
"sw": 343,
"sh": 438,
"ro": true
},
"p6.png": {
"x": 442,
"y": 2,
"w": 425,
"h": 377,
"ox": 0,
"oy": 0,
"sw": 425,
"sh": 377,
"ro": true
},
"p17.png": {
"x": 2,
"y": 759,
"w": 416,
"h": 298,
"ox": 0,
"oy": 0,
"sw": 416,
"sh": 298,
"ro": false
},
"p9.png": {
"x": 442,
"y": 429,
"w": 410,
"h": 299,
"ox": 0,
"oy": 0,
"sw": 410,
"sh": 299,
"ro": true
},
"p15.png": {
"x": 821,
"y": 2,
"w": 401,
"h": 373,
"ox": 0,
"oy": 0,
"sw": 401,
"sh": 373,
"ro": true
},
"p5.png": {
"x": 821,
"y": 405,
"w": 337,
"h": 397,
"ox": 0,
"oy": 0,
"sw": 337,
"sh": 397,
"ro": false
},
"p18.png": {
"x": 2,
"y": 1059,
"w": 270,
"h": 394,
"ox": 0,
"oy": 0,
"sw": 270,
"sh": 394,
"ro": true
},
"p10.png": {
"x": 743,
"y": 804,
"w": 390,
"h": 367,
"ox": 0,
"oy": 0,
"sw": 390,
"sh": 367,
"ro": false
},
"p19.png": {
"x": 420,
"y": 841,
"w": 272,
"h": 390,
"ox": 0,
"oy": 0,
"sw": 272,
"sh": 390,
"ro": false
},
"p12.png": {
"x": 1196,
"y": 2,
"w": 345,
"h": 387,
"ox": 0,
"oy": 0,
"sw": 345,
"sh": 387,
"ro": false
},
"p8.png": {
"x": 1135,
"y": 804,
"w": 382,
"h": 318,
"ox": 0,
"oy": 0,
"sw": 382,
"sh": 318,
"ro": false
},
"p7.png": {
"x": 1160,
"y": 405,
"w": 381,
"h": 332,
"ox": 0,
"oy": 0,
"sw": 381,
"sh": 332,
"ro": false
},
"p3.png": {
"x": 2,
"y": 1331,
"w": 374,
"h": 380,
"ox": 0,
"oy": 0,
"sw": 374,
"sh": 380,
"ro": true
},
"p2.png": {
"x": 1135,
"y": 1124,
"w": 378,
"h": 342,
"ox": 0,
"oy": 0,
"sw": 378,
"sh": 342,
"ro": false
},
"p14.png": {
"x": 384,
"y": 1331,
"w": 373,
"h": 333,
"ox": 0,
"oy": 0,
"sw": 373,
"sh": 333,
"ro": true
},
"p1.png": {
"x": 719,
"y": 1173,
"w": 324,
"h": 372,
"ox": 0,
"oy": 0,
"sw": 324,
"sh": 372,
"ro": true
},
"p16.png": {
"x": 1543,
"y": 2,
"w": 251,
"h": 371,
"ox": 0,
"oy": 0,
"sw": 251,
"sh": 371,
"ro": false
},
"p11.png": {
"x": 2,
"y": 1707,
"w": 326,
"h": 356,
"ox": 0,
"oy": 0,
"sw": 326,
"sh": 356,
"ro": true
},
"p20.png": {
"x": 360,
"y": 1707,
"w": 300,
"h": 343,
"ox": 0,
"oy": 0,
"sw": 300,
"sh": 343,
"ro": true
}
}
}, },
{ {
"keys": "p1.png,p10.png,p11.png,p12.png,p13.png,p14.png,p15.png,p16.png,p17.png,p18.png,p19.png,p2.png,p20.png,p3.png,p4.png,p5.png,p6.png,p7.png,p8.png,p9.png", "keys": "p1.png,p10.png,p11.png,p12.png,p13.png,p14.png,p15.png,p16.png,p17.png,p18.png,p19.png,p2.png,p20.png,p3.png,p4.png,p5.png,p6.png,p7.png,p8.png,p9.png",
"name": "nike_eles" "name": "nike_eles",
"atlas": {
"p13.png": {
"x": 2,
"y": 2,
"w": 438,
"h": 410,
"ox": 0,
"oy": 0,
"sw": 438,
"sh": 410,
"ro": false
},
"p4.png": {
"x": 2,
"y": 414,
"w": 343,
"h": 438,
"ox": 0,
"oy": 0,
"sw": 343,
"sh": 438,
"ro": true
},
"p6.png": {
"x": 442,
"y": 2,
"w": 425,
"h": 377,
"ox": 0,
"oy": 0,
"sw": 425,
"sh": 377,
"ro": true
},
"p17.png": {
"x": 2,
"y": 759,
"w": 416,
"h": 298,
"ox": 0,
"oy": 0,
"sw": 416,
"sh": 298,
"ro": false
},
"p9.png": {
"x": 442,
"y": 429,
"w": 410,
"h": 299,
"ox": 0,
"oy": 0,
"sw": 410,
"sh": 299,
"ro": true
},
"p15.png": {
"x": 821,
"y": 2,
"w": 401,
"h": 373,
"ox": 0,
"oy": 0,
"sw": 401,
"sh": 373,
"ro": true
},
"p5.png": {
"x": 821,
"y": 405,
"w": 337,
"h": 397,
"ox": 0,
"oy": 0,
"sw": 337,
"sh": 397,
"ro": false
},
"p18.png": {
"x": 2,
"y": 1059,
"w": 270,
"h": 394,
"ox": 0,
"oy": 0,
"sw": 270,
"sh": 394,
"ro": true
},
"p10.png": {
"x": 743,
"y": 804,
"w": 390,
"h": 367,
"ox": 0,
"oy": 0,
"sw": 390,
"sh": 367,
"ro": false
},
"p19.png": {
"x": 420,
"y": 841,
"w": 272,
"h": 390,
"ox": 0,
"oy": 0,
"sw": 272,
"sh": 390,
"ro": false
},
"p12.png": {
"x": 1196,
"y": 2,
"w": 345,
"h": 387,
"ox": 0,
"oy": 0,
"sw": 345,
"sh": 387,
"ro": false
},
"p8.png": {
"x": 1135,
"y": 804,
"w": 382,
"h": 318,
"ox": 0,
"oy": 0,
"sw": 382,
"sh": 318,
"ro": false
},
"p7.png": {
"x": 1160,
"y": 405,
"w": 381,
"h": 332,
"ox": 0,
"oy": 0,
"sw": 381,
"sh": 332,
"ro": false
},
"p3.png": {
"x": 2,
"y": 1331,
"w": 374,
"h": 380,
"ox": 0,
"oy": 0,
"sw": 374,
"sh": 380,
"ro": true
},
"p2.png": {
"x": 1135,
"y": 1124,
"w": 378,
"h": 342,
"ox": 0,
"oy": 0,
"sw": 378,
"sh": 342,
"ro": false
},
"p14.png": {
"x": 384,
"y": 1331,
"w": 373,
"h": 333,
"ox": 0,
"oy": 0,
"sw": 373,
"sh": 333,
"ro": true
},
"p1.png": {
"x": 719,
"y": 1173,
"w": 324,
"h": 372,
"ox": 0,
"oy": 0,
"sw": 324,
"sh": 372,
"ro": true
},
"p16.png": {
"x": 1543,
"y": 2,
"w": 251,
"h": 371,
"ox": 0,
"oy": 0,
"sw": 251,
"sh": 371,
"ro": false
},
"p11.png": {
"x": 2,
"y": 1707,
"w": 326,
"h": 356,
"ox": 0,
"oy": 0,
"sw": 326,
"sh": 356,
"ro": true
},
"p20.png": {
"x": 360,
"y": 1707,
"w": 300,
"h": 343,
"ox": 0,
"oy": 0,
"sw": 300,
"sh": 343,
"ro": true
}
}
} }
], ],
"path": "./resource/" "path": "https://yun.duiba.com.cn/db_games/activity/template/1629098344/resource/"
} }
\ No newline at end of file
...@@ -49,7 +49,7 @@ export class GameOverPanel extends Panel { ...@@ -49,7 +49,7 @@ export class GameOverPanel extends Panel {
this.hidePanel() this.hidePanel()
// @ts-ignore // @ts-ignore
my && my.showToast({ my && my.showToast({
content: '很遗憾,谢谢参与' content: '很遗憾,您未中奖'
}) })
changeScene(GameOverScene, this.data) changeScene(GameOverScene, this.data)
} }
......
...@@ -54,8 +54,8 @@ export class GameOverScene extends Scene { ...@@ -54,8 +54,8 @@ export class GameOverScene extends Scene {
_s.addEventListener(FYGE.MouseEvent.CLICK, function() { _s.addEventListener(FYGE.MouseEvent.CLICK, function() {
this.btnDelay(this) this.btnDelay(this)
addData(8) addData(8)
// todo //@ts-ignore
console.log('回到主场') my && my.exit()
}, this) }, this)
_s.anchorTexture.set(0.5, 0.5) _s.anchorTexture.set(0.5, 0.5)
......
...@@ -12,6 +12,7 @@ import { RES } from '../../../module/RES'; ...@@ -12,6 +12,7 @@ import { RES } from '../../../module/RES';
import { sendTbNet, TbNetName } from '../../TaoBaoNet'; import { sendTbNet, TbNetName } from '../../TaoBaoNet';
import { GameOverScene } from '../GameOverScene/GameOverScene'; import { GameOverScene } from '../GameOverScene/GameOverScene';
import { GameOverPanel } from '../../panels/GameOverPanel'; import { GameOverPanel } from '../../panels/GameOverPanel';
import MusicBtn from '../../common/MusicBtn';
const Container = FYGE.Container const Container = FYGE.Container
const TEXT_ALIGN = FYGE.TEXT_ALIGN const TEXT_ALIGN = FYGE.TEXT_ALIGN
...@@ -114,15 +115,28 @@ export class GameScene extends MotionInitScene { ...@@ -114,15 +115,28 @@ export class GameScene extends MotionInitScene {
set score(n: number) { set score(n: number) {
this._score = n; this._score = n;
(this.scoreText || (this.scoreText = UI.Txt(this, '连续完成: ' + n, 40, '#111111', FYGE.TEXT_ALIGN.CENTER, layers.stageWidth, 0, layers.stageOffsetY + 200, true))).text = '连续完成: '+n if (!this.scoreText) {
this.scoreText = UI.Txt(this, '连续完成: ' + n, 40, '#111111', FYGE.TEXT_ALIGN.CENTER, layers.stageWidth, 0, layers.stageOffsetY + 200, true)
this.scoreText.mouseEnable = false
}
this.scoreText.text = '连续完成: '+n
} }
get score() { get score() {
return this._score return this._score
} }
musicStatus: boolean = true
musicBtn: FYGE.Button
async initUi() { async initUi() {
UI.Sp(this, this.isJordan ? 'back_jordan.png' : 'back.png') UI.Sp(this, this.isJordan ? 'back_jordan.png' : 'back.png')
this.musicBtn = UI.Btn(this, 'music-on.png', this.onMusicClick, this, 600, layers.stageOffsetY + 200)
FYGE.Tween.get(this.musicBtn, {loop: true})
.to({rotation: 360}, 5000)
this.musicBtn.anchorX = 30
this.musicBtn.anchorY = 30
this.score = 0 this.score = 0
...@@ -133,6 +147,10 @@ export class GameScene extends MotionInitScene { ...@@ -133,6 +147,10 @@ export class GameScene extends MotionInitScene {
DeviceMotion.instance.destory() DeviceMotion.instance.destory()
this.gameEle && this.gameEle.freeze() this.gameEle && this.gameEle.freeze()
FYGE.Tween.removeAllTweens() FYGE.Tween.removeAllTweens()
// 关闭背景
sendTbNet(TbNetName.openMusic, {
isOn: false
})
//@ts-ignore //@ts-ignore
this.onSubmit({ this.onSubmit({
id: Tools.globalData.startId, id: Tools.globalData.startId,
...@@ -144,6 +162,21 @@ export class GameScene extends MotionInitScene { ...@@ -144,6 +162,21 @@ export class GameScene extends MotionInitScene {
super.initUi() super.initUi()
} }
onMusicClick() {
this.musicStatus = !this.musicStatus
this.musicBtn.changeTexture(this.musicStatus ? RES.getRes('music-on.png') : RES.getRes('music-off.png'))
if (this.musicStatus) {
FYGE.Tween.get(this.musicBtn, {loop: true})
.to({rotation: 360}, 5000)
} else {
FYGE.Tween.removeTweens(this.musicBtn)
this.musicBtn.rotation = 0
}
sendTbNet(TbNetName.openMusic, {
isOn: this.musicStatus
})
}
initGame() { initGame() {
this.cdp.start() this.cdp.start()
...@@ -182,8 +215,11 @@ export class GameScene extends MotionInitScene { ...@@ -182,8 +215,11 @@ export class GameScene extends MotionInitScene {
this.cdp.start() this.cdp.start()
} }
descText: FYGE.TextField
initEvents() { initEvents() {
DeviceMotion.instance.notify((res) => {
(this.descText || (this.descText = UI.Txt(this, `alpha:${res.alpha.toFixed(2)}, beta: ${res.beta.toFixed(2)}, gamma: ${res.gamma.toFixed(2)}`, 32, '#111111', FYGE.TEXT_ALIGN.CENTER, layers.stageWidth, 0, layers.stageOffsetY + 100))).text = `alpha:${res.alpha.toFixed(2)}, beta: ${res.beta.toFixed(2)}, gamma: ${res.gamma.toFixed(2)}`
})
} }
removeEvents() { removeEvents() {
...@@ -201,7 +237,6 @@ export class GameEle extends Container { ...@@ -201,7 +237,6 @@ export class GameEle extends Container {
resisteAcc:number = GameCfg.resisteAcc // 摩擦力加速度 resisteAcc:number = GameCfg.resisteAcc // 摩擦力加速度
k: number // 旋转角度和和中心点距离的系数 k: number // 旋转角度和和中心点距离的系数
isIn: boolean // 是否在中心范围内 isIn: boolean // 是否在中心范围内
lastLen: number // 上一次的距离
fixedCenter: pos // 判断点坐标 fixedCenter: pos // 判断点坐标
finishFunc: Function // success callback finishFunc: Function // success callback
......
...@@ -38,8 +38,8 @@ export class NewGuyScene extends MotionInitScene { ...@@ -38,8 +38,8 @@ export class NewGuyScene extends MotionInitScene {
g1: FYGE.Sprite g1: FYGE.Sprite
initGame() { initGame() {
this.g1 = UI.Sp(this, 'guidance-t1.png', layers.stageCenterX, layers.stageCenterY + 400) // this.g1 = UI.Sp(this, 'guidance-t1.png', layers.stageCenterX, layers.stageCenterY + 400)
this.g1.anchorTexture.set(0.5, 0.5) // this.g1.anchorTexture.set(0.5, 0.5)
var e = this.addChild(new GameEle('p1.png', this.centerp, async () => { var e = this.addChild(new GameEle('p1.png', this.centerp, async () => {
const {success} = await sendTbNet(TbNetName.complteGuidance) const {success} = await sendTbNet(TbNetName.complteGuidance)
...@@ -48,7 +48,7 @@ export class NewGuyScene extends MotionInitScene { ...@@ -48,7 +48,7 @@ export class NewGuyScene extends MotionInitScene {
} }
shoot() { shoot() {
this.g1.visible = false this.g1 && (this.g1.visible = false)
this.desc && (this.desc.visible = false) this.desc && (this.desc.visible = false)
} }
......
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