完整版首次更新

This commit is contained in:
YZ\249929363 2024-08-02 17:23:01 +08:00
parent d231d65e05
commit c8c06da1dd
305 changed files with 86777 additions and 80872 deletions

File diff suppressed because it is too large Load Diff

View File

@ -75,28 +75,28 @@
"__id__": 6
},
{
"__id__": 10
"__id__": 8
},
{
"__id__": 18
"__id__": 16
},
{
"__id__": 21
"__id__": 19
},
{
"__id__": 24
"__id__": 22
}
],
"_active": true,
"_components": [
{
"__id__": 28
},
{
"__id__": 29
},
{
"__id__": 30
},
{
"__id__": 31
},
{
"__id__": 32
}
],
"_prefab": null,
@ -270,9 +270,6 @@
"_components": [
{
"__id__": 7
},
{
"__id__": 8
}
],
"_prefab": null,
@ -355,90 +352,6 @@
"_atlas": null,
"_id": "52EGND0ndDGotGRX4hdp75"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.1,
"clickEvents": [
{
"__id__": 9
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 3,
"transition": 3,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 6
},
"_id": "5fQ0XX+HFAlq0Hihrzp10i"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 2
},
"component": "",
"_componentId": "454adgphRpA6oq5lB6Cg1fK",
"handler": "startGame",
"customEventData": ""
},
{
"__type__": "cc.Node",
"_name": "Rank",
@ -448,16 +361,16 @@
},
"_children": [
{
"__id__": 11
"__id__": 9
},
{
"__id__": 14
"__id__": 12
}
],
"_active": true,
"_components": [
{
"__id__": 16
"__id__": 14
}
],
"_prefab": null,
@ -513,16 +426,16 @@
"_name": "Background",
"_objFlags": 0,
"_parent": {
"__id__": 10
"__id__": 8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
"__id__": 10
},
{
"__id__": 13
"__id__": 11
}
],
"_prefab": null,
@ -578,7 +491,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 9
},
"_enabled": true,
"_materials": [
@ -612,7 +525,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 9
},
"_enabled": true,
"alignMode": 0,
@ -639,13 +552,13 @@
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 10
"__id__": 8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
"__id__": 13
}
],
"_prefab": null,
@ -701,7 +614,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
"__id__": 12
},
"_enabled": true,
"_materials": [
@ -734,7 +647,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
"__id__": 8
},
"_enabled": true,
"_normalMaterial": null,
@ -743,7 +656,7 @@
"zoomScale": 1.1,
"clickEvents": [
{
"__id__": 17
"__id__": 15
}
],
"_N$interactable": true,
@ -809,7 +722,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 11
"__id__": 9
},
"_id": "79F7b/WB5F2JOMTqOD3Wq1"
},
@ -834,10 +747,10 @@
"_active": true,
"_components": [
{
"__id__": 19
"__id__": 17
},
{
"__id__": 20
"__id__": 18
}
],
"_prefab": null,
@ -893,7 +806,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
"__id__": 16
},
"_enabled": true,
"_materials": [
@ -926,7 +839,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
"__id__": 16
},
"_enabled": true,
"alignMode": 1,
@ -959,10 +872,10 @@
"_active": true,
"_components": [
{
"__id__": 22
"__id__": 20
},
{
"__id__": 23
"__id__": 21
}
],
"_prefab": null,
@ -1018,7 +931,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
"__id__": 19
},
"_enabled": true,
"_materials": [
@ -1051,7 +964,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
"__id__": 19
},
"_enabled": true,
"alignMode": 1,
@ -1082,13 +995,13 @@
},
"_children": [
{
"__id__": 25
"__id__": 23
}
],
"_active": true,
"_components": [
{
"__id__": 28
"__id__": 26
}
],
"_prefab": null,
@ -1144,16 +1057,16 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 24
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 26
"__id__": 24
},
{
"__id__": 27
"__id__": 25
}
],
"_prefab": null,
@ -1209,7 +1122,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
"__id__": 23
},
"_enabled": true,
"_materials": [
@ -1243,7 +1156,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
"__id__": 23
},
"_enabled": true,
"alignMode": 0,
@ -1270,7 +1183,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
"__id__": 22
},
"_enabled": true,
"_normalMaterial": null,
@ -1279,7 +1192,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 29
"__id__": 27
}
],
"_N$interactable": true,
@ -1347,7 +1260,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 25
"__id__": 23
},
"_id": "2esgMwAepCjYmphoCmbewk"
},
@ -1413,10 +1326,10 @@
"__id__": 2
},
"_enabled": true,
"localTest": true,
"clientTestVersion": "1.0.2",
"localTest": false,
"clientTestVersion": "1.0.5",
"testVersion": {
"__id__": 19
"__id__": 17
},
"_id": "50zCP3Mq9MKIKjMbohPY8j"
}

File diff suppressed because it is too large Load Diff

View File

@ -294,7 +294,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 1600
"height": 1660
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -345,7 +345,9 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_spriteFrame": {
"__uuid__": "9a000aad-ece0-41f4-98ac-8c0418f54027"
},
"_type": 1,
"_sizeMode": 1,
"_fillType": 0,
@ -1491,7 +1493,9 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_spriteFrame": {
"__uuid__": "678e6fc3-2081-43c4-8659-270218131538"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
@ -1503,7 +1507,9 @@
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": {
"__uuid__": "9830637c-e4e3-4df5-8d51-fc49b7d715b4"
},
"_id": "81Vy6ELJROcJi8tTw2Qjb5"
},
{
@ -1596,7 +1602,9 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_spriteFrame": {
"__uuid__": "93ae1f2a-4666-4dc2-a4a0-4569ff1d5e32"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
@ -1608,7 +1616,9 @@
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": {
"__uuid__": "9830637c-e4e3-4df5-8d51-fc49b7d715b4"
},
"_id": "9b7R4QlpVKqqTMybq9FiqI"
},
{
@ -1701,7 +1711,9 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_spriteFrame": {
"__uuid__": "f25cb4b3-c8b0-4399-8eb9-f8c31c561fd1"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
@ -1713,7 +1725,9 @@
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": {
"__uuid__": "9830637c-e4e3-4df5-8d51-fc49b7d715b4"
},
"_id": "43yfKjDd5NG61vmnAMcyS5"
},
{
@ -1885,7 +1899,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
224.356,
240,
-2.205,
0,
0,
@ -2070,7 +2084,7 @@
"__id__": 20
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 54
@ -3599,7 +3613,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 750,
"height": 118
"height": 120
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -3650,7 +3664,9 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_spriteFrame": {
"__uuid__": "0d6140e1-a5ab-45ab-a320-cd86eb8fd028"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
@ -3662,7 +3678,9 @@
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": {
"__uuid__": "9830637c-e4e3-4df5-8d51-fc49b7d715b4"
},
"_id": "3cEUZF+3RNUYwTQQpf9d/W"
},
{
@ -4328,7 +4346,9 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_spriteFrame": {
"__uuid__": "678e6fc3-2081-43c4-8659-270218131538"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
@ -4340,7 +4360,9 @@
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": {
"__uuid__": "9830637c-e4e3-4df5-8d51-fc49b7d715b4"
},
"_id": "9fZk18R5pFzpXsHYRZLIyB"
},
{
@ -4433,7 +4455,9 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_spriteFrame": {
"__uuid__": "93ae1f2a-4666-4dc2-a4a0-4569ff1d5e32"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
@ -4445,7 +4469,9 @@
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": {
"__uuid__": "9830637c-e4e3-4df5-8d51-fc49b7d715b4"
},
"_id": "bcmZsyS4BDw7p0EU0wLam9"
},
{
@ -4538,7 +4564,9 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_spriteFrame": {
"__uuid__": "f25cb4b3-c8b0-4399-8eb9-f8c31c561fd1"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
@ -4550,7 +4578,9 @@
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_atlas": {
"__uuid__": "9830637c-e4e3-4df5-8d51-fc49b7d715b4"
},
"_id": "7d/VdpTjhGQZaLUUl7Uh/+"
},
{
@ -4614,7 +4644,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
224.356,
240,
59.795,
0,
0,
@ -4799,7 +4829,7 @@
"__id__": 102
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 133

View File

@ -65,16 +65,25 @@ export default class NewClass extends cc.Component {
initData(type,pos,max){
this.block_Type = type;
this.pos = cc.v2(pos.x,pos.y);
// if(this.pos.y%2 == 0) this.node.getChildByName("tip").active = true;
if(type == cc.Enum(BlockType).Start){
var bg = this.node.getChildByName("sp");
// this.node.getComponent(cc.Sprite).spriteFrame = null;
bg.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["start"];
if(cc.fx.GameConfig.GM_INFO.level > 4){
bg.getChildByName("start").y = 20;
bg.getChildByName("end").y = 20;
}
this.rotateTarget(bg,"start",pos,max);
}
else if(type == cc.Enum(BlockType).End){
var bg = this.node.getChildByName("sp");
// this.node.getComponent(cc.Sprite).spriteFrame = null;
bg.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["end"];
if(cc.fx.GameConfig.GM_INFO.level > 4){
bg.getChildByName("start").y = 20;
bg.getChildByName("end").y = 20;
}
this.rotateTarget(bg,"end",pos,max);
}
else if(type == cc.Enum(BlockType).Nunja){
@ -91,6 +100,26 @@ export default class NewClass extends cc.Component {
this.node.getChildByName("bg").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
this.node.getComponent(cc.Sprite).spriteFrame = null;
}
// this.node.getChildByName("tipWin").active = true;
// this.node.getChildByName("tipLose").active = true;
if(cc.fx.GameConfig.GM_INFO.level == 1){
this.node.getChildByName("tipWin").opacity = 220;
this.node.getChildByName("tipLose").opacity = 220;
}
else if(cc.fx.GameConfig.GM_INFO.level == 2){
this.node.getChildByName("tipWin").opacity = 100;
this.node.getChildByName("tipLose").opacity = 100;
}
else if(cc.fx.GameConfig.GM_INFO.level == 3){
this.node.getChildByName("tipWin").opacity = 50;
this.node.getChildByName("tipLose").opacity = 50;
}
else if(cc.fx.GameConfig.GM_INFO.level > 3){
this.node.getChildByName("tipWin").opacity = 0;
this.node.getChildByName("tipLose").opacity = 0;
}
}
//旋转入海口和出海口的 图片以及文字角度
rotateTarget(bg,name,pos,max){
@ -133,6 +162,7 @@ export default class NewClass extends cc.Component {
let sp = this.node.getChildByName("sp");
let turn = this.node.getChildByName("turnStart");
let water = this.node.getChildByName("waterStart");
if(direction == "left" || direction == "right"){
if(sp.angle == 0){
turn.active =true;
@ -141,6 +171,7 @@ export default class NewClass extends cc.Component {
if(type){
turn.angle = direction=="left"?90:0;
water.angle = direction=="left"?90:0;
}
else{
turn.angle = direction=="left"?0:90;
@ -240,9 +271,8 @@ export default class NewClass extends cc.Component {
}
}
set_Xi_SoilType(direction,end,name){
console.log("息壤",direction,name,this.block_Type);
// console.log("息壤",direction,name,this.block_Type);
if(this.block_Type == cc.Enum(BlockType).Start){
this.set_Xi_Soil(direction,false);
return;
@ -255,6 +285,7 @@ export default class NewClass extends cc.Component {
}
if(end != null){
if(this.block_Type == cc.Enum(BlockType).End){
this.finishi = true;
this.set_Xi_Soil(direction,true);
}
setTimeout(() => {
@ -292,6 +323,28 @@ export default class NewClass extends cc.Component {
.start();
}
repeatRoad(type){
//如果双向都占用了还进来就算死了-
var jg = false;
if(this.node.getChildByName("vertical2").active == true && this.node.getChildByName("horizontal2").active == true){
// alert("治水失败");
jg = true;
if(type){
cc.fx.Notifications.emit(cc.fx.Message.showResult,"lose");
cc.fx.Notifications.emit(cc.fx.Message.setData,false);
}
}
else if(this.node.getChildByName("turn2").active == true && this.block_Type != cc.Enum(BlockType).Xi_Soil){
// alert("治水失败");
jg = true;
if(type){
cc.fx.Notifications.emit(cc.fx.Message.showResult,"lose");
cc.fx.Notifications.emit(cc.fx.Message.setData,false);
}
}
return jg;
}
//修筑路线执行
runRoad(data){
@ -302,18 +355,8 @@ export default class NewClass extends cc.Component {
}, data.time);
return;
}
//如果双向都占用了还进来就算死了-
if(this.node.getChildByName("vertical2").active == true && this.node.getChildByName("horizontal2").active == true){
alert("河道已经交叉,不能再通过");
cc.director.loadScene("GameScene");
return;
}
else if(this.node.getChildByName("turn2").active == true && this.block_Type != cc.Enum(BlockType).Xi_Soil){
alert("河道过弯处,不能再交叉河道");
cc.director.loadScene("GameScene");
return;
}
var jg = this.repeatRoad(true);
if(jg == true) return;
var target = null;
var progress = 1;
var time = data.time;
@ -456,31 +499,21 @@ export default class NewClass extends cc.Component {
this.block_Type = cc.Enum(BlockType).Xi_Soil;
let posTemp = data.last;
var direction = "up";
if(this.pos.x - posTemp.x == 1){
if(this.pos.x - posTemp.x >= 1){
direction = "right";
}
else if(this.pos.x - posTemp.x == -1){
else if(this.pos.x - posTemp.x <= -1){
direction = "left";
}
else if(this.pos.x - posTemp.x == -1){
else if(this.pos.y - posTemp.y >= 1){
direction = "down";
}
// console.log("方向:",direction);
// console.log("结束方向:",direction);
if(!this.finishi){
this.finishi = true;
this.set_Xi_Soil(direction,true);
// alert("治水成功");
// target = this.node.getChildByName("End");
// target.active = true;
// target.opacity = 0;
// cc.tween(target)
// .to(0.5,{opacity:255})
// .call(() =>{
// console.log("游戏结束");
// // if(data.circulate)
// // cc.fx.Notifications.emit(cc.fx.Message.next,order);
// })
// .start();
}
}
else{
target.active = true;
@ -529,14 +562,18 @@ export default class NewClass extends cc.Component {
}
//如果双向都占用了还进来就算死了-
if(this.node.getChildByName("vertical").active == true && this.node.getChildByName("horizontal").active == true){
alert("河道已经交叉,不能再通过");
cc.director.loadScene("GameScene");
// alert("治水失败");
cc.fx.Notifications.emit(cc.fx.Message.showResult,"lose");
cc.fx.Notifications.emit(cc.fx.Message.setData,false);
// cc.director.loadScene("GameScene");
return;
}
else if(this.node.getChildByName("turn").active == true && this.block_Type != cc.Enum(BlockType).Xi_Soil){
alert("河道过弯处,不能再交叉河道");
cc.director.loadScene("GameScene");
// alert("治水失败");
cc.fx.Notifications.emit(cc.fx.Message.showResult,"lose");
cc.fx.Notifications.emit(cc.fx.Message.setData,false);
// cc.director.loadScene("GameScene");
return;
}
var target = null;
@ -695,11 +732,17 @@ export default class NewClass extends cc.Component {
cc.tween(this.node.getChildByName("waterStart"))
.to(0.2,{opacity:255})
.call(()=>{
alert("治水成功");
// alert("治水成功");
cc.fx.Notifications.emit(cc.fx.Message.showResult,"win");
cc.fx.Notifications.emit(cc.fx.Message.setData,true);
if(cc.fx.GameConfig.GM_INFO.level < 7){
cc.fx.GameConfig.GM_INFO.level += 1;
}
cc.director.loadScene("GameScene");
setTimeout(() => {
// cc.director.loadScene("GameScene");
}, 500);
})
.start();
}
@ -708,11 +751,26 @@ export default class NewClass extends cc.Component {
target = this.node.getChildByName("End");
target.active = true;
target.opacity = 0;
let posTemp = data.last;
if(this.pos.x - posTemp.x >= 1){
target.angle = -90;
}
else if(this.pos.x - posTemp.x <= -1){
target.angle = 90;
}
else if(this.pos.y - posTemp.y >= 1){
target.angle = 180;
}
cc.tween(target)
.to(0.5,{opacity:255})
.call(() =>{
alert("治水失败")
cc.director.loadScene("GameScene");
// alert("治水失败")
cc.fx.Notifications.emit(cc.fx.Message.showResult,"lose");
cc.fx.Notifications.emit(cc.fx.Message.setData,false);
// cc.director.loadScene("GameScene");
})
.start();

View File

@ -45,6 +45,7 @@ export default class NewClass extends cc.Component {
removeAllTip(){
if(!this.canTouch) return;
if(this.tipArray.length > 0){
for(let i=0; i<this.tipArray.length;i++){
let tip = this.tipArray[i];
tip.active = false;
@ -52,6 +53,11 @@ export default class NewClass extends cc.Component {
tip = null;
}
this.tipArray = [];
this.controlArray = [];
var drawingReset = cc.fx.GameConfig.CLICK_DATA.drawingReset + 1;
cc.fx.GameConfig.CLICK_SET("drawingReset",drawingReset);
cc.fx.Notifications.emit(cc.fx.Message.removeTip,"remove");
}
}
back_Click(){
@ -63,11 +69,20 @@ export default class NewClass extends cc.Component {
tip = null;
this.tipArray.pop();
this.controlArray.pop();
var drawingBack = cc.fx.GameConfig.CLICK_DATA.drawingBack + 1;
cc.fx.GameConfig.CLICK_SET("drawingBack",drawingBack);
cc.fx.Notifications.emit(cc.fx.Message.removeTip,"back");
}
}
//点击事件
btn_Click(target,data){
var GameManager = this.node.parent.getComponent("GameManager");
if(GameManager.btnClick == true){
GameManager.btnClick = false;
cc.fx.Notifications.emit(cc.fx.Message.guideNext);
}
if(!this.canTouch) return;
let prefab = this.tip;
if(data == "reinforce" || data == "soil"){
@ -79,7 +94,6 @@ export default class NewClass extends cc.Component {
if(data == "right") tip.angle = 90;
tip.parent = this.Map;
if(this.controlArray[this.controlArray.length-1] == "reinforce" ||
this.controlArray[this.controlArray.length-1] == "soil"){
if(data == "reinforce" || data == "soil"){
@ -100,6 +114,7 @@ export default class NewClass extends cc.Component {
start_Click(){
if(!this.canTouch) return;
this.canTouch = false;
cc.fx.Notifications.emit(cc.fx.Message.startGame,this.controlArray);
}

View File

@ -17,20 +17,30 @@ export default class GameManager extends cc.Component {
@property(cc.Label)
Countdown: cc.Label = null;
@property(cc.Node)
Guide: cc.Node = null;
step:number; //引导步骤
bgClick:boolean //引导时Mask遮罩可不可以点击
btnClick:boolean //引导时,按钮可不可点击
custom:number; //当前难度随机地图ID
countTime: number; //总倒计时
waterTime: number //洪峰倒计时
startTime: number; //游戏开始计时
finishiTime:number; //提交时间
scoreTime:number //用于计算提交到洪峰来的时间差
block_Array: any; //所有块数组
path_Array: any; //修筑路径
water_Array: any; //水流路径
map_Array: any; //地图数组
water_PathAray:any; //洪峰路径
tip_Array: any; //引导数组
map_Hight:number; //地图高度
map_Width:number; //地图宽度
plan_over:boolean; //是否修建完
waterTween:cc.Tween; //河水倒计时动画
onLoad () {
}
start () {
this.fit();
@ -39,40 +49,60 @@ export default class GameManager extends cc.Component {
//初始化数据
init(){
this.initMap();
this.finishiTime = 0;
this.scoreTime = 0;
this.startTime = cc.fx.GameTool.getTime();
this.countTime = cc.fx.GameConfig.TIME_INFO.totalTime;
this.waterTime = cc.fx.GameConfig.TIME_INFO.waterTime[cc.fx.GameConfig.GM_INFO.level];
this.Time.string = cc.fx.GameTool.getTimeMargin(this.countTime);
if(!cc.fx.GameConfig.GM_INFO.guide){
this.Guide.active = false;
this.step = 0;
var head = this.node.getChildByName("Top").getChildByName("head");
var progress = this.node.getChildByName("Top").getChildByName("progress").getComponent(cc.Sprite);
head.runAction(cc.moveTo(this.waterTime,cc.v2(310,head.y)));
this.waterTween = cc.tween(progress)
.to(this.waterTime,{fillRange:1})
.start();
this.schedule(this.updateWaterTime,1);
this.schedule(this.updateCountDownTime,1);
}
else{
this.Guide.active = true;
this.guideNext();
}
}
//初始化地图`
//初始化地图
initMap(){
cc.fx.GameConfig.GM_INFO.round += 1;
cc.fx.GameConfig.GM_INFO.fen = 0;
this.block_Array = [];
this.path_Array = [];
this.water_Array = [];
this.map_Array = [];
this.tip_Array = [];
this.plan_over = false;
this.map_Hight = 0;
this.map_Width = 0;
let number = 10; //9
number = Math.floor(Math.random()* cc.fx.GameConfig.LEVEL_INFO[cc.fx.GameConfig.GM_INFO.level].length);
// number = 1;
let arr = cc.fx.GameConfig.LEVEL_INFO[cc.fx.GameConfig.GM_INFO.level][number].map;
this.step = 0;
this.bgClick = false;
this.btnClick = false;
if(!cc.fx.GameConfig.GM_INFO.guide &&cc.fx.GameConfig.GM_INFO.level == 0 ){
cc.fx.GameConfig.GM_INFO.level = 1;
}
this.custom = 10; //9
this.custom = Math.floor(Math.random()* cc.fx.GameConfig.LEVEL_INFO[cc.fx.GameConfig.GM_INFO.level].length);
// this.custom = 0;
let arr = cc.fx.GameConfig.LEVEL_INFO[cc.fx.GameConfig.GM_INFO.level][this.custom].map;
if(cc.fx.GameConfig.GM_INFO.level == 0){
this.Map.scale = 1.2;
}
this.node.getChildByName("Top").getChildByName("id").getComponent(cc.Label).string =
cc.fx.GameConfig.LEVEL_INFO[cc.fx.GameConfig.GM_INFO.level][number].id;
cc.fx.GameConfig.LEVEL_INFO[cc.fx.GameConfig.GM_INFO.level][this.custom].id;
//将地图x,y轴切换
this.map_Array = arr[0].map((item, i) => {
return arr.map((val) => val[i])
})
@ -131,18 +161,15 @@ export default class GameManager extends cc.Component {
if(order > 0){
if(this.path_Array[order-1].z == 0){
console.log("1正常放入",this.path_Array[order-1].x,this.path_Array[order-1].y,this.path_Array[order-1].z)
//console.log("1正常放入",this.path_Array[order-1].x,this.path_Array[order-1].y,this.path_Array[order-1].z)
this.changeWater(cc.v3(this.path_Array[order-1].x,this.path_Array[order-1].y,0));
// console.log(this.water_Array);
// debugger;
if(order == this.path_Array.length-1){
this.changeWater(cc.v3(this.path_Array[order].x,this.path_Array[order].y,0));
console.log("最后放入",this.path_Array[order].x,this.path_Array[order].y)
// console.log(this.water_Array);
// console.log("最后放入",this.path_Array[order].x,this.path_Array[order].y)
}
}
else{
console.log("2插入",this.path_Array[order].x,this.path_Array[order].y,this.path_Array[order].z)
//console.log("2插入",this.path_Array[order].x,this.path_Array[order].y,this.path_Array[order].z)
this.changeWater(cc.v3(this.path_Array[order].x,this.path_Array[order].y,0));
}
}
@ -159,18 +186,19 @@ export default class GameManager extends cc.Component {
if(!this.plan_over){
console.log("准备出水");
this.plan_over = true;
this.unschedule(this.updateWaterTime);
var head = this.node.getChildByName("Top").getChildByName("head");
var progress = this.node.getChildByName("Top").getChildByName("progress").getComponent(cc.Sprite);
head.stopAllActions();
head.setPosition(310,head.y);
this.waterTween.stop();
if(this.waterTween) this.waterTween.stop();
progress.fillRange = 1;
this.runWater(0);
}
}, 500);
}
else{
if(this.path_Array[order].z == 6 && order + 1 < this.path_Array.length) {
if(this.path_Array[order].z == 6 && order + 1 < this.path_Array.length && order!=1) {
direction = "Reinforce";
i = this.path_Array[order+1].x*this.map_Array[0].length+this.path_Array[order+1].y;
}
@ -212,9 +240,16 @@ export default class GameManager extends cc.Component {
}
}
let pos = cc.v2();
if(direction == "End" && this.path_Array[order-1].z == 0){
// if(order > 0){
if(direction == "End"){
if(order > 0){
if(this.path_Array[order-1].z == 0){
pos = cc.v2(this.path_Array[order-1].x, this.path_Array[order-1].y);
}
}
}
// }
let data = {
order:order,
time:cc.fx.GameConfig.TIME_INFO.waterSpeed[cc.fx.GameConfig.GM_INFO.level],
@ -230,21 +265,30 @@ export default class GameManager extends cc.Component {
let jg = true;
if(x < 0 || x >= this.map_Width || y < 0 || y >= this.map_Hight){
jg = false;
console.log("超过边界,游戏结束");
alert("超过边界,游戏结束");
// console.log("超过边界,游戏结束");
alert("超过边界,治水失败");
cc.fx.Notifications.emit(cc.fx.Message.showResult,"lose");
cc.fx.Notifications.emit(cc.fx.Message.setData,false);
// cc.director.loadScene("GameScene");
}
else {
let i = road[order].x*this.map_Array[0].length+road[order].y;
let target = this.block_Array[i].getComponent("Block");
if(target.block_Type == 3){
jg = false;
console.log("修筑山峰,游戏结束");
alert("修筑山峰,游戏结束");
// console.log("修筑山峰,游戏结束");
alert("修筑山峰,治水失败");
cc.fx.Notifications.emit(cc.fx.Message.showResult,"lose");
cc.fx.Notifications.emit(cc.fx.Message.setData,false);
// cc.director.loadScene("GameScene");
}
else if(target.block_Type == 2 && direction != "Reinforce"){
jg = false;
console.log("修筑未加固湿地,游戏结束");
// console.log("修筑未加固湿地,游戏结束");
alert("修筑未加固湿地,游戏结束");
cc.fx.Notifications.emit(cc.fx.Message.showResult,"lose");
cc.fx.Notifications.emit(cc.fx.Message.setData,false);
// cc.director.loadScene("GameScene");
}
}
return jg;
@ -284,7 +328,7 @@ export default class GameManager extends cc.Component {
}
// console.log(order,this.path_Array[order].x,this.path_Array[order].y,i);
let jg = this.getBoundary(order,this.water_Array[order].x,this.water_Array[order].y,direction,this.water_Array);
console.log("步骤:",order,"方向",direction);
// console.log("步骤:",order,"方向",direction);
if(direction == "" || jg == false){
return;
}
@ -304,11 +348,22 @@ export default class GameManager extends cc.Component {
return;
}
}
let pos = cc.v2();
if(direction == "End"){
if(order > 0){
if(this.water_Array[order-1].z == 0){
pos = cc.v2(this.water_Array[order-1].x, this.water_Array[order-1].y);
}
}
}
let data = {
order:order,
time:cc.fx.GameConfig.TIME_INFO.waterSpeed[cc.fx.GameConfig.GM_INFO.level],
type:this.water_Array[order].z,
circulate:circulate
circulate:circulate,
last:pos
};
target.runWater(data);
}
@ -414,7 +469,7 @@ export default class GameManager extends cc.Component {
target.set_Xi_SoilType(this.getDirection(order,road),null,name);
let value = cc.v3(this.path_Array[order].x,this.path_Array[order].y,0);
if(this.water_Array[this.water_Array.length-1] != value){
console.log("特别插入:",this.path_Array[order].x,this.path_Array[order].y);
// console.log("特别插入:",this.path_Array[order].x,this.path_Array[order].y);
this.changeWater(value);
}
}
@ -440,7 +495,7 @@ export default class GameManager extends cc.Component {
target.set_Xi_SoilType(this.getDirection(order,road),null,name);
let value = cc.v3(this.path_Array[order].x,this.path_Array[order].y,0);
if(this.water_Array[this.water_Array.length-1] != value){
console.log("特别插入:",this.path_Array[order].x,this.path_Array[order].y);
// console.log("特别插入:",this.path_Array[order].x,this.path_Array[order].y);
this.changeWater(value);
}
}
@ -465,7 +520,7 @@ export default class GameManager extends cc.Component {
target.set_Xi_SoilType(this.getDirection(order,road),null,name);
let value = cc.v3(this.path_Array[order].x,this.path_Array[order].y,0);
if(this.water_Array[this.water_Array.length-1] != value){
console.log("特别插入:",this.path_Array[order].x,this.path_Array[order].y);
// console.log("特别插入:",this.path_Array[order].x,this.path_Array[order].y);
this.changeWater(value);
}
}
@ -476,7 +531,7 @@ export default class GameManager extends cc.Component {
this.changePath(order,number,true,road);
jg = order;
}
console.log("想上息壤插入:",this.path_Array[order].x,i);
// console.log("想上息壤插入:",this.path_Array[order].x,i);
target.set_Xi_SoilType(direction,jg,name);
}
}
@ -490,7 +545,7 @@ export default class GameManager extends cc.Component {
target.set_Xi_SoilType(this.getDirection(order,road),null,name);
let value = cc.v3(this.path_Array[order].x,this.path_Array[order].y,0);
if(this.water_Array[this.water_Array.length-1] != value){
console.log("特别插入:",this.path_Array[order].x,this.path_Array[order].y);
// console.log("特别插入:",this.path_Array[order].x,this.path_Array[order].y);
this.changeWater(value);
}
}
@ -533,26 +588,26 @@ export default class GameManager extends cc.Component {
if(number < 0){
for(let n= -number; n>0; n--){
this.changeWater(cc.v3(this.path_Array[order+1].x,this.path_Array[order+1].y+n,0));
console.log("1特殊放入:",this.path_Array[order+1].x,this.path_Array[order+1].y+n)
// console.log("1特殊放入:",this.path_Array[order+1].x,this.path_Array[order+1].y+n)
}
}
else{
for(let n=number; n>0; n--){
this.changeWater(cc.v3(this.path_Array[order+1].x,this.path_Array[order+1].y-n,0));
console.log("2特殊放入:",this.path_Array[order+1].x,this.path_Array[order+1].y-n)
// console.log("2特殊放入:",this.path_Array[order+1].x,this.path_Array[order+1].y-n)
}
}
}else{
if(number < 0){
for(let m= -number; m>0; m--){
this.changeWater(cc.v3(this.path_Array[order+1].x+m,this.path_Array[order+1].y,0));
console.log("3特殊放入:",this.path_Array[order+1].x+m,this.path_Array[order+1].y)
// console.log("3特殊放入:",this.path_Array[order+1].x+m,this.path_Array[order+1].y)
}
}
else{
for(let m=number; m>0; m--){
this.changeWater(cc.v3(this.path_Array[order+1].x-m,this.path_Array[order+1].y,0));
console.log("4特殊放入:",this.path_Array[order+1].x-m,this.path_Array[order+1].y)
// console.log("4特殊放入:",this.path_Array[order+1].x-m,this.path_Array[order+1].y)
}
}
}
@ -695,33 +750,48 @@ export default class GameManager extends cc.Component {
backScene(){
cc.director.loadScene("LoadScene");
}
//下一关或者重新开始或者返回上一关根据level决定
reStart(type){
}
//获取时间戳
getTime(){
const timestamp = new Date().getTime();
return timestamp;
}
//获胜
passLevel(){
}
//失败
loseLevel(type){
//1: 1649
//2: 3646
//3: 5546
//4: 2600
//5: 694
}
//开始游戏
startGame(data){
for(let i=0; i<this.block_Array.length;i++){
this.block_Array[i].getChildByName("tipWin").active = false;
this.block_Array[i].getChildByName("tipLose").active = false;
}
this.unschedule(this.updateCountDownTime);
var now = cc.fx.GameTool.getTime();
var finishi = now - this.finishiTime;
var totalTime = now - this.startTime;
this.scoreTime = this.waterTime;
if(this.waterTime <= 0.5) finishi = -1;
cc.fx.GameConfig.CLICK_SET("submitTime",finishi);
if(finishi == -1)
cc.fx.GameConfig.CLICK_SET("duration",cc.fx.GameConfig.TIME_INFO.waterTime[cc.fx.GameConfig.GM_INFO.level]);
else
cc.fx.GameConfig.CLICK_SET("duration",totalTime);
cc.fx.GameConfig.CLICK_SET("usedSteps",data.length);
this.setMap(data);
var arr = this.changeStep(data);
cc.fx.GameConfig.CLICK_SET("stepList",arr);
}
//用于埋点记录
changeStep(data){
var arr = [];
if(data.length > 0){
for(let i=0; i<data.length; i++){
if(data[i] == "up") arr[i] = "U";
else if(data[i] == "down") arr[i] = "D";
else if(data[i] == "left") arr[i] = "L";
else if(data[i] == "right") arr[i] = "R";
else if(data[i] == "soil") arr[i] = "X";
else if(data[i] == "reinforce") arr[i] = "F";
}
}
return arr;
}
//洪峰倒计时,计时器
updateWaterTime(){
if (this.waterTime > 0) {
this.waterTime -= 1;
@ -731,7 +801,14 @@ export default class GameManager extends cc.Component {
if(!this.plan_over){
this.plan_over = true;
setTimeout(() => {
if(this.water_Array.length == 0){
cc.fx.Notifications.emit(cc.fx.Message.showResult,"lose");
cc.fx.Notifications.emit(cc.fx.Message.setData,false);
}
else{
this.runWater(0);
}
}, 500);
}
@ -743,6 +820,7 @@ export default class GameManager extends cc.Component {
updateCountDownTime () {
if (this.countTime > 0) {
this.countTime -= 1;
cc.fx.GameConfig.TIME_INFO.totalTime = this.countTime;
this.Time.string = cc.fx.GameTool.getTimeMargin(this.countTime);
if(this.countTime < 5){
let over = this.node.getChildByName("Over");
@ -753,45 +831,404 @@ export default class GameManager extends cc.Component {
.start();
}
if(this.countTime <= 0){
this.countTime = 0;
this.setData(null);
this.unschedule(this.updateCountDownTime);
var time = 0;
this.gameOver(time);
this.gameOver();
}
}
}
//上传每次操作数据
setData(){
setData(success){
//设置埋点数据
cc.fx.GameConfig.CLICK_SET("mapId",cc.fx.GameConfig.LEVEL_INFO[cc.fx.GameConfig.GM_INFO.level][this.custom].id);
cc.fx.GameConfig.CLICK_SET("difficulty",cc.fx.GameConfig.GM_INFO.level);
cc.fx.GameConfig.CLICK_SET("optimizedSteps",cc.fx.GameConfig.LEVEL_INFO[cc.fx.GameConfig.GM_INFO.level][this.custom].min_steps);
cc.fx.GameConfig.CLICK_SET("round",cc.fx.GameConfig.GM_INFO.round);
cc.fx.GameConfig.CLICK_SET("timer",cc.fx.GameConfig.TIME_INFO.totalTime);
cc.fx.GameConfig.CLICK_SET("cumulativeScore",cc.fx.GameConfig.GM_INFO.score);
if(success != null){
cc.fx.GameConfig.CLICK_SET("success",success);
cc.fx.GameConfig.GM_INFO.fen = this.getScore();
cc.fx.GameConfig.CLICK_SET("getScore",cc.fx.GameConfig.GM_INFO.fen);
cc.fx.GameConfig.GM_INFO.score += cc.fx.GameConfig.GM_INFO.fen;
cc.fx.GameConfig.CLICK_SET("cumulativeScore",cc.fx.GameConfig.GM_INFO.score);
cc.fx.GameConfig.GM_INFO.successList.push(success);
}
cc.fx.GameTool.setGameData();
}
//计算得分
getScore(){
//最小步数
let min = cc.fx.GameConfig.LEVEL_INFO[cc.fx.GameConfig.GM_INFO.level][this.custom].min_steps;
//实际使用步数
let now = this.path_Array.length-1;
if(now <=0) now = 0;
var x = (2.5*min - now) / min;
let score = Math.pow(min,x) ** 0.5;
score = score * (this.scoreTime + 10)*100;
return Math.floor(score);
}
//上传排行榜数据
gameOver(time){
cc.fx.GameTool.setRank(time);
gameOver(){
var rate = 0;
var successList = cc.fx.GameConfig.GM_INFO.successList;
if(successList.length > 0){
var success = 0;
for(let i=0; i<successList.length; i++){
if(successList[i] == true) success += 1;
}
rate = success/successList.length;
}
rate = Math.floor(rate * 1000)/10;
let data = {
score: cc.fx.GameConfig.GM_INFO.score,
rate: rate
}
cc.fx.GameTool.setRank(data);
this.node.getChildByName("GameOver").active = true;
this.node.getChildByName("GameOver").opacity = 0;
cc.tween(this.node.getChildByName("GameOver"))
.to(0.4,{opacity:255})
.delay(2)
.delay(1)
.to(0.4,{opacity:50})
.call(() =>{
cc.director.loadScene("OverScene");
})
.start()
}
//展示结果
showResult(data){
this.node.getChildByName("Window").active = true;
this.node.getChildByName("Window").getComponent("Window").init(data);
}
//记录反应时长,以及做步骤提示
clickSun(data){
if(cc.fx.GameConfig.GM_INFO.level > 3) return;
//如果没有记录过 回合开始到操作反应时长,则第一次记录, 后面不记录
if(cc.fx.GameConfig.CLICK_DATA.startTime == 0){
var now = cc.fx.GameTool.getTime();
this.finishiTime = now - this.startTime;
cc.fx.GameConfig.CLICK_SET("startTime",this.finishiTime);
}
//步骤提示
var nowPos = this.path_Array[0];
if(this.tip_Array.length != 0){
if(this.tip_Array[this.tip_Array.length-1] == null){
this.tip_Array.push(null);
return;
}
nowPos = this.tip_Array[this.tip_Array.length-1][this.tip_Array[this.tip_Array.length-1].length-1];
let n = nowPos.x*this.map_Array[0].length+nowPos.y;
let targetNode = this.block_Array[n];
if(targetNode.getChildByName("tipLose").active == true){
this.tip_Array.push(null);
return;
}
}
if(data == "up"){
let n = cc.v2(nowPos.x,nowPos.y-1);
this.tipCan(n,data);
}
else if(data == "down"){
let n = cc.v2(nowPos.x,nowPos.y+1);
this.tipCan(n,data);
}
else if(data == "left"){
let n = cc.v2(nowPos.x-1,nowPos.y);
this.tipCan(n,data);
}
else if(data == "right"){
let n = cc.v2(nowPos.x+1,nowPos.y);
this.tipCan(n,data);
}
else if(data == "reinforce"){
let n = cc.v3(nowPos.x,nowPos.y,2);
this.tip_Array.push([n]);
}
else if(data == "soil"){
let n = cc.v3(nowPos.x,nowPos.y,3);
this.tip_Array.push([n]);
}
}
//提示是否错误
tipCan(pos,data){
//先判断是否出边界
if(pos.x <0 || pos.x >this.map_Array.length-1 || pos.y <0 || pos.y > this.map_Array[0].length-1 ){
this.tip_Array.push(null);
return;
}
let n = pos.x*this.map_Array[0].length+pos.y;
let target = this.block_Array[n].getComponent("Block");
target.node.getChildByName("tipWin").active = true;
// target.node.getChildByName("tipWin").opacity = 255;
// target.node.getChildByName("tipLose").opacity = 255;
// debugger;
//重复路回头路,或者山峰
if(target.repeatRoad(false) == true || target.block_Type == 3){
target.node.getChildByName("tipLose").active = true;
target.node.getChildByName("tipWin").active = false;
}
//湿地 上一步如果没用息壤或者加固
else if(target.block_Type == 2){
if(this.tip_Array.length > 1){
if(this.tip_Array[this.tip_Array.length-1][0].z == 0){
target.node.getChildByName("tipLose").active = true;
target.node.getChildByName("tipWin").active = false;
}
}
}
if(this.tip_Array.length > 0){
if(this.tip_Array[this.tip_Array.length-1][0].z == 3){
if(data == "up"){
var arr = [];
for(let i=pos.y; i >=0;i--){
let block = this.block_Array[pos.x*this.map_Array[0].length+i].getComponent("Block");
if(block.block_Type == 3){
i = -10000;
}
else{
block.node.getChildByName("tipWin").active = true;
arr.push(cc.v3(pos.x,i,0));
if( block.block_Type == 4) i = -10000;
}
}
this.tip_Array.push(arr);
}
else if(data == "down"){
var arr = [];
for(let i=pos.y; i<this.map_Array[0].length;i++){
let block = this.block_Array[pos.x*this.map_Array[0].length+i].getComponent("Block");
if(block.block_Type == 3){
i = 10000;
}
else{
block.node.getChildByName("tipWin").active = true;
arr.push(cc.v3(pos.x,i,0));
if( block.block_Type == 4) i = 10000;
}
}
this.tip_Array.push(arr);
}
else if(data == "right"){
var arr = [];
for(let i=pos.x; i<this.map_Array.length;i++){
let block = this.block_Array[i*this.map_Array[0].length+pos.y].getComponent("Block");
if(block.block_Type == 3){
i = 10000;
}
else{
block.node.getChildByName("tipWin").active = true;
arr.push(cc.v3(i,pos.y,0));
if( block.block_Type == 4) i = 10000;
}
}
this.tip_Array.push(arr);
}
else if(data == "left"){
var arr = [];
for(let i=pos.x; i>=0 ;i--){
let block = this.block_Array[i*this.map_Array[0].length+pos.y].getComponent("Block");
if(block.block_Type == 3){
i = -10000;
}
else{
block.node.getChildByName("tipWin").active = true;
arr.push(cc.v3(i,pos.y,0));
if( block.block_Type == 4) i = -10000;
}
}
this.tip_Array.push(arr);
}
}
else{
let posJg = cc.v3(pos.x,pos.y,0);
if(data == "reinforce") pos.z = 2;
if(data == "soil") pos.z = 3;
this.tip_Array.push([posJg]);
}
console.log(this.tip_Array);
return;
}
let posJg = cc.v3(pos.x,pos.y,0);
if(data == "reinforce") pos.z = 2;
if(data == "soil") pos.z = 3;
this.tip_Array.push([posJg]);
console.log(this.tip_Array);
}
//移除提示
removeTip(data){
if(cc.fx.GameConfig.GM_INFO.level > 3) return;
//分为撤回一步 和全部清空
if(this.tip_Array.length > 0){
if(data == "back"){
let target = this.tip_Array[this.tip_Array.length-1];
if(target == null){
this.tip_Array.pop();
}
else{
this.tip_Array.pop();
for(let i=0; i<target.length;i++){
if(target[i]){
if( target[0].z == 0){
let n = target[i].x*this.map_Array[0].length+target[i].y;
let node = this.block_Array[n];
node.getChildByName("tipWin").active = false;
node.getChildByName("tipLose").active = false;
}
}
}
}
}
else if(data == "remove"){
for(let j =0; j<this.tip_Array.length; j++){
let target = this.tip_Array[j];
if(target != null){
for(let i=0; i<target.length;i++){
if(target[i]){
let n = target[i].x*this.map_Array[0].length+target[i].y;
let node = this.block_Array[n];
node.getChildByName("tipWin").active = false;
node.getChildByName("tipLose").active = false;
}
}
}
}
this.tip_Array = [];
}
}
}
//获取引导名字
getGuideName(){
var name = "one";
switch(this.step){
case 1:
name = "one";
this.btnClick = false;
this.bgClick = true;
break;
case 2:
name = "two";
this.btnClick = false;
this.bgClick = true;
break;
case 3:
name = "three";
this.btnClick = false;
this.bgClick = true;
break;
case 4:
name = "four";
this.btnClick = false;
this.bgClick = true;
break;
case 5:
name = "five";
this.btnClick = true;
this.bgClick = false;
break;
case 6:
name = "six";
this.btnClick = true;
this.bgClick = false;
break;
case 7:
name = "seven";
this.btnClick = false;
this.bgClick = true;
break;
case 8:
name = "eight";
this.btnClick = false;
this.bgClick = true;
break;
case 9:
name = "nine";
this.btnClick = false;
this.bgClick = true;
break;
case 10:
name = "ten";
this.btnClick = true;
this.bgClick = false;
break;
case 11:
name = "eleven";
this.btnClick = false;
this.bgClick = true;
break;
case 12:
name = "twelve";
this.btnClick = true;
this.bgClick = false;
break;
case 13:
name = "thirteen";
this.btnClick = true;
this.bgClick = false;
break;
case 14:
name = "fourteen";
this.btnClick = true;
this.bgClick = false;
break;
case 15:
name = "fiveteen";
this.btnClick = true;
this.bgClick = false;
break;
case 16:
name = "sixteen";
this.btnClick = true;
this.bgClick = false;
break;
case 17:
name = "last";
this.btnClick = true;
this.bgClick = false;
break;
}
return name;
}
//引导下一步
guideNext(){
//每次先把所有的
console.log(this.step,this.Guide.children.length);
if(this.step + 1 == this.Guide.children.length){
cc.fx.GameConfig.GM_INFO.guide = false;
// cc.director.loadScene("GameScene");
}
if(this.step > 0) this.Guide.children[this.step-1].active = false;
this.step += 1;
let name = this.getGuideName();
var target = this.Guide.getChildByName(name);
target.active = true;
let size = cc.winSize;
if(size.height > 1334){
let height = (size.height - 1334)/2;
target.getChildByName("sp").height += height;
}
}
addEnd(data){
}
nextWater(){
}
onEnable () {
cc.fx.Notifications.on(cc.fx.Message.control, this.clickSun, this);
cc.fx.Notifications.on(cc.fx.Message.next, this.runRoad, this);
@ -800,7 +1237,10 @@ export default class GameManager extends cc.Component {
cc.fx.Notifications.on(cc.fx.Message.changePath, this.changePath, this);
cc.fx.Notifications.on(cc.fx.Message.changeMap, this.changeMap, this);
cc.fx.Notifications.on(cc.fx.Message.addEnd, this.addEnd, this);
cc.fx.Notifications.on(cc.fx.Message.setData, this.setData, this);
cc.fx.Notifications.on(cc.fx.Message.guideNext, this.guideNext, this);
cc.fx.Notifications.on(cc.fx.Message.showResult, this.showResult, this);
cc.fx.Notifications.on(cc.fx.Message.removeTip, this.removeTip, this);
}
onDisable () {
cc.fx.Notifications.off(cc.fx.Message.control, this.clickSun);
@ -810,6 +1250,10 @@ export default class GameManager extends cc.Component {
cc.fx.Notifications.off(cc.fx.Message.changePath, this.changePath);
cc.fx.Notifications.off(cc.fx.Message.changeMap, this.changeMap);
cc.fx.Notifications.off(cc.fx.Message.addEnd, this.addEnd);
cc.fx.Notifications.off(cc.fx.Message.setData, this.setData);
cc.fx.Notifications.off(cc.fx.Message.guideNext, this.guideNext);
cc.fx.Notifications.off(cc.fx.Message.showResult, this.showResult);
cc.fx.Notifications.off(cc.fx.Message.removeTip, this.removeTip);
}
update (dt) {

View File

@ -23,11 +23,18 @@ export default class NewClass extends cc.Component {
selfData: any;
// onLoad () {}
start () {
this.count.string = cc.fx.GameConfig.GM_INFO.total + "";
if(cc.fx.GameConfig.GM_INFO.mean_Time > 10){
cc.fx.GameConfig.GM_INFO.mean_Time = (parseInt(Math.random()*10+"")+5)/10
this.count.string = cc.fx.GameConfig.GM_INFO.score + "";
var yes = 0;
var successList = cc.fx.GameConfig.GM_INFO.successList;
if(successList.length > 0){
var success = 0;
for(let i=0; i<successList.length; i++){
if(successList[i] == true) success += 1;
}
this.time.string = cc.fx.GameConfig.GM_INFO.mean_Time + "s";
yes = success/successList.length;
}
yes = Math.floor(yes * 1000)/10;
this.time.string = "%" + yes;
this.init();
}
//初始化数据
@ -62,7 +69,8 @@ export default class NewClass extends cc.Component {
if(data){
cc.fx.GameTool.getRankData(data,this,4);
cc.fx.GameTool.setPic(this.selfNode.getChildByName("pic").getChildByName("icon"),this.selfData.pic);
for(let i=0;i<=4;i++){
var length = data.length; if(length > 4) length = 4;
for(let i=0;i<=length;i++){
this.setRank(i,this.listData[i]);
}
}
@ -87,6 +95,7 @@ export default class NewClass extends cc.Component {
}
if(hitNode){
hitNode.active = true;
if(data.nickName.length >= 4)
cc.fx.GameTool.subName(data.nickName,4);
hitNode.getChildByName("name").getComponent(cc.Label).string = data.nickName;
hitNode.getChildByName("total").getComponent(cc.Label).string = data.totalSunCount;

View File

@ -14,6 +14,7 @@ export default class NewClass extends cc.Component {
testVersion: cc.Label = null;
start () {
cc.debug.setDisplayStats(false);
window.initMgr();
cc.fx.GameConfig.init(this.localTest);
// cc.fx.AudioManager.Instance.init();

32
assets/Script/Mask.ts Normal file
View File

@ -0,0 +1,32 @@
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const {ccclass, property} = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start () {
let GameManager = this.node.parent.parent.parent.getComponent("GameManager");
if(GameManager.bgClick == true){
GameManager.bgClick = false;
this.node.on(cc.Node.EventType.TOUCH_START, this.onClick, this);
}
}
onClick(){
cc.fx.Notifications.emit(cc.fx.Message.guideNext);
}
// update (dt) {}
}

View File

@ -1,7 +1,7 @@
{
"ver": "1.1.0",
"uuid": "0d96e53f-9595-475b-85b8-cae64886b955",
"importer": "javascript",
"uuid": "81171271-91d7-4ee9-9cee-5cbbbf1597a7",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,

View File

@ -104,7 +104,7 @@ export default class RankManager extends cc.Component {
}
})
.catch(error => {
console.error('Error fetching X-Info:', error);
// console.error('Error fetching X-Info:', error);
});
var self = this;
cc.assetManager.loadRemote(pic, {ext:'.png'},(err, texture:cc.Texture2D) => {

45
assets/Script/Window.ts Normal file
View File

@ -0,0 +1,45 @@
// Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const {ccclass, property} = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
// LIFE-CYCLE CALLBACKS:
// onLoad () {}
start () {
}
init(data){
this.node.getChildByName("win").active = false;
this.node.getChildByName("lose").active = false;
this.node.getChildByName("finishi").active = false;
this.node.getChildByName(data).active = true;
var target = this.node.getChildByName(data);
target.opacity = 0; target.scale = 2;
cc.tween(target)
.delay(0.2)
.to(0.4,{opacity:255,scale:1})
.delay(1.3)
.call(()=>{
cc.tween(this.node)
.to(0.3,{opacity:0})
.call(() =>{
this.node.active = false;
cc.director.loadScene("GameScene");
})
.start();
})
.start();
}
// update (dt) {}
}

View File

@ -0,0 +1,10 @@
{
"ver": "1.1.0",
"uuid": "3bad2bb2-3b0e-4ccc-bab7-6f983d6879f6",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

File diff suppressed because one or more lines are too long

View File

@ -44,6 +44,10 @@ window.initMgr = function() {
changeMap: "10005", //改变那地图
nextWater: "10006" , //传递执行下一个格子洪水流过
addEnd: "10007" , //添加结束点
setData: "10008" , //上传分数
guideNext: "10009" , //引导进入下一步
showResult: "10010", //展示治水结果
removeTip: "10011" //执行撤回或者后退动作,移除提示
}
/*

View File

@ -15,9 +15,9 @@ export default class ItemRender extends cc.Component {
cc.fx.GameTool.subName(this.data.name,6);
this.node.getChildByName("rankLab").getComponent(cc.Label).string = this.data.rank + "";
this.node.getChildByName("nameLab").getComponent(cc.Label).string = this.data.name + "";
this.node.getChildByName("totalLab").getComponent(cc.Label).string = this.data.total + "%";
this.node.getChildByName("totalLab").getComponent(cc.Label).string = this.data.total;
let timeTemp = cc.fx.GameTool.getTimeShenNong(this.data.time);
this.node.getChildByName("timeLab").getComponent(cc.Label).string = timeTemp + "";
// this.node.getChildByName("timeLab").getComponent(cc.Label).string = timeTemp + "";
this.node.getChildByName("rank").getChildByName("one").active = false;
this.node.getChildByName("rank").getChildByName("two").active = false;
this.node.getChildByName("rank").getChildByName("three").active = false;
@ -56,7 +56,7 @@ export default class ItemRender extends cc.Component {
}
})
.catch(error => {
console.error('Error fetching X-Info:', error);
// console.error('Error fetching X-Info:', error);
});
cc.assetManager.loadRemote(url, {ext:'.png'},(err, texture:cc.Texture2D) => {
if(texture){

View File

@ -33,7 +33,7 @@ var GameTool = {
"data": data
};
console.log("上传数据:");
console.log("上传数据:",data);
cc.fx.HttpUtil.uploadUserLogData(postData,function(){})
},
//上传排行榜 type为1
@ -43,8 +43,8 @@ var GameTool = {
"gameId":cc.fx.GameConfig.GM_INFO.gameId,
"userId":cc.fx.GameConfig.GM_INFO.userId,
"type":1,
"totleTimes": data.totleTimes,
"accuracy": data.accuracy,
"score": data.score,
"accuracy": data.date,
"success": cc.fx.GameConfig.GM_INFO.success
};
cc.fx.HttpUtil.rankData(1,function(){},postData);
@ -136,10 +136,10 @@ var GameTool = {
}
})
.catch(error => {
console.error('Error fetching X-Info:', error);
// console.error('Error fetching X-Info:', error);
});
}, 100);
cc.assetManager.loadRemote(url, {ext:'.jpg'},(err, texture:cc.Texture2D) => {
cc.assetManager.loadRemote(url, {ext:'.png'},(err, texture:cc.Texture2D) => {
if(texture){
node.active = true;
node.getComponent(cc.Sprite).spriteFrame = new cc.SpriteFrame(texture);
@ -158,7 +158,7 @@ var GameTool = {
let self = false;
cc.fx.GameTool.setPic(target.selfNode.getChildByName("pic").getChildByName("icon"),target.selfData.pic);
for(let i=0;i<=target.listData.length-1;i++){
rankData.push({rank:(i+1), name:target.listData[i].nickName, total:target.listData[i].accuracy,time:target.listData[i].totleTimes, pic:target.listData[i].pic});
rankData.push({rank:(i+1), name:target.listData[i].nickName, total:target.listData[i].score,time:null, pic:target.listData[i].pic});
if(cc.fx.GameConfig.GM_INFO.userId == target.listData[i].userId){
self = true;
target.rankNumber = i;
@ -171,9 +171,9 @@ var GameTool = {
}
cc.fx.GameTool.subName(target.selfData.nickName,nameLength);
target.selfNode.getChildByName("nameLab").getComponent(cc.Label).string = target.selfData.nickName;
target.selfNode.getChildByName("totalLab").getComponent(cc.Label).string = target.selfData.accuracy + "%";
target.selfNode.getChildByName("totalLab").getComponent(cc.Label).string = target.selfData.score;
let timeTemp = cc.fx.GameTool.getTimeShenNong(target.selfData.totleTimes);
target.selfNode.getChildByName("timeLab").getComponent(cc.Label).string = timeTemp + "";
// target.selfNode.getChildByName("timeLab").getComponent(cc.Label).string = timeTemp + "";
switch(target.selfNode.getChildByName("rankLab").getComponent(cc.Label).string){
case "1":
target.selfNode.getChildByName("rank").getChildByName("one").active = true;
@ -232,81 +232,6 @@ var GameTool = {
cc.fx.StorageMessage.setStorage(cc.fx.storageType.storageTypeCustom,arrayList);
},
getFoodName(food){
var name = "葡萄";
switch(food){
case "baishao":
name = "白芍";
break;
case "jingjie":
name = "荆芥";
break;
case "renshen":
name = "人参";
break;
case "danshen":
name = "丹参";
break;
case "danggui":
name = "当归";
break;
case "gouqi":
name = "枸杞";
break;
case "mudan":
name = "牡丹";
break;
case "mulan":
name = "木兰";
break;
case "pugongying":
name = "蒲公英";
break;
case "moli":
name = "茉莉";
break;
case "jinju":
name = "金桔";
break;
case "dazao":
name = "大枣";
break;
case "lizi":
name = "李子";
break;
case "lizhi":
name = "荔枝";
break;
case "taozi":
name = "桃子";
break;
case "putao":
name = "葡萄";
break;
case "muchai":
name = "木柴";
break;
case "ganjiang":
name = "干姜";
break;
case "zhuye":
name = "竹叶";
break;
case "longyan":
name = "龙眼";
break;
case "chixiaodou":
name = "赤小豆";
break;
case "gancao":
name = "甘草";
break;
case "cha":
name = "茶";
break;
}
return name;
},
getSetScreenResolutionFlag: function () {
let size = cc.winSize;
@ -387,7 +312,7 @@ var GameTool = {
//获取时间戳
getTime(){
const timestamp = new Date().getTime();
const timestamp = Math.floor((new Date().getTime()) / 1000)
return timestamp;
},
pushLister:function () {

View File

@ -1,13 +0,0 @@
{
"ver": "1.1.3",
"uuid": "a4ed10e0-41cc-4533-9db8-0476e8a8d245",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

View File

@ -1,58 +0,0 @@
// Learn cc.Class:
// - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
cc.Class({
extends: cc.Component,
properties: {
tiledMapAfter: cc.TiledMap,
tiledMapOrigin: cc.TiledMap,
},
start () {
window.game = this;
var isAfter = true;
// var isAfter = false;
if (isAfter) {
this.tiledMapOrigin.node.active = false;
} else {
this.tiledMapAfter.node.active = false;
}
this.addTimeLog();
},
addTimeLog () {
let renderCount = 1;
cc.director.on(cc.Director.EVENT_BEFORE_DRAW, ()=>{
if (renderCount < 200) {
console.time("render");
}
});
cc.director.on(cc.Director.EVENT_AFTER_DRAW, ()=>{
if (renderCount++ < 200) {
console.timeEnd("render");
}
});
// cc.director.on(cc.Director.EVENT_BEFORE_UPDATE, ()=>{
// if (renderCount < 200) {
// console.time("logic");
// }
// });
// cc.director.on(cc.Director.EVENT_AFTER_UPDATE, ()=>{
// if (renderCount++ < 200) {
// console.timeEnd("logic");
// }
// });
},
});

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +0,0 @@
{
"ver": "1.3.2",
"uuid": "ec5b9995-a54c-47bd-adb5-27ec0160146e",
"importer": "scene",
"asyncLoadAssets": false,
"autoReleaseAssets": false,
"subMetas": {}
}

View File

@ -54,20 +54,29 @@
"__id__": 65
},
{
"__id__": 77
"__id__": 68
},
{
"__id__": 80
},
{
"__id__": 83
},
{
"__id__": 86
}
],
"_active": true,
"_components": [
{
"__id__": 80
"__id__": 89
},
{
"__id__": 81
"__id__": 90
}
],
"_prefab": {
"__id__": 82
"__id__": 91
},
"_opacity": 255,
"_color": {
@ -2393,6 +2402,113 @@
"fileId": "35xKcSVUZLopFFdXxCEm5O",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "tip",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 66
}
],
"_prefab": {
"__id__": 67
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 96,
"height": 96
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a3ef42a4-ab25-492d-b6c8-36d166c99a15"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "b2Xfw7RPZMhrj9rvQnCwPq",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "sp",
@ -2401,24 +2517,24 @@
"__id__": 1
},
"_children": [
{
"__id__": 66
},
{
"__id__": 69
},
{
"__id__": 72
},
{
"__id__": 75
}
],
"_active": true,
"_components": [
{
"__id__": 75
"__id__": 78
}
],
"_prefab": {
"__id__": 76
"__id__": 79
},
"_opacity": 255,
"_color": {
@ -2472,17 +2588,17 @@
"_name": "start",
"_objFlags": 0,
"_parent": {
"__id__": 65
"__id__": 68
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 67
"__id__": 70
}
],
"_prefab": {
"__id__": 68
"__id__": 71
},
"_opacity": 255,
"_color": {
@ -2507,7 +2623,7 @@
"ctor": "Float64Array",
"array": [
0,
28,
-72,
0,
0,
0,
@ -2536,7 +2652,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 66
"__id__": 69
},
"_enabled": true,
"_materials": [
@ -2581,17 +2697,17 @@
"_name": "end",
"_objFlags": 0,
"_parent": {
"__id__": 65
"__id__": 68
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 70
"__id__": 73
}
],
"_prefab": {
"__id__": 71
"__id__": 74
},
"_opacity": 255,
"_color": {
@ -2616,7 +2732,7 @@
"ctor": "Float64Array",
"array": [
0,
30,
-72,
0,
0,
0,
@ -2645,7 +2761,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 69
"__id__": 72
},
"_enabled": true,
"_materials": [
@ -2690,17 +2806,17 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 65
"__id__": 68
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 73
"__id__": 76
}
],
"_prefab": {
"__id__": 74
"__id__": 77
},
"_opacity": 255,
"_color": {
@ -2754,7 +2870,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
"__id__": 75
},
"_enabled": true,
"_materials": [
@ -2795,7 +2911,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
"__id__": 68
},
"_enabled": true,
"_materials": [
@ -2831,6 +2947,224 @@
"fileId": "96hwYYVvZIeJFUaZYzJVKS",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "tipWin",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 81
}
],
"_prefab": {
"__id__": 82
},
"_opacity": 100,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 96,
"height": 96
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 80
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "5cf814fe-501c-4786-b0a5-83ca60bf076e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": {
"__uuid__": "9830637c-e4e3-4df5-8d51-fc49b7d715b4"
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "15EUeQXjhK4bdrggtx0Sa9",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "tipLose",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 84
}
],
"_prefab": {
"__id__": 85
},
"_opacity": 76,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 96,
"height": 96
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 83
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "844c4867-c146-4f7d-862d-43badc488765"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": {
"__uuid__": "9830637c-e4e3-4df5-8d51-fc49b7d715b4"
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "78nuMNK0FERLGID3pg8G25",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "End",
@ -2842,11 +3176,11 @@
"_active": true,
"_components": [
{
"__id__": 78
"__id__": 87
}
],
"_prefab": {
"__id__": 79
"__id__": 88
},
"_opacity": 0,
"_color": {
@ -2900,7 +3234,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 77
"__id__": 86
},
"_enabled": true,
"_materials": [

View File

@ -1055,7 +1055,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
224.356,
260,
-2.205,
0,
0,
@ -1240,7 +1240,7 @@
"__id__": 1
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 35

BIN
assets/res/tipBg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

38
assets/res/tipBg.png.meta Normal file
View File

@ -0,0 +1,38 @@
{
"ver": "2.3.7",
"uuid": "d6270e9e-41d4-41c8-b47b-5f95d158c577",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 508,
"height": 81,
"platformSettings": {},
"subMetas": {
"tipBg": {
"ver": "1.0.6",
"uuid": "bef25075-f336-45e2-bd7a-7dd7abb8d726",
"importer": "sprite-frame",
"rawTextureUuid": "d6270e9e-41d4-41c8-b47b-5f95d158c577",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 508,
"height": 81,
"rawWidth": 508,
"rawHeight": 81,
"borderTop": 18,
"borderBottom": 23,
"borderLeft": 74,
"borderRight": 61,
"subMetas": {}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 KiB

After

Width:  |  Height:  |  Size: 53 KiB

BIN
assets/resources/Bg/bg3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

View File

@ -0,0 +1,38 @@
{
"ver": "2.3.7",
"uuid": "d968c8dc-d3c8-49af-b714-f9f92c84c88c",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 750,
"height": 1660,
"platformSettings": {},
"subMetas": {
"bg3": {
"ver": "1.0.6",
"uuid": "9a000aad-ece0-41f4-98ac-8c0418f54027",
"importer": "sprite-frame",
"rawTextureUuid": "d968c8dc-d3c8-49af-b714-f9f92c84c88c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 750,
"height": 1660,
"rawWidth": 750,
"rawHeight": 1660,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -15,7 +15,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1592,9},{96,96}}</string>
<string>{{1157,1247},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -30,7 +30,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1690,1},{96,96}}</string>
<string>{{987,1402},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -45,7 +45,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1788,1},{96,96}}</string>
<string>{{1085,1398},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -60,7 +60,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1886,1},{96,96}}</string>
<string>{{1264,964},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -75,7 +75,37 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1220,160},{96,96}}</string>
<string>{{1362,943},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>again.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{269,74}</string>
<key>spriteSourceSize</key>
<string>{269,74}</string>
<key>textureRect</key>
<string>{{1539,1},{269,74}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>alertBg.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{746,1123}</string>
<key>spriteSourceSize</key>
<string>{746,1123}</string>
<key>textureRect</key>
<string>{{1,1},{746,1123}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -90,7 +120,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1318,133},{96,96}}</string>
<string>{{987,1500},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -105,7 +135,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1416,133},{96,96}}</string>
<string>{{1085,1496},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -120,7 +150,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1514,113},{96,96}}</string>
<string>{{1539,272},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -135,7 +165,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1612,107},{96,96}}</string>
<string>{{1264,1062},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -150,7 +180,7 @@
<key>spriteSourceSize</key>
<string>{218,60}</string>
<key>textureRect</key>
<string>{{1268,9},{218,60}}</string>
<string>{{699,1479},{218,60}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -165,7 +195,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1710,99},{96,96}}</string>
<string>{{1362,1041},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -180,7 +210,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1808,99},{96,96}}</string>
<string>{{1261,1160},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -195,7 +225,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1906,99},{96,96}}</string>
<string>{{1255,1258},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -210,7 +240,7 @@
<key>spriteSourceSize</key>
<string>{218,60}</string>
<key>textureRect</key>
<string>{{1268,71},{218,60}}</string>
<string>{{699,1541},{218,60}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -225,7 +255,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1220,258},{96,96}}</string>
<string>{{1183,1382},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -240,7 +270,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1318,231},{96,96}}</string>
<string>{{1183,1480},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -255,7 +285,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1416,231},{96,96}}</string>
<string>{{1281,1356},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -270,7 +300,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1514,211},{96,96}}</string>
<string>{{1281,1454},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -285,7 +315,7 @@
<key>spriteSourceSize</key>
<string>{72,72}</string>
<key>textureRect</key>
<string>{{1013,341},{72,72}}</string>
<string>{{1080,1324},{72,72}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -300,7 +330,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1612,205},{96,96}}</string>
<string>{{1353,1258},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -315,7 +345,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1710,197},{96,96}}</string>
<string>{{1359,1160},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -330,7 +360,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1808,197},{96,96}}</string>
<string>{{1379,1356},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -345,7 +375,7 @@
<key>spriteSourceSize</key>
<string>{84,84}</string>
<key>textureRect</key>
<string>{{747,420},{84,84}}</string>
<string>{{1281,1552},{84,84}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -360,7 +390,7 @@
<key>spriteSourceSize</key>
<string>{750,354}</string>
<key>textureRect</key>
<string>{{1,1},{750,354}}</string>
<string>{{749,1},{750,354}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -375,7 +405,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1906,197},{96,96}}</string>
<string>{{1379,1454},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -390,7 +420,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1318,329},{96,96}}</string>
<string>{{1451,1258},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -405,7 +435,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1416,329},{96,96}}</string>
<string>{{1549,370},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -420,7 +450,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1514,309},{96,96}}</string>
<string>{{1549,468},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -435,7 +465,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1612,303},{96,96}}</string>
<string>{{1549,566},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -450,7 +480,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1710,295},{96,96}}</string>
<string>{{1549,664},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -465,7 +495,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1808,295},{96,96}}</string>
<string>{{1549,762},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -480,7 +510,7 @@
<key>spriteSourceSize</key>
<string>{96,36}</string>
<key>textureRect</key>
<string>{{503,439},{96,36}}</string>
<string>{{699,1603},{96,36}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -495,7 +525,7 @@
<key>spriteSourceSize</key>
<string>{35,96}</string>
<key>textureRect</key>
<string>{{1,469},{35,96}}</string>
<string>{{1154,1345},{35,96}}</string>
<key>textureRotated</key>
<true/>
</dict>
@ -510,7 +540,37 @@
<key>spriteSourceSize</key>
<string>{258,258}</string>
<key>textureRect</key>
<string>{{753,160},{258,258}}</string>
<string>{{716,1143},{258,258}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>fenge.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{6,134}</string>
<key>spriteSourceSize</key>
<string>{6,134}</string>
<key>textureRect</key>
<string>{{1493,357},{6,134}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>finishi.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{562,177}</string>
<key>spriteSourceSize</key>
<string>{562,177}</string>
<key>textureRect</key>
<string>{{749,785},{562,177}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -525,7 +585,7 @@
<key>spriteSourceSize</key>
<string>{744,80}</string>
<key>textureRect</key>
<string>{{1,357},{744,80}}</string>
<string>{{749,703},{744,80}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -540,7 +600,37 @@
<key>spriteSourceSize</key>
<string>{72,72}</string>
<key>textureRect</key>
<string>{{1087,341},{72,72}}</string>
<string>{{1460,943},{72,72}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>labelBg.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{713,324}</string>
<key>spriteSourceSize</key>
<string>{713,324}</string>
<key>textureRect</key>
<string>{{1,1126},{713,324}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>labelJiao.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{102,76}</string>
<key>spriteSourceSize</key>
<string>{102,76}</string>
<key>textureRect</key>
<string>{{976,1324},{102,76}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -555,7 +645,7 @@
<key>spriteSourceSize</key>
<string>{49,32}</string>
<key>textureRect</key>
<string>{{197,469},{49,32}}</string>
<string>{{1495,703},{49,32}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -570,7 +660,7 @@
<key>spriteSourceSize</key>
<string>{84,84}</string>
<key>textureRect</key>
<string>{{833,420},{84,84}}</string>
<string>{{1367,1552},{84,84}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -585,9 +675,9 @@
<key>spriteSourceSize</key>
<string>{412,6}</string>
<key>textureRect</key>
<string>{{1268,1},{412,6}}</string>
<string>{{1501,1},{412,6}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>little_down.png</key>
<dict>
@ -600,7 +690,7 @@
<key>spriteSourceSize</key>
<string>{46,46}</string>
<key>textureRect</key>
<string>{{699,439},{46,46}}</string>
<string>{{1501,415},{46,46}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -615,7 +705,7 @@
<key>spriteSourceSize</key>
<string>{46,46}</string>
<key>textureRect</key>
<string>{{1165,409},{46,46}}</string>
<string>{{1501,463},{46,46}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -630,7 +720,7 @@
<key>spriteSourceSize</key>
<string>{46,46}</string>
<key>textureRect</key>
<string>{{1213,356},{46,46}}</string>
<string>{{1501,511},{46,46}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -645,7 +735,7 @@
<key>spriteSourceSize</key>
<string>{46,46}</string>
<key>textureRect</key>
<string>{{1213,404},{46,46}}</string>
<string>{{1501,559},{46,46}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -660,7 +750,7 @@
<key>spriteSourceSize</key>
<string>{46,46}</string>
<key>textureRect</key>
<string>{{1261,356},{46,46}}</string>
<string>{{1501,607},{46,46}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -675,7 +765,37 @@
<key>spriteSourceSize</key>
<string>{46,46}</string>
<key>textureRect</key>
<string>{{1261,404},{46,46}}</string>
<string>{{1501,655},{46,46}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>numberBg.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{156,156}</string>
<key>spriteSourceSize</key>
<string>{156,156}</string>
<key>textureRect</key>
<string>{{1313,785},{156,156}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>over.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{696,193}</string>
<key>spriteSourceSize</key>
<string>{696,193}</string>
<key>textureRect</key>
<string>{{1,1452},{696,193}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -690,7 +810,7 @@
<key>spriteSourceSize</key>
<string>{500,18}</string>
<key>textureRect</key>
<string>{{1,439},{500,18}}</string>
<string>{{749,1103},{500,18}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -705,7 +825,7 @@
<key>spriteSourceSize</key>
<string>{500,18}</string>
<key>textureRect</key>
<string>{{753,140},{500,18}}</string>
<string>{{749,1123},{500,18}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -720,7 +840,82 @@
<key>spriteSourceSize</key>
<string>{102,102}</string>
<key>textureRect</key>
<string>{{1488,9},{102,102}}</string>
<string>{{1157,1143},{102,102}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>rank_Btn.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{269,74}</string>
<key>spriteSourceSize</key>
<string>{269,74}</string>
<key>textureRect</key>
<string>{{716,1403},{269,74}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>rank_Self.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{750,120}</string>
<key>spriteSourceSize</key>
<string>{750,120}</string>
<key>textureRect</key>
<string>{{749,581},{750,120}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>rank_icon1.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{66,66}</string>
<key>spriteSourceSize</key>
<string>{66,66}</string>
<key>textureRect</key>
<string>{{919,1479},{66,66}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>rank_icon2.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{66,66}</string>
<key>spriteSourceSize</key>
<string>{66,66}</string>
<key>textureRect</key>
<string>{{919,1547},{66,66}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>rank_icon3.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{66,66}</string>
<key>spriteSourceSize</key>
<string>{66,66}</string>
<key>textureRect</key>
<string>{{1481,785},{66,66}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -735,7 +930,7 @@
<key>spriteSourceSize</key>
<string>{84,84}</string>
<key>textureRect</key>
<string>{{919,420},{84,84}}</string>
<string>{{1453,1552},{84,84}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -750,7 +945,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1906,295},{96,96}}</string>
<string>{{1549,860},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -765,7 +960,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1514,407},{96,96}}</string>
<string>{{1549,958},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -780,7 +975,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1612,401},{96,96}}</string>
<string>{{1549,1056},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -795,7 +990,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1710,393},{96,96}}</string>
<string>{{1549,1154},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -810,7 +1005,7 @@
<key>spriteSourceSize</key>
<string>{72,72}</string>
<key>textureRect</key>
<string>{{1091,415},{72,72}}</string>
<string>{{1460,1017},{72,72}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -825,7 +1020,7 @@
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1808,393},{96,96}}</string>
<string>{{1549,1252},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -840,7 +1035,7 @@
<key>spriteSourceSize</key>
<string>{513,137}</string>
<key>textureRect</key>
<string>{{753,1},{513,137}}</string>
<string>{{749,964},{513,137}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -855,7 +1050,7 @@
<key>spriteSourceSize</key>
<string>{96,36}</string>
<key>textureRect</key>
<string>{{601,439},{96,36}}</string>
<string>{{797,1603},{96,36}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -870,7 +1065,52 @@
<key>spriteSourceSize</key>
<string>{35,96}</string>
<key>textureRect</key>
<string>{{99,469},{35,96}}</string>
<string>{{1477,1356},{35,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>tipno.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{96,96}</string>
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1549,1350},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>tipyes.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{96,96}</string>
<key>spriteSourceSize</key>
<string>{96,96}</string>
<key>textureRect</key>
<string>{{1477,1454},{96,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>totalScore.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{332,28}</string>
<key>spriteSourceSize</key>
<string>{332,28}</string>
<key>textureRect</key>
<string>{{1509,1},{332,28}}</string>
<key>textureRotated</key>
<true/>
</dict>
@ -885,9 +1125,9 @@
<key>spriteSourceSize</key>
<string>{66,50}</string>
<key>textureRect</key>
<string>{{1161,341},{66,50}}</string>
<string>{{1481,853},{66,50}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>turn_wawe2.png</key>
<dict>
@ -900,7 +1140,7 @@
<key>spriteSourceSize</key>
<string>{179,179}</string>
<key>textureRect</key>
<string>{{1013,160},{179,179}}</string>
<string>{{976,1143},{179,179}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -915,7 +1155,7 @@
<key>spriteSourceSize</key>
<string>{84,84}</string>
<key>textureRect</key>
<string>{{1005,420},{84,84}}</string>
<string>{{1539,1552},{84,84}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -930,7 +1170,7 @@
<key>spriteSourceSize</key>
<string>{24,138}</string>
<key>textureRect</key>
<string>{{1194,160},{24,138}}</string>
<string>{{1615,1},{24,138}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -945,9 +1185,9 @@
<key>spriteSourceSize</key>
<string>{8,118}</string>
<key>textureRect</key>
<string>{{131,459},{8,118}}</string>
<string>{{1615,141},{8,118}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>vertical_wave3.png</key>
<dict>
@ -960,9 +1200,9 @@
<key>spriteSourceSize</key>
<string>{8,128}</string>
<key>textureRect</key>
<string>{{1,459},{8,128}}</string>
<string>{{1471,785},{8,128}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>xirang.png</key>
<dict>
@ -975,7 +1215,22 @@
<key>spriteSourceSize</key>
<string>{72,72}</string>
<key>textureRect</key>
<string>{{1906,393},{72,72}}</string>
<string>{{1460,1091},{72,72}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>yes.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{742,222}</string>
<key>spriteSourceSize</key>
<string>{742,222}</string>
<key>textureRect</key>
<string>{{749,357},{742,222}}</string>
<key>textureRotated</key>
<false/>
</dict>
@ -991,9 +1246,9 @@
<key>realTextureFileName</key>
<string>publicUI.png</string>
<key>size</key>
<string>{2003,505}</string>
<string>{1646,1646}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:20005818a3c3c6bcf80ac34eb2d2c852:4809596494a6c29c635551c021810865:1c7d81f68058ada321959f2296017bb5$</string>
<string>$TexturePacker:SmartUpdate:d53d740a75a6a700534efab74ee29f17:4850efae76c30a1a87eb9235a30fa0e6:1c7d81f68058ada321959f2296017bb5$</string>
<key>textureFileName</key>
<string>publicUI.png</string>
</dict>

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 396 KiB

View File

@ -8,8 +8,8 @@
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2003,
"height": 505,
"width": 1646,
"height": 1646,
"platformSettings": {},
"subMetas": {
"publicUI": {
@ -20,14 +20,14 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -1,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2001,
"height": 505,
"rawWidth": 2003,
"rawHeight": 505,
"width": 1646,
"height": 1646,
"rawWidth": 1646,
"rawHeight": 1646,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 53 KiB

File diff suppressed because one or more lines are too long

View File

@ -5,8 +5,8 @@ window.boot = function () {
window._CCSettings = undefined;
var onProgress = null;
var RESOURCES = remote_url + cc.AssetManager.BuiltinBundleName.RESOURCES;
// var RESOURCES = cc.AssetManager.BuiltinBundleName.RESOURCES;
// var RESOURCES = remote_url + cc.AssetManager.BuiltinBundleName.RESOURCES;
var RESOURCES = cc.AssetManager.BuiltinBundleName.RESOURCES;
var INTERNAL = cc.AssetManager.BuiltinBundleName.INTERNAL;
var MAIN = cc.AssetManager.BuiltinBundleName.MAIN;
function setLoadingDisplay () {

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

View File

@ -0,0 +1 @@
{"paths":{"1":["effects/builtin-2d-spine",0],"2":["effects/builtin-2d-gray-sprite",0],"3":["effects/builtin-2d-sprite",0],"4":["materials/builtin-unlit",1],"5":["effects/builtin-3d-trail",0],"6":["effects/builtin-2d-graphics",0],"7":["materials/builtin-2d-gray-sprite",1],"8":["materials/builtin-3d-trail",1],"9":["effects/builtin-unlit",0],"10":["materials/builtin-2d-base",1],"11":["materials/builtin-2d-spine",1],"12":["materials/builtin-2d-graphics",1],"13":["effects/builtin-clear-stencil",0],"14":["materials/builtin-clear-stencil",1],"15":["materials/builtin-2d-label",1],"16":["materials/builtin-2d-sprite",1],"17":["effects/builtin-2d-label",0]},"types":["cc.EffectAsset","cc.Material"],"uuids":["02delMVqdBD70a/HSD99FK","0ek66qC1NOQLjgYmi04HvX","14TDKXr2NJ6LjvHPops74o","28dPjdQWxEQIG3VVl1Qm6T","2aKWBXJHxKHLvrBUi2yYZQ","2afAA24LNP4YmYiaVLiivs","30aC+Hnw1PF4pEcoY3kUYb","3ae7efMv1CLq2ilvUY/tQi","46bU+b5fROqIXVPG6aZWWK","6dkeWRTOBGXICfYQ7JUBnG","6fgBCSDDdPMInvyNlggls2","7a/QZLET9IDreTiBfRn2PD","a1U5RdJRFMFL57BdJC9H1X","c0BAyVxX9JzZy8EjFrc9DU","cffgu4qBxEqa150o1DmRAy","e0LYfU5ZlNFoAB4UiRrGUG","ecpdLyjvZBwrvm+cedCcQy","f1h0LXVtJOta5JLZ1xCzfI"],"scenes":{},"redirect":[],"deps":[],"packs":{"0967b326a":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},"name":"internal","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["0967b326a","1f618"],"native":[0,"cea68"]}}

View File

@ -1 +0,0 @@
{"paths":{"1":["effects/builtin-2d-spine",0],"2":["effects/builtin-2d-gray-sprite",0],"3":["effects/builtin-2d-sprite",0],"4":["materials/builtin-unlit",1],"5":["effects/builtin-3d-trail",0],"6":["effects/builtin-2d-graphics",0],"7":["materials/builtin-2d-gray-sprite",1],"8":["materials/builtin-3d-particle",1],"9":["materials/builtin-3d-trail",1],"11":["effects/builtin-unlit",0],"12":["materials/builtin-2d-base",1],"13":["materials/builtin-2d-spine",1],"14":["effects/builtin-3d-particle",0],"15":["materials/builtin-2d-graphics",1],"16":["effects/builtin-clear-stencil",0],"17":["materials/builtin-clear-stencil",1],"18":["materials/builtin-2d-label",1],"19":["materials/builtin-2d-sprite",1],"20":["effects/builtin-2d-label",0]},"types":["cc.EffectAsset","cc.Material"],"uuids":["02delMVqdBD70a/HSD99FK","0ek66qC1NOQLjgYmi04HvX","14TDKXr2NJ6LjvHPops74o","28dPjdQWxEQIG3VVl1Qm6T","2aKWBXJHxKHLvrBUi2yYZQ","2afAA24LNP4YmYiaVLiivs","30aC+Hnw1PF4pEcoY3kUYb","3ae7efMv1CLq2ilvUY/tQi","43L6CczwNM/6GGmCYEQIoH","46bU+b5fROqIXVPG6aZWWK","60AwGqM1dKELCGhPAR+jK6","6dkeWRTOBGXICfYQ7JUBnG","6fgBCSDDdPMInvyNlggls2","7a/QZLET9IDreTiBfRn2PD","82migssElAGb04Ws6NimQX","a1U5RdJRFMFL57BdJC9H1X","c0BAyVxX9JzZy8EjFrc9DU","cffgu4qBxEqa150o1DmRAy","e0LYfU5ZlNFoAB4UiRrGUG","ecpdLyjvZBwrvm+cedCcQy","f1h0LXVtJOta5JLZ1xCzfI"],"scenes":{},"redirect":[],"deps":[],"packs":{"0b6c4470e":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]},"name":"internal","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["0b6c4470e","9537f"],"native":[0,"cea68",10,"c3a3a"]}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

View File

@ -1 +0,0 @@
{"paths":{},"types":[],"uuids":["1b7BFtcqRCaIOW9TCZb/si","29FYIk+N1GYaeWH/q1NxQO","2dL3kvpAxJu6GJ7RdqJG5J","4bnFp+xkVIpJrKXfOBzk71","4er1GLNexCYpKNTUl8Pygw","61cyPdEfRN047sDK9rO0W5","71VhFCTINJM6/Ky3oX9nBT","9cCAYtTPFLbqi6SjiBzH59","b4P/PCArtIdIH38t6mlw8Y","d608qFRoFHwbXd0Dap056i","d8HsitJHxOYqo801xBk8ev","d9uKRQ5ElBE4KVomr1Q5PL","e8Ueib+qJEhL6mXAHdnwbi","e97GVMl6JHh5Ml5qEDdSGa","ecW5mVpUxHva21J+wBYBRu","f0BIwQ8D5Ml7nTNQbh1YlS","02delMVqdBD70a/HSD99FK","02+qdP/LNMYprXxb2rzSoK","08nl3uyqJJA7uoE3GvzFXX","12h4oyoGNCtLIznkGQVMCE","13N/YjxRlBvJuJQONzZgQf","15Px8zkb9PNqM/8EKhh8Au","35noyLK/VOjrkOp2VPgfL5","3d1+VYOqRFMru62rlaVFw5","40GB4MeJ9H8bo82SSG31Ld","47ZX8FJD5PKqMtIAYx8cJS","5cO7kybDxGj4ipyMYdRYZB","5fDWUEFjZBRI2eMjZLlvjR","5f5dyqtRNNxaFmVzYns6FZ","61voSiLytCdKbvQdUslVWv","72w0D96+tCzqgcxJNILv57","73N8EX9n1McabSpjwsAUFl","75rGnU/uhK8bMsTI+rC297","76pgt/TFZD470MIGj+PmEU","7akOdsN/hPjITp8Fs0r+SB","86RTsIyV1N174519l+P5Pb","98MGN85ONN9Y1R/Em31xW0","9aBNF2GZ1IKJnk8EyCWn0h","9bvaMerUlDyary99mJa6xp","9ekcNRvRdEa7dzO3Ff5rpI","a2MjXRFdtLlYQ5ouAFv/+R","a8Z+I8DLJOTItWbXZ7o+On","ab1P7uwLFP0LwHkn9ME+r+","b2Jo5hfNdP3IxDaDbBBpRD","b67eQ8r1FMH4Sc4NPX9Pm9","b7ZgPiwWZM6a83QXze3eEu","b8DySHAFpJKL3lBPpBrtpx","b9JgB6PD5JgbHAY4hk38iS","bcEK9sCkJI4p6KlRiOXup5","c0HHeDVMpCarROFz9NuoqK","c2TGyr0HlFNI+U5EHVCc9G","c5bTdQ6p5KJY7kyiMGyG9+","c9MNZOJwdHT7aRYiDiky3d","cd0Te7CUhF2IPZcu9Ump28","cfqcs4X2pESrBI8GS67vAW","d06m+9PQJHZJUbZvAeEEQ8","d5BkUa/nxBx5+b0q2RfGhs","d5OjVl+DNCYZB21IIypRPF","dbBrjVZzVM4IdI7f4G6f0w","ddqDlhAkZLWIL1y8avBH5u","e0b3wP+fNDrJPw/uXtbPAm","e4mOksb1lGdYpf3qDPlJ1m","ecpdLyjvZBwrvm+cedCcQy","f7bzZZX0lHQ4pY2wrfzNRV","fbFdFD+0hProkh5fAFST+s","fcnzeeqxVHkq3OZWAMR5PH","ffqy1jFwBIIY2Vn01HF6ob"],"scenes":{"db://assets/Scene/GameScene.fire":4,"db://assets/Scene/LoadScene.fire":7,"db://assets/Scene/OverScene.fire":3,"db://assets/Scene/RankScene.fire":2,"db://assets/TmoDemo/TmoScene.fire":14},"redirect":[16,0,17,1,18,1,19,1,20,1,21,1,22,1,23,1,27,1,29,1,30,1,31,1,32,1,33,1,35,1,36,1,41,1,42,1,43,1,44,1,45,1,46,1,47,1,48,1,49,1,50,1,51,1,53,1,54,1,56,1,57,1,58,1,59,1,60,1,61,1,62,0,63,1,64,1,65,1,66,1],"deps":["internal","resources"],"packs":{"010161222":[0,5,6,8,9,10,11,12],"02989e146":[1,7,13,15],"03c0a1bf1":[1,25,4,34,39,40,52,13,15],"09eb66850":[24,37,55,14],"0c8cb01a1":[2,26,28,38]},"name":"main","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["010161222","fc990","02989e146","3fdde","03c0a1bf1","14e14","09eb66850","101ec","0c8cb01a1","b2179",3,"996a3"],"native":[0,"fb458",5,"6d707",6,"c06a9",8,"83fcc",9,"d55c2",10,"cdbc9",11,"fb458",12,"90cf4"]}}

View File

@ -0,0 +1 @@
{"paths":{},"types":[],"uuids":["29FYIk+N1GYaeWH/q1NxQO","2dL3kvpAxJu6GJ7RdqJG5J","4bnFp+xkVIpJrKXfOBzk71","4er1GLNexCYpKNTUl8Pygw","61cyPdEfRN047sDK9rO0W5","71VhFCTINJM6/Ky3oX9nBT","9cCAYtTPFLbqi6SjiBzH59","9cGJu2Po1E0Ig5JOShYLbd","a2MjXRFdtLlYQ5ouAFv/+R","b4P/PCArtIdIH38t6mlw8Y","d608qFRoFHwbXd0Dap056i","d8HsitJHxOYqo801xBk8ev","e8Ueib+qJEhL6mXAHdnwbi","e97GVMl6JHh5Ml5qEDdSGa","f0BIwQ8D5Ml7nTNQbh1YlS","02delMVqdBD70a/HSD99FK","02+qdP/LNMYprXxb2rzSoK","08nl3uyqJJA7uoE3GvzFXX","09bYkL1mtAM5O2O8+V7qHc","0dYUDhpatFq6MgzYbrj9Ao","12h4oyoGNCtLIznkGQVMCE","13N/YjxRlBvJuJQONzZgQf","15Px8zkb9PNqM/8EKhh8Au","35noyLK/VOjrkOp2VPgfL5","3d1+VYOqRFMru62rlaVFw5","47ZX8FJD5PKqMtIAYx8cJS","5cO7kybDxGj4ipyMYdRYZB","5c+BT+UBxHhrClg8pgvwdu","5fDWUEFjZBRI2eMjZLlvjR","5f5dyqtRNNxaFmVzYns6FZ","61voSiLytCdKbvQdUslVWv","67jm/DIIFDxIZZJwIYExU4","72w0D96+tCzqgcxJNILv57","73N8EX9n1McabSpjwsAUFl","75rGnU/uhK8bMsTI+rC297","76pgt/TFZD470MIGj+PmEU","7akOdsN/hPjITp8Fs0r+SB","84TEhnwUZPfYYtQ7rcSIdl","86RTsIyV1N174519l+P5Pb","8d6VAk+VtOSYLmKMYTu7Gp","906d84Zp1AyY2/IlNF6g7B","93rh8qRmZNwqSgRWn/HV4y","98MGN85ONN9Y1R/Em31xW0","9aAAqt7OBB9JisjAQY9UAn","9bvaMerUlDyary99mJa6xp","9ekcNRvRdEa7dzO3Ff5rpI","9fAapsHpVHi71EfwJl8ns5","a370KkqyVJLbbINtFmyZoV","a39q6sihlPfb0M5TnFO2VM","a8Z+I8DLJOTItWbXZ7o+On","ab1P7uwLFP0LwHkn9ME+r+","b2Jo5hfNdP3IxDaDbBBpRD","b3zo/554xPt4CdlPazRDpG","b67eQ8r1FMH4Sc4NPX9Pm9","b7ZgPiwWZM6a83QXze3eEu","b8DySHAFpJKL3lBPpBrtpx","b9JgB6PD5JgbHAY4hk38iS","bcEK9sCkJI4p6KlRiOXup5","c0HHeDVMpCarROFz9NuoqK","c2TGyr0HlFNI+U5EHVCc9G","c5bTdQ6p5KJY7kyiMGyG9+","c9MNZOJwdHT7aRYiDiky3d","caMzEruwxDTbLoqA7DEd3/","cd0Te7CUhF2IPZcu9Ump28","cfqcs4X2pESrBI8GS67vAW","d1VSe4M39DrLKWwnZb3BZL","d5BkUa/nxBx5+b0q2RfGhs","d5OjVl+DNCYZB21IIypRPF","dbBrjVZzVM4IdI7f4G6f0w","ddqDlhAkZLWIL1y8avBH5u","e0b3wP+fNDrJPw/uXtbPAm","e4mOksb1lGdYpf3qDPlJ1m","e8GI4uyrpF67GYzhTP5An/","ecpdLyjvZBwrvm+cedCcQy","ed15lxBRBEnpnPnF2neaVF","ed8zUHEbVGj5LsmjJJ84R5","f2XLSzyLBDmY65+MMcVh/R","f7bzZZX0lHQ4pY2wrfzNRV","fbFdFD+0hProkh5fAFST+s","fcnzeeqxVHkq3OZWAMR5PH","ffqy1jFwBIIY2Vn01HF6ob"],"scenes":{"db://assets/Scene/GameScene.fire":3,"db://assets/Scene/LoadScene.fire":6,"db://assets/Scene/OverScene.fire":2,"db://assets/Scene/RankScene.fire":1},"redirect":[15,0,16,1,17,1,18,1,19,1,20,1,21,1,22,1,23,1,24,1,27,1,28,1,30,1,31,1,32,1,33,1,34,1,35,1,37,1,38,1,39,1,40,1,41,1,42,1,43,1,46,1,48,1,49,1,50,1,51,1,52,1,53,1,54,1,55,1,56,1,57,1,58,1,59,1,60,1,62,1,63,1,64,1,65,1,66,1,67,1,68,1,69,1,70,1,71,1,72,1,73,0,74,1,75,1,76,1,77,1,78,1,79,1,80,1],"deps":["internal","resources"],"packs":{"02989e146":[0,6,13,14],"0844f1f67":[4,5,7,9,10,11,12],"0c8cb01a1":[1,26,29,44],"0d9744cd3":[0,25,3,36,45,8,47,61,13,14],"0f2adc401":[2,8]},"name":"main","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["02989e146","44667","0844f1f67","a5a37","0c8cb01a1","d43db","0d9744cd3","96754","0f2adc401","3dc3b"],"native":[4,"6d707",5,"c06a9",7,"3814e",9,"83fcc",10,"d55c2",11,"cdbc9",12,"90cf4"]}}

View File

@ -1 +0,0 @@
[1,["ecpdLyjvZBwrvm+cedCcQy","f0BIwQ8D5Ml7nTNQbh1YlS","e97GVMl6JHh5Ml5qEDdSGa","29FYIk+N1GYaeWH/q1NxQO","71VhFCTINJM6/Ky3oX9nBT","cd0Te7CUhF2IPZcu9Ump28","35noyLK/VOjrkOp2VPgfL5","b67eQ8r1FMH4Sc4NPX9Pm9","b4P/PCArtIdIH38t6mlw8Y","e8Ueib+qJEhL6mXAHdnwbi"],["node","_textureSetter","_spriteFrame","_N$target","_parent","_N$pressedSprite","_N$hoverSprite","_N$disabledSprite","testVersion","scene","_N$normalSprite"],[["cc.Node",["_name","_id","_objFlags","_components","_contentSize","_trs","_parent","_children","_color"],0,9,5,7,1,2,5],["cc.Widget",["_alignFlags","alignMode","_right","_bottom","_originalWidth","_originalHeight","_left","_top","node"],-5,1],"cc.SpriteFrame",["cc.Button",["_N$transition","zoomScale","node","clickEvents","_N$target","_N$normalColor","_N$pressedColor","_N$disabledColor","_N$pressedSprite","_N$hoverSprite","_N$disabledSprite","_N$normalSprite"],1,1,9,1,5,5,5,6,6,6,6],["cc.Sprite",["_type","node","_materials","_spriteFrame"],2,1,3,6],["cc.SceneAsset",["_name","asyncLoadAssets"],1],["cc.Node",["_name","_parent","_components","_contentSize","_trs"],2,1,12,5,7],["cc.Canvas",["_fitWidth","_fitHeight","node","_designResolution"],1,1,5],["454adgphRpA6oq5lB6Cg1fK",["localTest","clientTestVersion","node","testVersion"],1,1,1],["cc.ClickEvent",["_componentId","handler","target"],1,1],["cc.Camera",["_clearFlags","_depth","node"],1,1],["5c9b8FZiaNLMrMDs9T3rByf",["node"],3,1],["cc.Label",["_string","_fontSize","_lineHeight","_N$horizontalAlign","_N$verticalAlign","node","_materials"],-2,1,3],["cc.Scene",["_name","_active","autoReleaseAssets","_children","_anchorPoint","_trs"],0,2,5,7]],[[0,0,6,3,4,5,2],[9,0,1,2,3],[12,0,1,2,3,4,5,6,6],[1,0,2,3,8,4],[4,0,1,2,3,2],[5,0,1,3],[0,0,1,7,3,4,5,3],[0,0,6,7,3,8,4,5,2],[0,0,2,3,4,5,3],[0,0,6,3,4,2],[0,0,6,7,3,4,5,2],[6,0,1,2,3,4,2],[7,0,1,2,3,3],[1,0,8,2],[1,1,0,6,2,7,3,4,5,8,9],[1,1,0,4,5,8,5],[8,0,1,2,3,3],[4,1,2,3,1],[3,1,0,2,3,4,3],[3,1,0,2,3,5,6,7,4,8,9,10,3],[3,0,2,3,5,6,7,4,11,8,9,10,2],[10,0,1,2,3],[11,0,1],[13,0,1,2,3,4,5,4]],[[[{"name":"default_btn_disabled","rect":[0,0,40,40],"offset":[0,0],"originalSize":[40,40],"capInsets":[12,12,12,12]}],[2],0,[0],[1],[4]],[[[5,"LoadScene",null],[6,"Canvas","a5esZu+45LA5mBpvttspPD",[-5,-6,-7,-8,-9,-10],[[12,true,false,-1,[5,750,1334]],[13,45,-2],[16,true,"1.0.2",-4,-3]],[5,750,1334],[375,667,0,0,0,0,1,1,1,1]],[0,"New Sprite",1,[[17,-11,[0],1],[18,1.1,3,-13,[[1,"454adgphRpA6oq5lB6Cg1fK","startGame",1]],-12]],[5,750,1660],[0,0,0,0,0,0,1,1,1,0]],[7,"Rank",1,[-16,-17],[[19,1.1,3,-15,[[1,"454adgphRpA6oq5lB6Cg1fK","openRank",1]],[4,4293322470],[4,4291348680],[4,3363338360],-14,5,6,7]],[4,4278190314],[5,100,40],[258.955,-476.544,0,0,0,0,1,1,1,1]],[0,"Background",3,[[4,1,-18,[2],3],[14,0,45,-1,-1,-31,-31,100,40,-19]],[5,102,102],[0,0,0,0,0,0,1,1,1,0]],[8,"Background",512,[[4,1,-20,[10],11],[15,0,45,100,40,-21]],[5,513,137],[0,0,0,0,0,0,1,1,1,0]],[9,"Main Camera",1,[[21,7,-1,-22],[22,-23]],[5,960,640]],[11,"New Label",1,[[-24,[3,36,4.176999999999964,1.3799999999999955,-25]],1,4],[5,66.72,37.8],[337.463,-646.72,0,0,0,0,1,1,1,1]],[0,"version",1,[[2,"版本号:",30,30,1,1,-26,[9]],[3,36,74.243,2.282000000000039,-27]],[5,98.33,37.8],[251.592,-645.818,0,0,0,0,1,1,1,1]],[10,"New Button",1,[5],[[20,3,-28,[[1,"454adgphRpA6oq5lB6Cg1fK","startGame",1]],[4,4293322470],[4,4291348680],[4,3363338360],5,12,13,14,15]],[5,513,137],[0,-313.512,0,0,0,0,1,1,1,1]],[23,"New Node",false,true,[1],[0,0,0],[0,0,0,0,0,0,1,1,1,1]],[0,"New Label",3,[[2,"排 行",23,23,1,1,-29,[4]]],[5,52.39,28.98],[0.402,-49.341,0,0,0,0,1,1,1,1]],[2,"0.0.0",30,30,1,1,7,[8]]],0,[0,0,1,0,0,1,0,8,12,0,0,1,0,-1,6,0,-2,2,0,-3,3,0,-4,7,0,-5,8,0,-6,9,0,0,2,0,3,2,0,0,2,0,3,4,0,0,3,0,-1,4,0,-2,11,0,0,4,0,0,4,0,0,5,0,0,5,0,0,6,0,0,6,0,-1,12,0,0,7,0,0,8,0,0,8,0,0,9,0,0,11,0,9,10,1,4,10,5,4,9,29],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-1,2,-1,2,-1,5,6,7,-1,-1,-1,2,10,5,6,7],[0,5,0,6,0,2,1,3,0,0,0,7,1,2,1,3]],[[{"name":"default_btn_pressed","rect":[0,0,40,40],"offset":[0,0],"originalSize":[40,40],"capInsets":[12,12,12,12]}],[2],0,[0],[1],[8]],[[{"name":"default_btn_normal","rect":[0,0,40,40],"offset":[0,0],"originalSize":[40,40],"capInsets":[12,12,12,12]}],[2],0,[0],[1],[9]]]]

View File

@ -0,0 +1 @@
[1,["ecpdLyjvZBwrvm+cedCcQy","f0BIwQ8D5Ml7nTNQbh1YlS","e97GVMl6JHh5Ml5qEDdSGa","29FYIk+N1GYaeWH/q1NxQO","71VhFCTINJM6/Ky3oX9nBT","cd0Te7CUhF2IPZcu9Ump28","35noyLK/VOjrkOp2VPgfL5","b67eQ8r1FMH4Sc4NPX9Pm9","b4P/PCArtIdIH38t6mlw8Y","e8Ueib+qJEhL6mXAHdnwbi"],["node","_textureSetter","_spriteFrame","_parent","_N$pressedSprite","_N$hoverSprite","_N$disabledSprite","testVersion","_N$target","scene","_N$normalSprite"],[["cc.Node",["_name","_id","_objFlags","_components","_contentSize","_trs","_parent","_children","_color"],0,9,5,7,1,2,5],["cc.Widget",["_alignFlags","alignMode","_right","_bottom","_originalWidth","_originalHeight","_left","_top","node"],-5,1],"cc.SpriteFrame",["cc.Button",["_N$transition","zoomScale","node","clickEvents","_N$normalColor","_N$pressedColor","_N$disabledColor","_N$target","_N$pressedSprite","_N$hoverSprite","_N$disabledSprite","_N$normalSprite"],1,1,9,5,5,5,1,6,6,6,6],["cc.Sprite",["_type","node","_materials","_spriteFrame"],2,1,3,6],["cc.SceneAsset",["_name","asyncLoadAssets"],1],["cc.Node",["_name","_parent","_components","_contentSize","_trs"],2,1,12,5,7],["cc.Canvas",["_fitWidth","_fitHeight","node","_designResolution"],1,1,5],["454adgphRpA6oq5lB6Cg1fK",["clientTestVersion","node","testVersion"],2,1,1],["cc.ClickEvent",["_componentId","handler","target"],1,1],["cc.Camera",["_clearFlags","_depth","node"],1,1],["5c9b8FZiaNLMrMDs9T3rByf",["node"],3,1],["cc.Label",["_string","_fontSize","_lineHeight","_N$horizontalAlign","_N$verticalAlign","node","_materials"],-2,1,3],["cc.Scene",["_name","_active","autoReleaseAssets","_children","_anchorPoint","_trs"],0,2,5,7]],[[0,0,6,3,4,5,2],[12,0,1,2,3,4,5,6,6],[1,0,2,3,8,4],[9,0,1,2,3],[4,0,1,2,3,2],[5,0,1,3],[0,0,1,7,3,4,5,3],[0,0,6,7,3,8,4,5,2],[0,0,2,3,4,5,3],[0,0,6,3,4,2],[0,0,6,7,3,4,5,2],[6,0,1,2,3,4,2],[7,0,1,2,3,3],[1,0,8,2],[1,1,0,6,2,7,3,4,5,8,9],[1,1,0,4,5,8,5],[8,0,1,2,2],[3,1,0,2,3,4,5,6,7,8,9,10,3],[3,0,2,3,4,5,6,7,11,8,9,10,2],[4,1,2,3,1],[10,0,1,2,3],[11,0,1],[13,0,1,2,3,4,5,4]],[[[{"name":"default_btn_disabled","rect":[0,0,40,40],"offset":[0,0],"originalSize":[40,40],"capInsets":[12,12,12,12]}],[2],0,[0],[1],[4]],[[[5,"LoadScene",null],[6,"Canvas","a5esZu+45LA5mBpvttspPD",[-5,-6,-7,-8,-9,-10],[[12,true,false,-1,[5,750,1334]],[13,45,-2],[16,"1.0.5",-4,-3]],[5,750,1334],[375,667,0,0,0,0,1,1,1,1]],[7,"Rank",1,[-13,-14],[[17,1.1,3,-12,[[3,"454adgphRpA6oq5lB6Cg1fK","openRank",1]],[4,4293322470],[4,4291348680],[4,3363338360],-11,5,6,7]],[4,4278190314],[5,100,40],[258.955,-476.544,0,0,0,0,1,1,1,1]],[0,"Background",2,[[4,1,-15,[2],3],[14,0,45,-1,-1,-31,-31,100,40,-16]],[5,102,102],[0,0,0,0,0,0,1,1,1,0]],[8,"Background",512,[[4,1,-17,[10],11],[15,0,45,100,40,-18]],[5,513,137],[0,0,0,0,0,0,1,1,1,0]],[9,"Main Camera",1,[[20,7,-1,-19],[21,-20]],[5,960,640]],[11,"New Label",1,[[-21,[2,36,4.176999999999964,1.3799999999999955,-22]],1,4],[5,66.72,37.8],[337.463,-646.72,0,0,0,0,1,1,1,1]],[0,"version",1,[[1,"版本号:",30,30,1,1,-23,[9]],[2,36,74.243,2.282000000000039,-24]],[5,98.33,37.8],[251.592,-645.818,0,0,0,0,1,1,1,1]],[10,"New Button",1,[4],[[18,3,-25,[[3,"454adgphRpA6oq5lB6Cg1fK","startGame",1]],[4,4293322470],[4,4291348680],[4,3363338360],4,12,13,14,15]],[5,513,137],[0,-313.512,0,0,0,0,1,1,1,1]],[22,"New Node",false,true,[1],[0,0,0],[0,0,0,0,0,0,1,1,1,1]],[0,"New Sprite",1,[[19,-26,[0],1]],[5,750,1660],[0,0,0,0,0,0,1,1,1,0]],[0,"New Label",2,[[1,"排 行",23,23,1,1,-27,[4]]],[5,52.39,28.98],[0.402,-49.341,0,0,0,0,1,1,1,1]],[1,"0.0.0",30,30,1,1,6,[8]]],0,[0,0,1,0,0,1,0,7,12,0,0,1,0,-1,5,0,-2,10,0,-3,2,0,-4,6,0,-5,7,0,-6,8,0,8,3,0,0,2,0,-1,3,0,-2,11,0,0,3,0,0,3,0,0,4,0,0,4,0,0,5,0,0,5,0,-1,12,0,0,6,0,0,7,0,0,7,0,0,8,0,0,10,0,0,11,0,9,9,1,3,9,4,3,8,27],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-1,2,-1,2,-1,4,5,6,-1,-1,-1,2,10,4,5,6],[0,5,0,6,0,2,1,3,0,0,0,7,1,2,1,3]],[[{"name":"default_btn_pressed","rect":[0,0,40,40],"offset":[0,0],"originalSize":[40,40],"capInsets":[12,12,12,12]}],[2],0,[0],[1],[8]],[[{"name":"default_btn_normal","rect":[0,0,40,40],"offset":[0,0],"originalSize":[40,40],"capInsets":[12,12,12,12]}],[2],0,[0],[1],[9]]]]

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"type":"cc.Texture2D","data":"0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1"}
{"type":"cc.Texture2D","data":"0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

View File

@ -0,0 +1 @@
{"paths":{"0":["Bg/bg1",0],"1":["UI/publicUI",0],"2":["UI/boss_warn_bg",0],"3":["Bg/bg3",0],"4":["Bg/bg2",0],"5":["Json/LEVEL_INFO",2],"6":["Json/GM_INFO",2],"7":["Json/dayu_config",2],"8":["dayu_config",2],"9":["Bg/bg2",1,1],"10":["UI/publicUI",3],"11":["Bg/bg3",1,1],"12":["UI/boss_warn_bg",1,1],"13":["Bg/bg1",1,1],"14":["Json/CLICK_DATA",2]},"types":["cc.Texture2D","cc.SpriteFrame","cc.JsonAsset","cc.SpriteAtlas"],"uuids":["7aJ2Eu6JhKWa+yGv1UZkRp","8eVvCr6tlAupkOHoLJ0gMm","b58ddMvQJPJ4EEZZ9cDsES","d9aMjc08hJr7cU+fkshMiM","e0Bq+OXCFBJLKbTUKfCQCz","2c3b3LXbpLE5YMnr5tF6fb","2daaR5GOxHh7Nf6amzJHQ1","40g76OI1BIxIvrbfTGFzJA","5c4GdNyQNKJYgkCpaY0n5A","75rGnU/uhK8bMsTI+rC297","98MGN85ONN9Y1R/Em31xW0","9aAAqt7OBB9JisjAQY9UAn","b9JgB6PD5JgbHAY4hk38iS","cd0Te7CUhF2IPZcu9Ump28","e11X5jTy9GfZxVCoidVTOo","02+qdP/LNMYprXxb2rzSoK","07+llRSbFPpIZnJ5mQA5Oa","08nl3uyqJJA7uoE3GvzFXX","09bYkL1mtAM5O2O8+V7qHc","0dYUDhpatFq6MgzYbrj9Ao","12h4oyoGNCtLIznkGQVMCE","13N/YjxRlBvJuJQONzZgQf","15Px8zkb9PNqM/8EKhh8Au","16H8lJvv9NIbwAP21LW/jP","1bCmE6EpFGipuuU4zTJhDl","24qYLk3ZtAKrfjmWBCaat1","299iwkZ69LG7PMWEpckf8s","2brxXjIx5IUZaBbZENommQ","2eRuzBLWlBUo4xS0HL/HxY","2eqfWwK6BMHKiRdu4j4Qfc","2fKYGWfylJ6bStXv+RnoRL","35noyLK/VOjrkOp2VPgfL5","36K2i2aM1NQafznM9lSBZg","3d1+VYOqRFMru62rlaVFw5","44sBzvl0NDNboK6UATtEli","4ctPPaAjFGKok+qQsACJ/b","5c+BT+UBxHhrClg8pgvwdu","5fDWUEFjZBRI2eMjZLlvjR","61voSiLytCdKbvQdUslVWv","67jm/DIIFDxIZZJwIYExU4","6ap5jHCqJHO6ErB6m2b4IS","70lGXmwwdLdZ/MotqKwjRK","72w0D96+tCzqgcxJNILv57","73N8EX9n1McabSpjwsAUFl","76pgt/TFZD470MIGj+PmEU","7eftpgj/tEjIM12zICsDKu","82v6gbHxpI67CZ6VMBoYsS","84TEhnwUZPfYYtQ7rcSIdl","85aITCDKpKmoCnpwV52aoO","86RTsIyV1N174519l+P5Pb","87HK0zPMlEk4lV/5uEbsza","8bUV3SEgNF5qQ25u6e0TYo","8d6VAk+VtOSYLmKMYTu7Gp","906d84Zp1AyY2/IlNF6g7B","93rh8qRmZNwqSgRWn/HV4y","98wXJekCtGRaPqa8O/QjOj","9cUsUEY7BN8pRp7xcvnwj5","9cV7An8qFB6Iz/LQd0tP8d","9fAapsHpVHi71EfwJl8ns5","a39q6sihlPfb0M5TnFO2VM","a8Z+I8DLJOTItWbXZ7o+On","aaClb0fotOmroNzXW18Esz","ab1P7uwLFP0LwHkn9ME+r+","b1QuJGCblMhL26Oof6SHIr","b2Jo5hfNdP3IxDaDbBBpRD","b3zo/554xPt4CdlPazRDpG","b67eQ8r1FMH4Sc4NPX9Pm9","b7ZgPiwWZM6a83QXze3eEu","b8DySHAFpJKL3lBPpBrtpx","baBdswblJFHrtDh2G0oTUv","bcEK9sCkJI4p6KlRiOXup5","bc3fwiULNNOatf7T++wPmn","c0HHeDVMpCarROFz9NuoqK","c2TGyr0HlFNI+U5EHVCc9G","c5bTdQ6p5KJY7kyiMGyG9+","caMzEruwxDTbLoqA7DEd3/","cdcz6duQBMraWQE7D/2fK/","cfqcs4X2pESrBI8GS67vAW","d1VSe4M39DrLKWwnZb3BZL","d4zO1I8xBFwbbZn/sKMXhg","d5BkUa/nxBx5+b0q2RfGhs","d5OjVl+DNCYZB21IIypRPF","dafZvfn9dProE0jw0dsciZ","dbBrjVZzVM4IdI7f4G6f0w","ddqDlhAkZLWIL1y8avBH5u","e0b3wP+fNDrJPw/uXtbPAm","e4mOksb1lGdYpf3qDPlJ1m","e8GI4uyrpF67GYzhTP5An/","e9b8xQsIxCn6cdBUqly19E","ed15lxBRBEnpnPnF2neaVF","ed8zUHEbVGj5LsmjJJ84R5","f2XLSzyLBDmY65+MMcVh/R","f3A3dQ3qBNk5AR8+Dgl5hh","f49/DuRQVAhaD+CB18xyTL","f7bzZZX0lHQ4pY2wrfzNRV","fbFdFD+0hProkh5fAFST+s","fcnzeeqxVHkq3OZWAMR5PH","ffqy1jFwBIIY2Vn01HF6ob"],"scenes":{},"redirect":[],"deps":[],"packs":{"0d0ece32d":[15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,10,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,89,90,91,92,93,94,95,96,97],"0fc0ca13d":[0,1,2,3,4]},"name":"resources","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["0d0ece32d","a884c","0fc0ca13d","b8d86",5,"22ebd",6,"a519a",7,"06910",8,"d0307",9,"3d084",11,"48554",12,"a3a52",13,"f9846",14,"34d4f",88,"8c684"],"native":[0,"30897",1,"d8623",2,"ed6ba",3,"f364b",4,"84e70"]}}

View File

@ -1 +0,0 @@
{"paths":{"0":["Bg/bg1",0],"1":["UI/publicUI",0],"2":["UI/boss_warn_bg",0],"3":["Bg/bg2",0],"4":["Json/LEVEL_INFO",2],"5":["Json/GM_INFO",2],"6":["Json/dayu_config",2],"7":["dayu_config",2],"8":["Bg/bg2",1,1],"9":["UI/publicUI",3],"10":["UI/boss_warn_bg",1,1],"11":["Bg/bg1",1,1],"12":["Json/CLICK_DATA",2]},"types":["cc.Texture2D","cc.SpriteFrame","cc.JsonAsset","cc.SpriteAtlas"],"uuids":["7aJ2Eu6JhKWa+yGv1UZkRp","8eVvCr6tlAupkOHoLJ0gMm","b58ddMvQJPJ4EEZZ9cDsES","e0Bq+OXCFBJLKbTUKfCQCz","2c3b3LXbpLE5YMnr5tF6fb","2daaR5GOxHh7Nf6amzJHQ1","40g76OI1BIxIvrbfTGFzJA","5c4GdNyQNKJYgkCpaY0n5A","75rGnU/uhK8bMsTI+rC297","98MGN85ONN9Y1R/Em31xW0","b9JgB6PD5JgbHAY4hk38iS","cd0Te7CUhF2IPZcu9Ump28","e11X5jTy9GfZxVCoidVTOo","02+qdP/LNMYprXxb2rzSoK","07+llRSbFPpIZnJ5mQA5Oa","08nl3uyqJJA7uoE3GvzFXX","12h4oyoGNCtLIznkGQVMCE","13N/YjxRlBvJuJQONzZgQf","15Px8zkb9PNqM/8EKhh8Au","16H8lJvv9NIbwAP21LW/jP","1bCmE6EpFGipuuU4zTJhDl","24qYLk3ZtAKrfjmWBCaat1","299iwkZ69LG7PMWEpckf8s","2brxXjIx5IUZaBbZENommQ","2eRuzBLWlBUo4xS0HL/HxY","2eqfWwK6BMHKiRdu4j4Qfc","2fKYGWfylJ6bStXv+RnoRL","35noyLK/VOjrkOp2VPgfL5","36K2i2aM1NQafznM9lSBZg","3d1+VYOqRFMru62rlaVFw5","44sBzvl0NDNboK6UATtEli","4ctPPaAjFGKok+qQsACJ/b","5fDWUEFjZBRI2eMjZLlvjR","61voSiLytCdKbvQdUslVWv","6ap5jHCqJHO6ErB6m2b4IS","70lGXmwwdLdZ/MotqKwjRK","72w0D96+tCzqgcxJNILv57","73N8EX9n1McabSpjwsAUFl","76pgt/TFZD470MIGj+PmEU","7eftpgj/tEjIM12zICsDKu","82v6gbHxpI67CZ6VMBoYsS","85aITCDKpKmoCnpwV52aoO","86RTsIyV1N174519l+P5Pb","87HK0zPMlEk4lV/5uEbsza","8bUV3SEgNF5qQ25u6e0TYo","98wXJekCtGRaPqa8O/QjOj","9cUsUEY7BN8pRp7xcvnwj5","9cV7An8qFB6Iz/LQd0tP8d","a8Z+I8DLJOTItWbXZ7o+On","aaClb0fotOmroNzXW18Esz","ab1P7uwLFP0LwHkn9ME+r+","b1QuJGCblMhL26Oof6SHIr","b2Jo5hfNdP3IxDaDbBBpRD","b67eQ8r1FMH4Sc4NPX9Pm9","b7ZgPiwWZM6a83QXze3eEu","b8DySHAFpJKL3lBPpBrtpx","baBdswblJFHrtDh2G0oTUv","bcEK9sCkJI4p6KlRiOXup5","bc3fwiULNNOatf7T++wPmn","c0HHeDVMpCarROFz9NuoqK","c2TGyr0HlFNI+U5EHVCc9G","c5bTdQ6p5KJY7kyiMGyG9+","cdcz6duQBMraWQE7D/2fK/","cfqcs4X2pESrBI8GS67vAW","d4zO1I8xBFwbbZn/sKMXhg","d5BkUa/nxBx5+b0q2RfGhs","d5OjVl+DNCYZB21IIypRPF","dafZvfn9dProE0jw0dsciZ","dbBrjVZzVM4IdI7f4G6f0w","ddqDlhAkZLWIL1y8avBH5u","e0b3wP+fNDrJPw/uXtbPAm","e4mOksb1lGdYpf3qDPlJ1m","e9b8xQsIxCn6cdBUqly19E","f3A3dQ3qBNk5AR8+Dgl5hh","f49/DuRQVAhaD+CB18xyTL","f7bzZZX0lHQ4pY2wrfzNRV","fbFdFD+0hProkh5fAFST+s","fcnzeeqxVHkq3OZWAMR5PH","ffqy1jFwBIIY2Vn01HF6ob"],"scenes":{},"redirect":[],"deps":[],"packs":{"023eeaa33":[13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,9,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,75,76,77,78],"0d03b66bb":[0,1,2,3]},"name":"resources","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["023eeaa33","9b378","0d03b66bb","c1754",4,"22ebd",5,"a519a",6,"e7796",7,"d0307",8,"3d084",10,"a3a52",11,"f9846",12,"34d4f",72,"36006"],"native":[0,"283d1",1,"f8041",2,"b5def",3,"84e70"]}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"type":"cc.Texture2D","data":"1,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|1,9729,9729,33071,33071,0,0,1"}
{"type":"cc.Texture2D","data":"1,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|1,9729,9729,33071,33071,0,0,1|1,9729,9729,33071,33071,0,0,1"}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
[1,["d9aMjc08hJr7cU+fkshMiM"],["_textureSetter"],["cc.SpriteFrame"],0,[{"name":"bg3","rect":[0,0,750,1660],"offset":[0,0],"originalSize":[750,1660],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]]

View File

@ -1 +0,0 @@
[1,["8eVvCr6tlAupkOHoLJ0gMm"],["_textureSetter"],["cc.SpriteFrame"],0,[{"name":"publicUI","rect":[0,0,2001,505],"offset":[-1,0],"originalSize":[2003,505],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]]

View File

@ -0,0 +1 @@
[1,["8eVvCr6tlAupkOHoLJ0gMm"],["_textureSetter"],["cc.SpriteFrame"],0,[{"name":"publicUI","rect":[0,0,1646,1646],"offset":[0,0],"originalSize":[1646,1646],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,34 +1,29 @@
var remote_url="http://static.sparkus.cn/shoot-sun/assets/";
window.boot = function () {
var settings = window._CCSettings;
window._CCSettings = undefined;
var onProgress = null;
// var RESOURCES = remote_url + cc.AssetManager.BuiltinBundleName.RESOURCES;
var RESOURCES = cc.AssetManager.BuiltinBundleName.RESOURCES;
var INTERNAL = cc.AssetManager.BuiltinBundleName.INTERNAL;
var MAIN = cc.AssetManager.BuiltinBundleName.MAIN;
function setLoadingDisplay () {
// Loading splash scene
var splash = document.getElementById('splash');
var progressBar = splash.querySelector('.progress-bar span');
var star = document.getElementById('_star');
onProgress = function (finish, total) {
var percent = 100 * finish / total;
if (progressBar) {
progressBar.style.width = percent.toFixed(2) + '%';
}
};
splash.style.display = 'block';
progressBar.style.width = '0%';
cc.director.once(cc.Director.EVENT_AFTER_SCENE_LAUNCH, function () {
splash.style.display = 'none';
star.style.display = 'none';
});
}
var onStart = function () {
cc.view.enableRetina(true);
cc.view.resizeWithBrowserSize(true);
if (cc.sys.isBrowser) {
setLoadingDisplay();
}
@ -81,7 +76,6 @@ window.boot = function () {
}
}
);
};
var option = {
@ -123,7 +117,7 @@ window.boot = function () {
if (window.jsb) {
var isRuntime = (typeof loadRuntime === 'function');
if (isRuntime) {
require('src/settings.f2e4a.js');
require('src/settings.32257.js');
require('src/cocos2d-runtime.js');
if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
require('src/physics.js');
@ -131,7 +125,7 @@ if (window.jsb) {
require('jsb-adapter/engine/index.js');
}
else {
require('src/settings.f2e4a.js');
require('src/settings.32257.js');
require('src/cocos2d-jsb.js');
if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
require('src/physics.js');

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -1 +1 @@
window._CCSettings={platform:"web-mobile",groupList:["default"],collisionMatrix:[[true]],hasResourcesBundle:true,hasStartSceneBundle:false,remoteBundles:[],subpackages:[],launchScene:"db://assets/Scene/LoadScene.fire",orientation:"portrait",jsList:[],bundleVers:{resources:"8426e",internal:"d17e2",main:"3d892"}};
window._CCSettings={platform:"web-mobile",groupList:["default"],collisionMatrix:[[true]],hasResourcesBundle:true,hasStartSceneBundle:false,remoteBundles:[],subpackages:[],launchScene:"db://assets/Scene/LoadScene.fire",orientation:"",jsList:[],bundleVers:{internal:"d0832",resources:"22487",main:"463ed"}};

View File

@ -81,34 +81,34 @@ p.footer {
font-size: x-small;
}
#splash {
/* #splash {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #171717 url(./splash.85cfd.png) no-repeat center;
background-size: 45%;
}
background: #171717 url(./splash.30897.jpg) no-repeat center;
background-size: 100%;
} */
.progress-bar {
/* .progress-bar {
position: absolute;
left: 27.5%;
top: 80%;
height: 3px;
padding: 2px;
width: 45%;
width: 0%;
border-radius: 7px;
box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
}
.progress-bar span {
display: block;
height: 100%;
height: 0%;
border-radius: 3px;
transition: width .4s ease-in-out;
background-color: #3dc5de;
}
} */
.stripes span {
background-size: 30px 30px;

View File

@ -5,8 +5,8 @@
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
"rect": [
1514,
309,
1549,
468,
96,
96
],

View File

@ -5,8 +5,8 @@
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
"rect": [
1514,
211,
1281,
1454,
96,
96
],

View File

@ -5,8 +5,8 @@
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
"rect": [
1013,
341,
1080,
1324,
72,
72
],

View File

@ -0,0 +1,28 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "finishi",
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
"rect": [
749,
785,
562,
177
],
"offset": [
0,
0
],
"originalSize": [
562,
177
],
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -0,0 +1,28 @@
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "rank_Self",
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
"rect": [
749,
581,
750,
120
],
"offset": [
0,
0
],
"originalSize": [
750,
120
],
"capInsets": [
0,
0,
0,
0
]
}
}

View File

@ -1,55 +0,0 @@
"use strict";
cc._RF.push(module, '0d96eU/lZVHW4W4yuZIhrlV', 'TmoGame');
// TmoDemo/Script/TmoGame.js
"use strict";
// Learn cc.Class:
// - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
cc.Class({
"extends": cc.Component,
properties: {
tiledMapAfter: cc.TiledMap,
tiledMapOrigin: cc.TiledMap
},
start: function start() {
window.game = this;
var isAfter = true; // var isAfter = false;
if (isAfter) {
this.tiledMapOrigin.node.active = false;
} else {
this.tiledMapAfter.node.active = false;
}
this.addTimeLog();
},
addTimeLog: function addTimeLog() {
var renderCount = 1;
cc.director.on(cc.Director.EVENT_BEFORE_DRAW, function () {
if (renderCount < 200) {
console.time("render");
}
});
cc.director.on(cc.Director.EVENT_AFTER_DRAW, function () {
if (renderCount++ < 200) {
console.timeEnd("render");
}
}); // cc.director.on(cc.Director.EVENT_BEFORE_UPDATE, ()=>{
// if (renderCount < 200) {
// console.time("logic");
// }
// });
// cc.director.on(cc.Director.EVENT_AFTER_UPDATE, ()=>{
// if (renderCount++ < 200) {
// console.timeEnd("logic");
// }
// });
}
});
cc._RF.pop();

View File

@ -1 +0,0 @@
{"version":3,"sources":["assets\\TmoDemo\\Script\\TmoGame.js"],"names":["cc","Class","Component","properties","tiledMapAfter","TiledMap","tiledMapOrigin","start","window","game","isAfter","node","active","addTimeLog","renderCount","director","on","Director","EVENT_BEFORE_DRAW","console","time","EVENT_AFTER_DRAW","timeEnd"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AAEAA,EAAE,CAACC,KAAH,CAAS;AACL,aAASD,EAAE,CAACE,SADP;AAGLC,EAAAA,UAAU,EAAE;AACRC,IAAAA,aAAa,EAAEJ,EAAE,CAACK,QADV;AAERC,IAAAA,cAAc,EAAEN,EAAE,CAACK;AAFX,GAHP;AAQLE,EAAAA,KARK,mBAQI;AACLC,IAAAA,MAAM,CAACC,IAAP,GAAc,IAAd;AACA,QAAIC,OAAO,GAAG,IAAd,CAFK,CAGL;;AAEA,QAAIA,OAAJ,EAAa;AACT,WAAKJ,cAAL,CAAoBK,IAApB,CAAyBC,MAAzB,GAAkC,KAAlC;AACH,KAFD,MAEO;AACH,WAAKR,aAAL,CAAmBO,IAAnB,CAAwBC,MAAxB,GAAiC,KAAjC;AACH;;AAED,SAAKC,UAAL;AACH,GApBI;AAsBLA,EAAAA,UAtBK,wBAsBS;AACV,QAAIC,WAAW,GAAG,CAAlB;AACAd,IAAAA,EAAE,CAACe,QAAH,CAAYC,EAAZ,CAAehB,EAAE,CAACiB,QAAH,CAAYC,iBAA3B,EAA8C,YAAI;AAC9C,UAAIJ,WAAW,GAAG,GAAlB,EAAuB;AACnBK,QAAAA,OAAO,CAACC,IAAR,CAAa,QAAb;AACH;AACJ,KAJD;AAMApB,IAAAA,EAAE,CAACe,QAAH,CAAYC,EAAZ,CAAehB,EAAE,CAACiB,QAAH,CAAYI,gBAA3B,EAA6C,YAAI;AAC7C,UAAIP,WAAW,KAAK,GAApB,EAAyB;AACrBK,QAAAA,OAAO,CAACG,OAAR,CAAgB,QAAhB;AACH;AACJ,KAJD,EARU,CAeV;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACH;AAhDI,CAAT","sourceRoot":"/","sourcesContent":["// Learn cc.Class:\r\n// - https://docs.cocos.com/creator/manual/en/scripting/class.html\r\n// Learn Attribute:\r\n// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html\r\n// Learn life-cycle callbacks:\r\n// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html\r\n\r\ncc.Class({\r\n extends: cc.Component,\r\n\r\n properties: {\r\n tiledMapAfter: cc.TiledMap,\r\n tiledMapOrigin: cc.TiledMap,\r\n },\r\n\r\n start () {\r\n window.game = this;\r\n var isAfter = true;\r\n // var isAfter = false;\r\n\r\n if (isAfter) {\r\n this.tiledMapOrigin.node.active = false;\r\n } else {\r\n this.tiledMapAfter.node.active = false;\r\n }\r\n\r\n this.addTimeLog();\r\n },\r\n\r\n addTimeLog () {\r\n let renderCount = 1;\r\n cc.director.on(cc.Director.EVENT_BEFORE_DRAW, ()=>{\r\n if (renderCount < 200) {\r\n console.time(\"render\");\r\n }\r\n });\r\n \r\n cc.director.on(cc.Director.EVENT_AFTER_DRAW, ()=>{\r\n if (renderCount++ < 200) {\r\n console.timeEnd(\"render\");\r\n }\r\n });\r\n\r\n\r\n // cc.director.on(cc.Director.EVENT_BEFORE_UPDATE, ()=>{\r\n // if (renderCount < 200) {\r\n // console.time(\"logic\");\r\n // }\r\n // });\r\n \r\n // cc.director.on(cc.Director.EVENT_AFTER_UPDATE, ()=>{\r\n // if (renderCount++ < 200) {\r\n // console.timeEnd(\"logic\");\r\n // }\r\n // });\r\n },\r\n\r\n});\r\n"]}

View File

@ -5,8 +5,8 @@
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
"rect": [
753,
140,
749,
1123,
500,
18
],

View File

@ -5,8 +5,8 @@
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
"rect": [
1005,
420,
1539,
1552,
84,
84
],

Some files were not shown because too many files have changed in this diff Show More