Commit a0a10508 authored by Master Q's avatar Master Q

游戏

parent 39dfa31b
import { NewGuyScene } from './scenes/NewGuyScene/NewGuyScene';
import { destroyLayers, layers } from "../module/views/layers";
import { RES } from "../module/RES";
import { changeScene, destroyAllCtrls, showToast } from "../module/ctrls";
......@@ -8,9 +9,6 @@ import { destroyTbNetData, sendTbNet, TbNetName } from "./TaoBaoNet";
import { SkinJson } from "./SkinJson";
import { G_EVENT } from "./common/G_EVENT";
import { Tools } from "./Tools";
import { GameScene } from "./scenes/GameScene/GameScene";
import { cusPlaySound, Soundurl, stopAllSound } from "./SoundWeb";
import { NewGuyScene } from "./scenes/NewGuyScene/NewGuyScene";
import { GameOverScene } from "./scenes/GameOverScene/GameOverScene";
/**
......@@ -177,14 +175,14 @@ export class Main {
// }
// const scene = Tools.globalData.newUser ? StoryScene : IndexScene;
// , {
// score: 45,
// isNewRecord: true,
// productLink: 'http://qnpic.top/yoona2.jpg',
// isWinPrize: false
// }
// vtodo 是否是新手
changeScene(GameScene);
changeScene(NewGuyScene, {
score: 45,
isNewRecord: true,
productLink: 'http://qnpic.top/yoona2.jpg',
isWinPrize: false
});
// MusicBtn.changeMusicStatus(true); // TODO 进游戏打开音乐先
......
......@@ -2,24 +2,903 @@ export const ResJson = {
"groups": [
{
"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,more-btn.png,new-record-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
},
"new-record-icon.png": {
"x": 134,
"y": 246,
"w": 102,
"h": 37,
"ox": 0,
"oy": 0,
"sw": 102,
"sh": 37,
"ro": false
}
}
},
{
"keys": "back_index.png,gg_back.png,one_more-btn.png",
"name": "GameOverPanel"
"name": "GameOverPanel",
"atlas": {
"gg_back.png": {
"x": 2,
"y": 2,
"w": 667,
"h": 578,
"ox": 0,
"oy": 1,
"sw": 666,
"sh": 579,
"ro": false
},
"back_index.png": {
"x": 2,
"y": 582,
"w": 254,
"h": 74,
"ox": 0,
"oy": 0,
"sw": 254,
"sh": 74,
"ro": false
},
"one_more-btn.png": {
"x": 2,
"y": 658,
"w": 254,
"h": 75,
"ox": 0,
"oy": 0,
"sw": 254,
"sh": 75,
"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,p1.png,p10-b.png,p10.png,p11-b.png,p11.png,p12-b.png,p12.png,p13-b.png,p13.png,p14-b.png,p14.png,p15-b.png,p15.png,p16-b.png,p16.png,p17-b.png,p17.png,p18-b.png,p18.png,p19-b.png,p19.png,p2-b.png,p2.png,p20-b.png,p20.png,p3-b.png,p3.png,p4-b.png,p4.png,p5-b.png,p5.png,p6-b.png,p6.png,p7-b.png,p7.png,p8-b.png,p8.png,p9-b.png,p9.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
},
"p12-b.png": {
"x": 2,
"y": 187,
"w": 335,
"h": 535,
"ox": 0,
"oy": 0,
"sw": 335,
"sh": 535,
"ro": true
},
"p12.png": {
"x": 2,
"y": 524,
"w": 335,
"h": 535,
"ox": 0,
"oy": 0,
"sw": 335,
"sh": 535,
"ro": true
},
"p20-b.png": {
"x": 578,
"y": 2,
"w": 287,
"h": 535,
"ox": 0,
"oy": 0,
"sw": 287,
"sh": 535,
"ro": false
},
"p20.png": {
"x": 2,
"y": 861,
"w": 287,
"h": 535,
"ox": 0,
"oy": 0,
"sw": 287,
"sh": 535,
"ro": true
},
"p11-b.png": {
"x": 867,
"y": 2,
"w": 496,
"h": 533,
"ox": 0,
"oy": 0,
"sw": 496,
"sh": 533,
"ro": false
},
"p11.png": {
"x": 867,
"y": 537,
"w": 496,
"h": 533,
"ox": 0,
"oy": 0,
"sw": 496,
"sh": 533,
"ro": false
},
"p13-b.png": {
"x": 2,
"y": 1150,
"w": 421,
"h": 533,
"ox": 0,
"oy": 0,
"sw": 421,
"sh": 533,
"ro": true
},
"p13.png": {
"x": 537,
"y": 1150,
"w": 421,
"h": 533,
"ox": 0,
"oy": 0,
"sw": 421,
"sh": 533,
"ro": true
},
"balance_guidance.png": {
"x": 539,
"y": 539,
"w": 258,
"h": 532,
"ox": 0,
"oy": 0,
"sw": 258,
"sh": 532,
"ro": false
},
"p3-b.png": {
"x": 1365,
"y": 2,
"w": 532,
"h": 520,
"ox": 0,
"oy": 0,
"sw": 532,
"sh": 520,
"ro": true
},
"p3.png": {
"x": 1365,
"y": 536,
"w": 532,
"h": 520,
"ox": 0,
"oy": 0,
"sw": 532,
"sh": 520,
"ro": true
},
"p9-b.png": {
"x": 1072,
"y": 1072,
"w": 487,
"h": 532,
"ox": 0,
"oy": 0,
"sw": 487,
"sh": 532,
"ro": true
},
"p9.png": {
"x": 2,
"y": 1573,
"w": 487,
"h": 532,
"ox": 0,
"oy": 0,
"sw": 487,
"sh": 532,
"ro": true
},
"p4-b.png": {
"x": 1072,
"y": 1561,
"w": 499,
"h": 531,
"ox": 0,
"oy": 0,
"sw": 499,
"sh": 531,
"ro": true
},
"p4.png": {
"x": 1605,
"y": 1561,
"w": 499,
"h": 531,
"ox": 0,
"oy": 0,
"sw": 499,
"sh": 531,
"ro": true
},
"p6-b.png": {
"x": 536,
"y": 1573,
"w": 526,
"h": 368,
"ox": 0,
"oy": 0,
"sw": 526,
"sh": 368,
"ro": false
},
"p6.png": {
"x": 1606,
"y": 1070,
"w": 526,
"h": 368,
"ox": 0,
"oy": 0,
"sw": 526,
"sh": 368,
"ro": false
},
"p2-b.png": {
"x": 2,
"y": 2062,
"w": 524,
"h": 518,
"ox": 0,
"oy": 0,
"sw": 524,
"sh": 518,
"ro": false
},
"p2.png": {
"x": 528,
"y": 2062,
"w": 524,
"h": 518,
"ox": 0,
"oy": 0,
"sw": 524,
"sh": 518,
"ro": false
},
"p18-b.png": {
"x": 1887,
"y": 2,
"w": 270,
"h": 521,
"ox": 0,
"oy": 0,
"sw": 270,
"sh": 521,
"ro": false
},
"p18.png": {
"x": 1887,
"y": 525,
"w": 270,
"h": 521,
"ox": 0,
"oy": 0,
"sw": 270,
"sh": 521,
"ro": false
},
"p10-b.png": {
"x": 1054,
"y": 2062,
"w": 502,
"h": 513,
"ox": 0,
"oy": 0,
"sw": 502,
"sh": 513,
"ro": false
},
"p10.png": {
"x": 1558,
"y": 2062,
"w": 502,
"h": 513,
"ox": 0,
"oy": 0,
"sw": 502,
"sh": 513,
"ro": false
},
"p5-b.png": {
"x": 2062,
"y": 2062,
"w": 460,
"h": 513,
"ox": 0,
"oy": 0,
"sw": 460,
"sh": 513,
"ro": false
},
"p5.png": {
"x": 2134,
"y": 1048,
"w": 460,
"h": 513,
"ox": 0,
"oy": 0,
"sw": 460,
"sh": 513,
"ro": true
},
"p15-b.png": {
"x": 2138,
"y": 1510,
"w": 499,
"h": 463,
"ox": 0,
"oy": 0,
"sw": 499,
"sh": 463,
"ro": true
},
"p15.png": {
"x": 2159,
"y": 2,
"w": 499,
"h": 463,
"ox": 0,
"oy": 0,
"sw": 499,
"sh": 463,
"ro": false
},
"p14-b.png": {
"x": 2159,
"y": 467,
"w": 438,
"h": 460,
"ox": 0,
"oy": 0,
"sw": 438,
"sh": 460,
"ro": false
},
"p14.png": {
"x": 2,
"y": 2582,
"w": 438,
"h": 460,
"ox": 0,
"oy": 0,
"sw": 438,
"sh": 460,
"ro": true
},
"p8-b.png": {
"x": 2524,
"y": 2011,
"w": 308,
"h": 460,
"ox": 0,
"oy": 0,
"sw": 308,
"sh": 460,
"ro": false
},
"p8.png": {
"x": 2524,
"y": 2473,
"w": 308,
"h": 460,
"ox": 0,
"oy": 0,
"sw": 308,
"sh": 460,
"ro": false
},
"p7-b.png": {
"x": 1054,
"y": 2577,
"w": 426,
"h": 443,
"ox": 0,
"oy": 0,
"sw": 426,
"sh": 443,
"ro": false
},
"p7.png": {
"x": 1482,
"y": 2577,
"w": 426,
"h": 443,
"ox": 0,
"oy": 0,
"sw": 426,
"sh": 443,
"ro": false
},
"p17-b.png": {
"x": 464,
"y": 2582,
"w": 434,
"h": 398,
"ox": 0,
"oy": 0,
"sw": 434,
"sh": 398,
"ro": true
},
"p17.png": {
"x": 1910,
"y": 2577,
"w": 434,
"h": 398,
"ox": 0,
"oy": 0,
"sw": 434,
"sh": 398,
"ro": true
},
"p19-b.png": {
"x": 2834,
"y": 2,
"w": 416,
"h": 364,
"ox": 0,
"oy": 0,
"sw": 416,
"sh": 364,
"ro": true
},
"p19.png": {
"x": 2834,
"y": 420,
"w": 416,
"h": 364,
"ox": 0,
"oy": 0,
"sw": 416,
"sh": 364,
"ro": true
},
"p16-b.png": {
"x": 2834,
"y": 838,
"w": 406,
"h": 360,
"ox": 0,
"oy": 0,
"sw": 406,
"sh": 360,
"ro": true
},
"p16.png": {
"x": 2834,
"y": 1246,
"w": 406,
"h": 360,
"ox": 0,
"oy": 0,
"sw": 406,
"sh": 360,
"ro": true
},
"p1-b.png": {
"x": 2834,
"y": 1654,
"w": 321,
"h": 368,
"ox": 0,
"oy": 0,
"sw": 321,
"sh": 368,
"ro": true
},
"p1.png": {
"x": 2834,
"y": 1977,
"w": 321,
"h": 368,
"ox": 0,
"oy": 0,
"sw": 321,
"sh": 368,
"ro": true
},
"num0.png": {
"x": 2603,
"y": 1510,
"w": 160,
"h": 226,
"ox": 0,
"oy": 0,
"sw": 160,
"sh": 226,
"ro": true
},
"num3.png": {
"x": 2603,
"y": 1672,
"w": 151,
"h": 226,
"ox": 0,
"oy": 0,
"sw": 151,
"sh": 226,
"ro": true
},
"num8.png": {
"x": 2603,
"y": 1825,
"w": 154,
"h": 226,
"ox": 0,
"oy": 0,
"sw": 154,
"sh": 226,
"ro": true
},
"numb0.png": {
"x": 2599,
"y": 467,
"w": 160,
"h": 226,
"ox": 0,
"oy": 0,
"sw": 160,
"sh": 226,
"ro": true
},
"numb3.png": {
"x": 2599,
"y": 629,
"w": 151,
"h": 226,
"ox": 0,
"oy": 0,
"sw": 151,
"sh": 226,
"ro": true
},
"numb8.png": {
"x": 2599,
"y": 782,
"w": 154,
"h": 226,
"ox": 0,
"oy": 0,
"sw": 154,
"sh": 226,
"ro": true
},
"num2.png": {
"x": 2660,
"y": 2,
"w": 155,
"h": 222,
"ox": 0,
"oy": 0,
"sw": 155,
"sh": 222,
"ro": false
},
"num5.png": {
"x": 2660,
"y": 226,
"w": 148,
"h": 222,
"ox": 0,
"oy": 0,
"sw": 148,
"sh": 222,
"ro": false
},
"num6.png": {
"x": 2649,
"y": 938,
"w": 153,
"h": 222,
"ox": 0,
"oy": 0,
"sw": 153,
"sh": 222,
"ro": false
},
"num9.png": {
"x": 2649,
"y": 1162,
"w": 153,
"h": 222,
"ox": 0,
"oy": 0,
"sw": 153,
"sh": 222,
"ro": false
},
"numb2.png": {
"x": 864,
"y": 2582,
"w": 155,
"h": 222,
"ox": 0,
"oy": 0,
"sw": 155,
"sh": 222,
"ro": false
},
"numb5.png": {
"x": 2310,
"y": 2577,
"w": 148,
"h": 222,
"ox": 0,
"oy": 0,
"sw": 148,
"sh": 222,
"ro": false
},
"numb6.png": {
"x": 2834,
"y": 2300,
"w": 153,
"h": 222,
"ox": 0,
"oy": 0,
"sw": 153,
"sh": 222,
"ro": true
},
"numb9.png": {
"x": 3058,
"y": 2300,
"w": 153,
"h": 222,
"ox": 0,
"oy": 0,
"sw": 153,
"sh": 222,
"ro": false
},
"num1.png": {
"x": 2310,
"y": 2801,
"w": 94,
"h": 218,
"ox": 0,
"oy": 0,
"sw": 94,
"sh": 218,
"ro": false
},
"num4.png": {
"x": 2834,
"y": 2455,
"w": 162,
"h": 218,
"ox": 0,
"oy": 0,
"sw": 162,
"sh": 218,
"ro": true
},
"num7.png": {
"x": 2834,
"y": 2619,
"w": 163,
"h": 218,
"ox": 0,
"oy": 0,
"sw": 163,
"sh": 218,
"ro": true
},
"numb1.png": {
"x": 2406,
"y": 2801,
"w": 94,
"h": 218,
"ox": 0,
"oy": 0,
"sw": 94,
"sh": 218,
"ro": false
},
"numb4.png": {
"x": 2834,
"y": 2784,
"w": 162,
"h": 218,
"ox": 0,
"oy": 0,
"sw": 162,
"sh": 218,
"ro": false
},
"numb7.png": {
"x": 2998,
"y": 2784,
"w": 163,
"h": 218,
"ox": 0,
"oy": 0,
"sw": 163,
"sh": 218,
"ro": false
},
"numbp.png": {
"x": 1606,
"y": 1440,
"w": 118,
"h": 128,
"ox": 0,
"oy": 0,
"sw": 118,
"sh": 128,
"ro": true
},
"nump.png": {
"x": 1736,
"y": 1440,
"w": 118,
"h": 128,
"ox": 0,
"oy": 0,
"sw": 118,
"sh": 128,
"ro": true
}
}
},
{
"keys": "back.png,comCloseBtn.png,com_light.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
},
"com_light.png": {
"x": 754,
"y": 2,
"w": 746,
"h": 756,
"ox": 0,
"oy": 0,
"sw": 746,
"sh": 756,
"ro": false
},
"toastBg.png": {
"x": 754,
"y": 760,
"w": 460,
"h": 130,
"ox": 0,
"oy": 0,
"sw": 460,
"sh": 130,
"ro": false
},
"waitingBg.png": {
"x": 1216,
"y": 760,
"w": 160,
"h": 180,
"ox": 0,
"oy": 0,
"sw": 160,
"sh": 180,
"ro": true
},
"跳过按钮.png": {
"x": 1398,
"y": 760,
"w": 123,
"h": 57,
"ox": 0,
"oy": 0,
"sw": 123,
"sh": 57,
"ro": true
},
"comCloseBtn.png": {
"x": 1398,
"y": 885,
"w": 72,
"h": 72,
"ox": 0,
"oy": 0,
"sw": 72,
"sh": 72,
"ro": false
},
"waitingRot.png": {
"x": 754,
"y": 892,
"w": 56,
"h": 56,
"ox": 0,
"oy": 0,
"sw": 56,
"sh": 56,
"ro": false
}
}
}
],
"path": "./resource/"
"path": "https://yun.duiba.com.cn/db_games/activity/template/1628512488/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