游戏主体内容已完成,差引导页面,和结算页 美术还没出图
|
@ -78,13 +78,13 @@
|
|||
"__id__": 10
|
||||
},
|
||||
{
|
||||
"__id__": 16
|
||||
"__id__": 18
|
||||
},
|
||||
{
|
||||
"__id__": 19
|
||||
"__id__": 21
|
||||
},
|
||||
{
|
||||
"__id__": 22
|
||||
"__id__": 24
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
|
@ -286,8 +286,8 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 376,
|
||||
"height": 84
|
||||
"width": 750,
|
||||
"height": 1660
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
|
@ -299,7 +299,7 @@
|
|||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
-313.22,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
|
@ -338,7 +338,9 @@
|
|||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": null,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "cdd137bb-0948-45d8-83d9-72ef549a9dbc"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
|
@ -447,12 +449,15 @@
|
|||
"_children": [
|
||||
{
|
||||
"__id__": 11
|
||||
},
|
||||
{
|
||||
"__id__": 14
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 14
|
||||
"__id__": 16
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
|
@ -531,8 +536,8 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 126,
|
||||
"height": 140
|
||||
"width": 102,
|
||||
"height": 102
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
|
@ -583,7 +588,9 @@
|
|||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": null,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "359e8c8b-2bf5-4e8e-b90e-a7654f81f2f9"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
|
@ -595,7 +602,9 @@
|
|||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": null,
|
||||
"_atlas": {
|
||||
"__uuid__": "9830637c-e4e3-4df5-8d51-fc49b7d715b4"
|
||||
},
|
||||
"_id": "e3tnncQgtFn49iTBzwCpMN"
|
||||
},
|
||||
{
|
||||
|
@ -609,10 +618,10 @@
|
|||
"alignMode": 0,
|
||||
"_target": null,
|
||||
"_alignFlags": 45,
|
||||
"_left": -13,
|
||||
"_right": -13,
|
||||
"_top": -50,
|
||||
"_bottom": -50,
|
||||
"_left": -1,
|
||||
"_right": -1,
|
||||
"_top": -31,
|
||||
"_bottom": -31,
|
||||
"_verticalCenter": 0,
|
||||
"_horizontalCenter": 0,
|
||||
"_isAbsLeft": true,
|
||||
|
@ -625,6 +634,101 @@
|
|||
"_originalHeight": 40,
|
||||
"_id": "3b6aA5QpdJN5tCMv9rwDLJ"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "New Label",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 10
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 15
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 52.39,
|
||||
"height": 28.98
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_trs": {
|
||||
"__type__": "TypedArray",
|
||||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0.402,
|
||||
-49.341,
|
||||
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": "dc+p3yYYdKzLQ5TIo+4Fs9"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 14
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_string": "排 行",
|
||||
"_N$string": "排 行",
|
||||
"_fontSize": 23,
|
||||
"_lineHeight": 23,
|
||||
"_enableWrapText": true,
|
||||
"_N$file": null,
|
||||
"_isSystemFontUsed": true,
|
||||
"_spacingX": 0,
|
||||
"_batchAsBitmap": false,
|
||||
"_styleFlags": 0,
|
||||
"_underlineHeight": 0,
|
||||
"_N$horizontalAlign": 1,
|
||||
"_N$verticalAlign": 1,
|
||||
"_N$fontFamily": "Arial",
|
||||
"_N$overflow": 0,
|
||||
"_N$cacheMode": 0,
|
||||
"_id": "1cN62hedRCao1kwdunTZIT"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Button",
|
||||
"_name": "",
|
||||
|
@ -639,7 +743,7 @@
|
|||
"zoomScale": 1.1,
|
||||
"clickEvents": [
|
||||
{
|
||||
"__id__": 15
|
||||
"__id__": 17
|
||||
}
|
||||
],
|
||||
"_N$interactable": true,
|
||||
|
@ -730,10 +834,10 @@
|
|||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 17
|
||||
"__id__": 19
|
||||
},
|
||||
{
|
||||
"__id__": 18
|
||||
"__id__": 20
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
|
@ -789,7 +893,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 16
|
||||
"__id__": 18
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
|
@ -822,7 +926,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 16
|
||||
"__id__": 18
|
||||
},
|
||||
"_enabled": true,
|
||||
"alignMode": 1,
|
||||
|
@ -855,10 +959,10 @@
|
|||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 20
|
||||
"__id__": 22
|
||||
},
|
||||
{
|
||||
"__id__": 21
|
||||
"__id__": 23
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
|
@ -914,7 +1018,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 19
|
||||
"__id__": 21
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
|
@ -947,7 +1051,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 19
|
||||
"__id__": 21
|
||||
},
|
||||
"_enabled": true,
|
||||
"alignMode": 1,
|
||||
|
@ -978,7 +1082,7 @@
|
|||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 23
|
||||
"__id__": 25
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
|
@ -998,8 +1102,8 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 100,
|
||||
"height": 40
|
||||
"width": 513,
|
||||
"height": 137
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
|
@ -1011,7 +1115,7 @@
|
|||
"ctor": "Float64Array",
|
||||
"array": [
|
||||
0,
|
||||
0,
|
||||
-313.512,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
|
@ -1040,13 +1144,9 @@
|
|||
"_name": "Background",
|
||||
"_objFlags": 512,
|
||||
"_parent": {
|
||||
"__id__": 22
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 24
|
||||
}
|
||||
],
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
|
@ -1067,8 +1167,8 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 100,
|
||||
"height": 40
|
||||
"width": 513,
|
||||
"height": 137
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
|
@ -1088,7 +1188,7 @@
|
|||
1,
|
||||
1,
|
||||
1,
|
||||
1
|
||||
0
|
||||
]
|
||||
},
|
||||
"_eulerAngles": {
|
||||
|
@ -1104,107 +1204,12 @@
|
|||
"groupIndex": 0,
|
||||
"_id": "94ty86DIJF0avZl6O1I7GB"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Label",
|
||||
"_objFlags": 512,
|
||||
"_parent": {
|
||||
"__id__": 23
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 25
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 100,
|
||||
"height": 40
|
||||
},
|
||||
"_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": "4fWr7e41ZPpYJvI6vP+AD0"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 24
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
|
||||
}
|
||||
],
|
||||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_string": "button",
|
||||
"_N$string": "button",
|
||||
"_fontSize": 20,
|
||||
"_lineHeight": 40,
|
||||
"_enableWrapText": false,
|
||||
"_N$file": null,
|
||||
"_isSystemFontUsed": true,
|
||||
"_spacingX": 0,
|
||||
"_batchAsBitmap": false,
|
||||
"_styleFlags": 0,
|
||||
"_underlineHeight": 0,
|
||||
"_N$horizontalAlign": 1,
|
||||
"_N$verticalAlign": 1,
|
||||
"_N$fontFamily": "Arial",
|
||||
"_N$overflow": 1,
|
||||
"_N$cacheMode": 1,
|
||||
"_id": "dduVKBa/tP9J5SOHdfymKE"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 23
|
||||
"__id__": 25
|
||||
},
|
||||
"_enabled": true,
|
||||
"_materials": [
|
||||
|
@ -1215,10 +1220,10 @@
|
|||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
|
||||
"__uuid__": "b6ede43c-af51-4c1f-849c-e0d3d7f4f9bd"
|
||||
},
|
||||
"_type": 1,
|
||||
"_sizeMode": 0,
|
||||
"_sizeMode": 1,
|
||||
"_fillType": 0,
|
||||
"_fillCenter": {
|
||||
"__type__": "cc.Vec2",
|
||||
|
@ -1228,7 +1233,9 @@
|
|||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": null,
|
||||
"_atlas": {
|
||||
"__uuid__": "9830637c-e4e3-4df5-8d51-fc49b7d715b4"
|
||||
},
|
||||
"_id": "01g+tMB7RF4bxts75/150X"
|
||||
},
|
||||
{
|
||||
|
@ -1236,7 +1243,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 23
|
||||
"__id__": 25
|
||||
},
|
||||
"_enabled": true,
|
||||
"alignMode": 0,
|
||||
|
@ -1263,7 +1270,7 @@
|
|||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"node": {
|
||||
"__id__": 22
|
||||
"__id__": 24
|
||||
},
|
||||
"_enabled": true,
|
||||
"_normalMaterial": null,
|
||||
|
@ -1277,8 +1284,8 @@
|
|||
],
|
||||
"_N$interactable": true,
|
||||
"_N$enableAutoGrayEffect": false,
|
||||
"_N$transition": 2,
|
||||
"transition": 2,
|
||||
"_N$transition": 3,
|
||||
"transition": 3,
|
||||
"_N$normalColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 230,
|
||||
|
@ -1340,7 +1347,7 @@
|
|||
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
|
||||
},
|
||||
"_N$target": {
|
||||
"__id__": 23
|
||||
"__id__": 25
|
||||
},
|
||||
"_id": "2esgMwAepCjYmphoCmbewk"
|
||||
},
|
||||
|
@ -1409,7 +1416,7 @@
|
|||
"localTest": true,
|
||||
"clientTestVersion": "1.0.2",
|
||||
"testVersion": {
|
||||
"__id__": 17
|
||||
"__id__": 19
|
||||
},
|
||||
"_id": "50zCP3Mq9MKIKjMbohPY8j"
|
||||
}
|
||||
|
|
|
@ -50,76 +50,251 @@ export default class NewClass extends cc.Component {
|
|||
pos_Shifting:number;
|
||||
block_Type:number;
|
||||
path_Type:string;
|
||||
finishi:boolean
|
||||
finishi:boolean;
|
||||
pos: any;
|
||||
onLoad () {
|
||||
this.finishi = false;
|
||||
this.pos_Shifting = 0;
|
||||
this.pos = cc.v2(0,0);
|
||||
}
|
||||
|
||||
start () {
|
||||
|
||||
}
|
||||
|
||||
initData(type){
|
||||
initData(type,pos,max){
|
||||
this.block_Type = type;
|
||||
this.pos = cc.v2(pos.x,pos.y);
|
||||
if(type == cc.Enum(BlockType).Start){
|
||||
this.node.color = cc.color(245,70,70);
|
||||
var bg = this.node.getChildByName("sp");
|
||||
// this.node.getComponent(cc.Sprite).spriteFrame = null;
|
||||
bg.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["start"];
|
||||
this.rotateTarget(bg,"start",pos,max);
|
||||
}
|
||||
else if(type == cc.Enum(BlockType).End){
|
||||
this.node.color = cc.color(20,255,0);
|
||||
var bg = this.node.getChildByName("sp");
|
||||
// this.node.getComponent(cc.Sprite).spriteFrame = null;
|
||||
bg.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["end"];
|
||||
this.rotateTarget(bg,"end",pos,max);
|
||||
}
|
||||
else if(type == cc.Enum(BlockType).Nunja){
|
||||
this.node.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e5"];
|
||||
let random = Math.floor(Math.random()*4);
|
||||
let rotationArr = [0,90,180,270];
|
||||
let rotation = rotationArr[random];
|
||||
this.node.getChildByName("bg").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e5"];
|
||||
this.node.getChildByName("bg").angle = -rotation;
|
||||
this.node.getComponent(cc.Sprite).spriteFrame = null;
|
||||
}
|
||||
else if(type == cc.Enum(BlockType).Peak){
|
||||
let random = Math.floor(Math.random()*4+1);
|
||||
let name = "shan" + random;
|
||||
this.node.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
this.node.getChildByName("bg").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
this.node.getComponent(cc.Sprite).spriteFrame = null;
|
||||
}
|
||||
}
|
||||
//旋转入海口和出海口的 图片以及文字角度
|
||||
rotateTarget(bg,name,pos,max){
|
||||
let target = bg.getChildByName(name);
|
||||
if(pos.y == max.y-1){
|
||||
bg.angle = 0;
|
||||
if(name == "end") target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["end_x"];
|
||||
target.active = true;
|
||||
target.angle = 0;
|
||||
return;
|
||||
}
|
||||
else if(pos.y == 0){
|
||||
bg.angle = -180;
|
||||
if(name == "end")target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["end_x"];
|
||||
target.active = true;
|
||||
target.angle = -180;
|
||||
return;
|
||||
}
|
||||
else if(pos.x == max.x-1){
|
||||
bg.angle = 90;
|
||||
if(name == "start")target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["start_y"];
|
||||
else target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["end_y"];
|
||||
target.active = true;
|
||||
target.angle = -90;
|
||||
}
|
||||
else if(pos.x == 0){
|
||||
bg.angle = -90;
|
||||
if(name == "start")target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["start_y"];
|
||||
else target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["end_y"];
|
||||
target.active = true;
|
||||
target.angle = 90;
|
||||
}
|
||||
}
|
||||
|
||||
setPath(type){
|
||||
this.path_Type = type;
|
||||
}
|
||||
//设置息壤在起点
|
||||
set_Xi_Soil(direction,type){
|
||||
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;
|
||||
water.active = true;
|
||||
water.opacity = 0;
|
||||
if(type){
|
||||
turn.angle = direction=="left"?90:0;
|
||||
water.angle = direction=="left"?90:0;
|
||||
}
|
||||
else{
|
||||
turn.angle = direction=="left"?0:90;
|
||||
water.angle = direction=="left"?0:90;
|
||||
}
|
||||
|
||||
}
|
||||
else if(sp.angle == -180){
|
||||
turn.active =true;
|
||||
water.active = true;
|
||||
water.opacity = 0;
|
||||
if(type){
|
||||
turn.angle = direction=="left"?-180:-90;
|
||||
water.angle = direction=="left"?-180:-90;
|
||||
}
|
||||
else{
|
||||
turn.angle = direction=="left"?270:-180;
|
||||
water.angle = direction=="left"?270:-180;
|
||||
}
|
||||
|
||||
}
|
||||
else if(sp.angle == -90){
|
||||
turn.active =true;
|
||||
turn.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["a1"];
|
||||
turn.angle = 90;
|
||||
if(type){
|
||||
water.active = true;
|
||||
water.angle = 90;
|
||||
water.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["block1"];
|
||||
water.opacity = 0;
|
||||
}
|
||||
|
||||
}
|
||||
else if(sp.angle == 90){
|
||||
turn.active =true;
|
||||
turn.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["a1"];
|
||||
turn.angle = 90;
|
||||
if(type){
|
||||
water.active = true;
|
||||
water.angle = 90;
|
||||
water.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["block1"];
|
||||
water.opacity = 0;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else if(direction == "up" || direction == "down"){
|
||||
let sp = this.node.getChildByName("sp");
|
||||
if(sp.angle == -90){
|
||||
turn.active =true;
|
||||
water.active = true;
|
||||
water.opacity = 0;
|
||||
if(type){
|
||||
turn.angle = direction=="up"?-90:0;
|
||||
water.angle = direction=="up"?-90:0;
|
||||
}
|
||||
else{
|
||||
turn.angle = direction=="up"?-90:0;
|
||||
water.angle = direction=="up"?-90:0;
|
||||
}
|
||||
|
||||
}
|
||||
else if(sp.angle == 90){
|
||||
turn.active =true;
|
||||
water.active = true;
|
||||
water.opacity = 0;
|
||||
if(type){
|
||||
turn.angle = direction=="up"?90:180;
|
||||
water.angle = direction=="up"?90:180;
|
||||
}
|
||||
else{
|
||||
turn.angle = direction=="up"?180:90;
|
||||
water.angle = direction=="up"?180:90;
|
||||
}
|
||||
|
||||
}
|
||||
else if(sp.angle == 0){
|
||||
turn.active =true;
|
||||
turn.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["a1"];
|
||||
turn.angle = 0;
|
||||
if(type){
|
||||
water.active = true;
|
||||
water.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["block1"];
|
||||
water.opacity = 0;
|
||||
}
|
||||
}
|
||||
else if(sp.angle == -180){
|
||||
turn.active =true;
|
||||
turn.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["a1"];
|
||||
turn.angle = 0;
|
||||
if(type){
|
||||
water.active = true;
|
||||
water.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["block1"];
|
||||
water.opacity = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
set_Xi_SoilType(direction,end,name){
|
||||
console.log("息壤",direction,name,this.block_Type);
|
||||
if(this.block_Type == cc.Enum(BlockType).Start){
|
||||
this.set_Xi_Soil(direction,false);
|
||||
return;
|
||||
}
|
||||
|
||||
set_Xi_SoilType(direction,end){
|
||||
console.log("息壤",direction);
|
||||
if(this.block_Type == cc.Enum(BlockType).Nunja){
|
||||
this.block_Type = cc.Enum(BlockType).Nomal;
|
||||
this.node.getChildByName("bg").getComponent(cc.Sprite).spriteFrame = null;
|
||||
this.node.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["block_Bg"];
|
||||
}
|
||||
if(end != null){
|
||||
if(this.block_Type == cc.Enum(BlockType).End){
|
||||
this.set_Xi_Soil(direction,true);
|
||||
}
|
||||
setTimeout(() => {
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next,(end+1));
|
||||
}, 1000);
|
||||
|
||||
if(name == "water") cc.fx.Notifications.emit(cc.fx.Message.nextWater,(end+1));
|
||||
else cc.fx.Notifications.emit(cc.fx.Message.next,(end+1));
|
||||
}, 400);
|
||||
}
|
||||
|
||||
if(this.block_Type != cc.Enum(BlockType).End && this.block_Type != cc.Enum(BlockType).Start){
|
||||
this.block_Type = cc.Enum(BlockType).Xi_Soil;
|
||||
}
|
||||
else{
|
||||
}
|
||||
let target = this.node.getChildByName("Xi_Soil");
|
||||
this.path_Type = direction;
|
||||
target.active = true;
|
||||
target.opacity = 0;
|
||||
cc.tween(target)
|
||||
.to(0.5,{opacity:255})
|
||||
.to(0.5,{opacity:0})
|
||||
.to(0.1,{opacity:255})
|
||||
.to(0.1,{opacity:0})
|
||||
.call(() =>{
|
||||
if(direction != null && end == null){
|
||||
let data = {
|
||||
order:0,
|
||||
time:0.2,
|
||||
time:cc.fx.GameConfig.TIME_INFO.waterSpeed[0],
|
||||
type:0,
|
||||
circulate:false
|
||||
};
|
||||
if(name == "water"){
|
||||
this.runWater(data);
|
||||
}
|
||||
else this.runRoad(data);
|
||||
}
|
||||
})
|
||||
.start();
|
||||
}
|
||||
|
||||
|
||||
//洪峰执行
|
||||
runWater(data){
|
||||
//修筑路线执行
|
||||
runRoad(data){
|
||||
if(this.path_Type == "err"){
|
||||
setTimeout(() => {
|
||||
if(data.circulate)
|
||||
|
@ -128,13 +303,15 @@ export default class NewClass extends cc.Component {
|
|||
return;
|
||||
}
|
||||
//如果双向都占用了还进来就算死了-
|
||||
if(this.node.getChildByName("vertical").active == true && this.node.getChildByName("horizontal").active == true){
|
||||
if(this.node.getChildByName("vertical2").active == true && this.node.getChildByName("horizontal2").active == true){
|
||||
alert("河道已经交叉,不能再通过");
|
||||
cc.director.loadScene("GameScene");
|
||||
return;
|
||||
}
|
||||
|
||||
else if(this.node.getChildByName("turn").active == true && this.block_Type != cc.Enum(BlockType).Xi_Soil){
|
||||
else if(this.node.getChildByName("turn2").active == true && this.block_Type != cc.Enum(BlockType).Xi_Soil){
|
||||
alert("河道过弯处,不能再交叉河道");
|
||||
cc.director.loadScene("GameScene");
|
||||
return;
|
||||
}
|
||||
var target = null;
|
||||
|
@ -142,7 +319,8 @@ export default class NewClass extends cc.Component {
|
|||
var time = data.time;
|
||||
var order = data.order + 1;
|
||||
var random = Math.floor(Math.random()*4 + 1);
|
||||
target = this.node.getChildByName("vertical");
|
||||
target = this.node.getChildByName("vertical2");
|
||||
if(target.name == "vertical"){
|
||||
let water1 = target.getChildByName("wave").getChildByName("water1");
|
||||
let water2 = target.getChildByName("wave").getChildByName("water2");
|
||||
let water3 = target.getChildByName("wave").getChildByName("water3");
|
||||
|
@ -159,11 +337,254 @@ export default class NewClass extends cc.Component {
|
|||
cc.callFunc(()=>{
|
||||
water3.y = -120
|
||||
})).repeatForever());
|
||||
}
|
||||
|
||||
var name = "a" + random;
|
||||
//if(this.block_Type != cc.Enum(BlockType).Reinforce)target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
if(this.block_Type != cc.Enum(BlockType).Reinforce)target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
|
||||
if(target.active == true){
|
||||
target = this.node.getChildByName("horizontal2");
|
||||
name = "b" + random;
|
||||
if(this.block_Type != cc.Enum(BlockType).Reinforce) target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
}
|
||||
// console.log(this.path_Type,data.order);
|
||||
if(this.path_Type == cc.Enum(PathType).up){
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).down){
|
||||
target.angle = 180;
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).left){
|
||||
target.angle = 90;
|
||||
name = "b" + random;
|
||||
if(this.block_Type != cc.Enum(BlockType).Reinforce) target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).right){
|
||||
target.angle = 270;
|
||||
name = "b" + random;
|
||||
if(this.block_Type != cc.Enum(BlockType).Reinforce) target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
}
|
||||
else{
|
||||
target = this.node.getChildByName("turn2");
|
||||
if(target.name == "turn"){
|
||||
let water = target.getChildByName("wave").getChildByName("water");
|
||||
water.opacity = 0
|
||||
water.runAction(cc.sequence(cc.rotateTo(7.2,-1080),cc.delayTime(0)).repeatForever());
|
||||
setTimeout(() => {
|
||||
water.opacity = 255;
|
||||
}, 200);
|
||||
}
|
||||
|
||||
|
||||
name = "c" + random;
|
||||
if(this.block_Type != cc.Enum(BlockType).Reinforce)target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
progress = 0.25;
|
||||
if(this.path_Type == cc.Enum(PathType).up_left){
|
||||
target.setPosition(-this.pos_Shifting,-this.pos_Shifting);
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).up_right){
|
||||
target.scaleX = -1;
|
||||
target.setPosition(this.pos_Shifting,-this.pos_Shifting);
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).down_left){
|
||||
target.angle = 180;
|
||||
target.scaleX = -1;
|
||||
target.setPosition(-this.pos_Shifting,this.pos_Shifting);
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).down_right){
|
||||
target.angle = 180;
|
||||
target.setPosition(this.pos_Shifting,this.pos_Shifting);
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).left_up){
|
||||
target.angle = -90;
|
||||
target.scaleY = -1;
|
||||
target.setPosition(this.pos_Shifting,this.pos_Shifting);
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).left_down){
|
||||
target.angle = 90;
|
||||
target.setPosition(-this.pos_Shifting,-this.pos_Shifting);
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).right_up){
|
||||
target.angle = -90;
|
||||
target.setPosition(-this.pos_Shifting,this.pos_Shifting);
|
||||
|
||||
}
|
||||
else if(this.path_Type == cc.Enum(PathType).right_down){
|
||||
target.angle = -90;
|
||||
target.scaleX = -1;
|
||||
target.setPosition(-this.pos_Shifting,-this.pos_Shifting);
|
||||
}
|
||||
}
|
||||
if(this.path_Type == "Reinforce"){
|
||||
target = this.node.getChildByName("Reinforce");
|
||||
if(this.block_Type != cc.Enum(BlockType).End)this.block_Type = cc.Enum(BlockType).Reinforce;
|
||||
this.node.getChildByName("vertical2").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e1"];
|
||||
this.node.getChildByName("turn2").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e3"];
|
||||
this.node.getChildByName("horizontal2").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e2"];
|
||||
target.active = true;
|
||||
target.opacity = 0;
|
||||
progress = 1;
|
||||
cc.tween(target)
|
||||
.to(cc.fx.GameConfig.TIME_INFO.ReinforceSpeed,{opacity:255})
|
||||
.call(() =>{
|
||||
if(data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.changeMap,order);
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next,order);
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else if(this.path_Type == "Xi_Soil"){
|
||||
target.active = false;
|
||||
if(this.block_Type != cc.Enum(BlockType).End && this.block_Type != cc.Enum(BlockType).Start)
|
||||
this.block_Type = cc.Enum(BlockType).Xi_Soil;
|
||||
target = this.node.getChildByName("Xi_Soil");
|
||||
target.active = true;
|
||||
target.opacity = 0;
|
||||
cc.tween(target)
|
||||
.to(0.01,{opacity:1})
|
||||
.to(0.01,{opacity:0})
|
||||
.call(() =>{
|
||||
if(data.circulate){
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next,order);
|
||||
}
|
||||
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else if(this.path_Type == "End"){
|
||||
target.active = false;
|
||||
if(this.block_Type != cc.Enum(BlockType).End && this.block_Type != cc.Enum(BlockType).Start)
|
||||
this.block_Type = cc.Enum(BlockType).Xi_Soil;
|
||||
let posTemp = data.last;
|
||||
var direction = "up";
|
||||
if(this.pos.x - posTemp.x == 1){
|
||||
direction = "right";
|
||||
}
|
||||
else if(this.pos.x - posTemp.x == -1){
|
||||
direction = "left";
|
||||
}
|
||||
else if(this.pos.x - posTemp.x == -1){
|
||||
direction = "down";
|
||||
}
|
||||
|
||||
// console.log("方向:",direction);
|
||||
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;
|
||||
if(this.block_Type != cc.Enum(BlockType).Xi_Soil){
|
||||
target.getComponent(cc.Sprite).fillRange = 0;
|
||||
cc.tween(target.getComponent(cc.Sprite))
|
||||
.to(time,{fillRange:progress})
|
||||
.call(() =>{
|
||||
if(data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next,order);
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else{
|
||||
target.opacity = 0;
|
||||
target.getComponent(cc.Sprite).fillRange = 1;
|
||||
cc.tween(target)
|
||||
.to(time,{opacity:255})
|
||||
.call(() =>{
|
||||
if(data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next,order);
|
||||
})
|
||||
.start();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
//洪峰执行
|
||||
runWater(data){
|
||||
if(this.node.getChildByName("waterStart").active == true && this.block_Type == cc.Enum(BlockType).Start){
|
||||
// sp.getChildByName("waterStart").opacity = 255;
|
||||
cc.tween(this.node.getChildByName("waterStart"))
|
||||
.to(0.2,{opacity:255})
|
||||
.start();
|
||||
}
|
||||
|
||||
|
||||
if(this.path_Type == "err"){
|
||||
setTimeout(() => {
|
||||
if(data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.nextWater,order);
|
||||
}, data.time);
|
||||
return;
|
||||
}
|
||||
//如果双向都占用了还进来就算死了-
|
||||
if(this.node.getChildByName("vertical").active == true && this.node.getChildByName("horizontal").active == true){
|
||||
alert("河道已经交叉,不能再通过");
|
||||
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");
|
||||
return;
|
||||
}
|
||||
var target = null;
|
||||
var progress = 1;
|
||||
var time = data.time;
|
||||
var order = data.order + 1;
|
||||
var random = Math.floor(Math.random()*4 + 1);
|
||||
target = this.node.getChildByName("vertical");
|
||||
if(target.name == "vertical"){
|
||||
let water1 = target.getChildByName("wave").getChildByName("water1");
|
||||
let water2 = target.getChildByName("wave").getChildByName("water2");
|
||||
let water3 = target.getChildByName("wave").getChildByName("water3");
|
||||
let timeDelay = 0.15;
|
||||
water1.runAction(cc.sequence(cc.moveTo(0.6,cc.v2(water1.x,120)),cc.delayTime(timeDelay),
|
||||
cc.callFunc(()=>{
|
||||
water1.y = -120
|
||||
})).repeatForever());
|
||||
water2.runAction(cc.sequence(cc.moveTo(0.6,cc.v2(water2.x,120)),cc.delayTime(timeDelay),
|
||||
cc.callFunc(()=>{
|
||||
water2.y = -120
|
||||
})).repeatForever());
|
||||
water3.runAction(cc.sequence(cc.moveTo(0.6,cc.v2(water3.x,120)),cc.delayTime(timeDelay),
|
||||
cc.callFunc(()=>{
|
||||
water3.y = -120
|
||||
})).repeatForever());
|
||||
}
|
||||
|
||||
var name = "a" + random;
|
||||
// if(this.block_Type != cc.Enum(BlockType).Reinforce)target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
|
||||
if(target.active == true){
|
||||
target = this.node.getChildByName("horizontal");
|
||||
let water1 = target.getChildByName("wave").getChildByName("water1");
|
||||
let water2 = target.getChildByName("wave").getChildByName("water2");
|
||||
let water3 = target.getChildByName("wave").getChildByName("water3");
|
||||
let timeDelay = 0.15;
|
||||
water1.runAction(cc.sequence(cc.moveTo(0.6,cc.v2(water1.x,120)),cc.delayTime(timeDelay),
|
||||
cc.callFunc(()=>{
|
||||
water1.y = -120
|
||||
})).repeatForever());
|
||||
water2.runAction(cc.sequence(cc.moveTo(0.6,cc.v2(water2.x,120)),cc.delayTime(timeDelay),
|
||||
cc.callFunc(()=>{
|
||||
water2.y = -120
|
||||
})).repeatForever());
|
||||
water3.runAction(cc.sequence(cc.moveTo(0.6,cc.v2(water3.x,120)),cc.delayTime(timeDelay),
|
||||
cc.callFunc(()=>{
|
||||
water3.y = -120
|
||||
})).repeatForever());
|
||||
name = "b" + random;
|
||||
//if(this.block_Type != cc.Enum(BlockType).Reinforce) target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
}
|
||||
|
@ -185,13 +606,14 @@ export default class NewClass extends cc.Component {
|
|||
}
|
||||
else{
|
||||
target = this.node.getChildByName("turn");
|
||||
if(target.name == "turn"){
|
||||
let water = target.getChildByName("wave").getChildByName("water");
|
||||
water.opacity = 0
|
||||
water.runAction(cc.sequence(cc.rotateTo(7.2,-1080),cc.delayTime(0)).repeatForever());
|
||||
setTimeout(() => {
|
||||
water.opacity = 255;
|
||||
}, 200);
|
||||
|
||||
}
|
||||
name = "c" + random;
|
||||
//if(this.block_Type != cc.Enum(BlockType).Reinforce)target.getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"][name];
|
||||
progress = 0.25;
|
||||
|
@ -231,79 +653,83 @@ export default class NewClass extends cc.Component {
|
|||
target.setPosition(-this.pos_Shifting,-this.pos_Shifting);
|
||||
}
|
||||
}
|
||||
if(this.path_Type == "Reinforce"){
|
||||
console.log(data.order);
|
||||
target = this.node.getChildByName("Reinforce");
|
||||
this.block_Type = cc.Enum(BlockType).Reinforce;
|
||||
this.node.getChildByName("vertical").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e1"];
|
||||
this.node.getChildByName("turn").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e3"];
|
||||
this.node.getChildByName("horizontal").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e2"];
|
||||
target.active = true;
|
||||
target.opacity = 0;
|
||||
progress = 1;
|
||||
cc.tween(target)
|
||||
.to(time,{opacity:255})
|
||||
.call(() =>{
|
||||
if(data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.changeMap,order);
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next,order);
|
||||
// if(this.path_Type == "Reinforce"){
|
||||
// target = this.node.getChildByName("Reinforce");
|
||||
// this.block_Type = cc.Enum(BlockType).Reinforce;
|
||||
// // this.node.getChildByName("vertical").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e1"];
|
||||
// // this.node.getChildByName("turn").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e3"];
|
||||
// // this.node.getChildByName("horizontal").getComponent(cc.Sprite).spriteFrame = this.UI["_spriteFrames"]["e2"];
|
||||
// target.active = true;
|
||||
// target.opacity = 0;
|
||||
// progress = 1;
|
||||
// cc.tween(target)
|
||||
// .to(cc.fx.GameConfig.TIME_INFO.ReinforceSpeed,{opacity:255})
|
||||
// .call(() =>{
|
||||
// if(data.circulate)
|
||||
// cc.fx.Notifications.emit(cc.fx.Message.changeMap,order);
|
||||
// cc.fx.Notifications.emit(cc.fx.Message.nextWater,order);
|
||||
// })
|
||||
// .start();
|
||||
// }
|
||||
// else if(this.path_Type == "Xi_Soil"){
|
||||
// target.active = false;
|
||||
// this.block_Type = cc.Enum(BlockType).Xi_Soil;
|
||||
// target = this.node.getChildByName("Xi_Soil");
|
||||
// target.active = true;
|
||||
// target.opacity = 0;
|
||||
// cc.tween(target)
|
||||
// .to(0.01,{opacity:1})
|
||||
// .to(0.01,{opacity:0})
|
||||
// .call(() =>{
|
||||
// if(data.circulate){
|
||||
// cc.fx.Notifications.emit(cc.fx.Message.nextWater,order);
|
||||
// }
|
||||
|
||||
// })
|
||||
// .start();
|
||||
// }
|
||||
if(this.path_Type == "End"){
|
||||
target.active = false;
|
||||
if(this.block_Type == cc.Enum(BlockType).End){
|
||||
if(this.node.getChildByName("waterStart").active == true && this.block_Type == cc.Enum(BlockType).End){
|
||||
cc.tween(this.node.getChildByName("waterStart"))
|
||||
.to(0.2,{opacity:255})
|
||||
.call(()=>{
|
||||
alert("治水成功");
|
||||
if(cc.fx.GameConfig.GM_INFO.level < 7){
|
||||
cc.fx.GameConfig.GM_INFO.level += 1;
|
||||
}
|
||||
cc.director.loadScene("GameScene");
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else if(this.path_Type == "Xi_Soil"){
|
||||
target.active = false;
|
||||
this.block_Type = cc.Enum(BlockType).Xi_Soil;
|
||||
target = this.node.getChildByName("Xi_Soil");
|
||||
target.active = true;
|
||||
target.opacity = 0;
|
||||
cc.tween(target)
|
||||
.to(0.5,{opacity:255})
|
||||
.to(0.5,{opacity:0})
|
||||
.call(() =>{
|
||||
if(data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next,order);
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else if(this.path_Type == "End"){
|
||||
target.active = false;
|
||||
this.block_Type = cc.Enum(BlockType).Xi_Soil;
|
||||
else{
|
||||
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);
|
||||
alert("治水失败")
|
||||
cc.director.loadScene("GameScene");
|
||||
|
||||
})
|
||||
.start();
|
||||
}
|
||||
|
||||
}
|
||||
else{
|
||||
target.active = true;
|
||||
if(this.block_Type != cc.Enum(BlockType).Xi_Soil){
|
||||
target.getComponent(cc.Sprite).fillRange = 0;
|
||||
cc.tween(target.getComponent(cc.Sprite))
|
||||
.to(time,{fillRange:progress})
|
||||
.call(() =>{
|
||||
if(data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next,order);
|
||||
cc.fx.Notifications.emit(cc.fx.Message.nextWater,order);
|
||||
})
|
||||
.start();
|
||||
}
|
||||
else{
|
||||
target.opacity = 0;
|
||||
target.getComponent(cc.Sprite).fillRange = 1;
|
||||
cc.tween(target)
|
||||
.to(time,{opacity:255})
|
||||
.call(() =>{
|
||||
if(data.circulate)
|
||||
cc.fx.Notifications.emit(cc.fx.Message.next,order);
|
||||
})
|
||||
.start();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -34,17 +34,23 @@ export default class NewClass extends cc.Component {
|
|||
}
|
||||
|
||||
setPosition(tip){
|
||||
tip.setPosition(45,-35);
|
||||
tip.setPosition(30,-35);
|
||||
if(this.tipArray.length > 0){
|
||||
let length = this.tipArray.length+1;
|
||||
let posY = Math.ceil(length/5) - 1;
|
||||
let posX = length - Math.floor(posY)*5 - 1;
|
||||
tip.setPosition(45 + 65*posX,-35 -60*posY);
|
||||
let posY = Math.ceil(length/8) - 1;
|
||||
let posX = length - Math.floor(posY)*8 - 1;
|
||||
tip.setPosition(30 + 48*posX,-35 -48*posY);
|
||||
}
|
||||
}
|
||||
|
||||
removeAllTip(){
|
||||
if(!this.canTouch) return;
|
||||
for(let i=0; i<this.tipArray.length;i++){
|
||||
let tip = this.tipArray[i];
|
||||
tip.active = false;
|
||||
tip.removeFromParent(this.Map);
|
||||
tip = null;
|
||||
}
|
||||
this.tipArray = [];
|
||||
}
|
||||
|
||||
|
@ -64,13 +70,27 @@ export default class NewClass extends cc.Component {
|
|||
btn_Click(target,data){
|
||||
if(!this.canTouch) return;
|
||||
let prefab = this.tip;
|
||||
if(data == "reinforce" || data == "soil") prefab = this[data];
|
||||
if(data == "reinforce" || data == "soil"){
|
||||
prefab = this[data];
|
||||
}
|
||||
let tip = cc.instantiate(prefab);
|
||||
if(data == "up") tip.angle = 180;
|
||||
if(data == "left") tip.angle = -90;
|
||||
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"){
|
||||
this.tipArray[this.tipArray.length-1].removeFromParent();
|
||||
this.tipArray[this.tipArray.length-1] = null;
|
||||
this.tipArray.pop();
|
||||
this.controlArray.pop();
|
||||
}
|
||||
}
|
||||
this.setPosition(tip);
|
||||
|
||||
this.tipArray.push(tip);
|
||||
this.controlArray.push(data);
|
||||
cc.fx.Notifications.emit(cc.fx.Message.control,data);
|
||||
|
|
|
@ -11,13 +11,23 @@ export default class GameManager extends cc.Component {
|
|||
@property(cc.Prefab)
|
||||
Block: cc.Prefab = null;
|
||||
|
||||
@property(cc.Label)
|
||||
Time: cc.Label = null;
|
||||
|
||||
@property(cc.Label)
|
||||
Countdown: cc.Label = null;
|
||||
|
||||
countTime: number; //总倒计时
|
||||
waterTime: number //洪峰倒计时
|
||||
block_Array: any; //所有块数组
|
||||
path_Array: any; //修筑路径
|
||||
water_Array: any; //水流路径
|
||||
map_Array: any; //地图数组
|
||||
water_PathAray:any; //洪峰路径
|
||||
map_Hight:number; //地图高度
|
||||
map_Width:number; //地图宽度
|
||||
plan_over:boolean; //是否修建完
|
||||
waterTween:cc.Tween; //河水倒计时动画
|
||||
|
||||
onLoad () {
|
||||
|
||||
|
@ -29,16 +39,38 @@ export default class GameManager extends cc.Component {
|
|||
//初始化数据
|
||||
init(){
|
||||
this.initMap();
|
||||
this.countTime = cc.fx.GameConfig.TIME_INFO.totalTime;
|
||||
this.waterTime = cc.fx.GameConfig.TIME_INFO.waterTime[cc.fx.GameConfig.GM_INFO.level];
|
||||
|
||||
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);
|
||||
|
||||
|
||||
}
|
||||
//初始化地图
|
||||
//初始化地图`
|
||||
initMap(){
|
||||
this.block_Array = [];
|
||||
this.path_Array = [];
|
||||
this.water_Array = [];
|
||||
this.map_Array = [];
|
||||
this.plan_over = false;
|
||||
this.map_Hight = 0;
|
||||
this.map_Width = 0;
|
||||
let arr = cc.fx.GameConfig.LEVEL_INFO[0][0].map;
|
||||
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.node.getChildByName("Top").getChildByName("id").getComponent(cc.Label).string =
|
||||
cc.fx.GameConfig.LEVEL_INFO[cc.fx.GameConfig.GM_INFO.level][number].id;
|
||||
//将地图x,y轴切换
|
||||
|
||||
this.map_Array = arr[0].map((item, i) => {
|
||||
|
@ -47,16 +79,23 @@ export default class GameManager extends cc.Component {
|
|||
this.map_Width = this.map_Array.length;
|
||||
this.map_Hight = this.map_Array[0].length;
|
||||
|
||||
this.Map.x =(6 - this.map_Array.length)*48;
|
||||
this.Map.y = (this.map_Array[0].length - 6.5)*48;
|
||||
|
||||
for(let i=0;i<this.map_Array.length;i++){
|
||||
for(let j=0; j<this.map_Array [i].length;j++){
|
||||
let block = cc.instantiate(this.Block);
|
||||
block.parent= this.Map;
|
||||
block.getComponent("Block").initData(this.map_Array [i][j]);
|
||||
if(this.map_Array [i][j] == cc.Enum(BlockType).Start) this.path_Array.push(cc.v3(i,j,cc.Enum(BlockType).Nomal));
|
||||
block.getComponent("Block").initData(this.map_Array [i][j],cc.v2(i,j),cc.v2(this.map_Width,this.map_Hight));
|
||||
if(this.map_Array [i][j] == cc.Enum(BlockType).Start){
|
||||
this.path_Array.push(cc.v3(i,j,cc.Enum(BlockType).Nomal));
|
||||
// this.water_Array.push(cc.v3(i,j,cc.Enum(BlockType).Nomal));
|
||||
}
|
||||
block.setPosition(cc.v2(-block.width*2.5 + i*block.width,block.height*4 - j*block.height));
|
||||
this.block_Array.push(block);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//开始后,按玩家操作,将路径中地图块放入数组中
|
||||
|
@ -84,34 +123,53 @@ export default class GameManager extends cc.Component {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
this.runWater(0);
|
||||
this.runRoad(0);
|
||||
}
|
||||
//开始执行洪峰来了的动画
|
||||
runWater(order){
|
||||
runRoad(order){
|
||||
order = parseInt(order);
|
||||
|
||||
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)
|
||||
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);
|
||||
}
|
||||
}
|
||||
else{
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
if(order <= this.path_Array.length-1){
|
||||
let i = this.path_Array[order].x*this.map_Array[0].length+this.path_Array[order].y;
|
||||
let direction = "";
|
||||
let circulate = true;
|
||||
//最后一步结束
|
||||
if(order == this.path_Array.length-1){
|
||||
circulate = false;
|
||||
direction = "End";
|
||||
// if(direction == "up" || direction == "right_up" || direction == "left_up"){
|
||||
// direction = "up";
|
||||
// }
|
||||
// else if(direction == "down" || direction == "left_down" || direction == "right_down"){
|
||||
// direction = "down";
|
||||
// }
|
||||
// else if(direction == "left" || direction == "up_left" || direction == "down_left"){
|
||||
// direction = "left";
|
||||
// }
|
||||
// else if(direction == "right" || direction == "up_right" || direction == "down_right"){
|
||||
// direction = "right";
|
||||
// }
|
||||
setTimeout(() => {
|
||||
if(!this.plan_over){
|
||||
console.log("准备出水");
|
||||
this.plan_over = true;
|
||||
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();
|
||||
progress.fillRange = 1;
|
||||
this.runWater(0);
|
||||
}
|
||||
}, 500);
|
||||
}
|
||||
else{
|
||||
|
||||
if(this.path_Array[order].z == 6 && order + 1 < this.path_Array.length) {
|
||||
direction = "Reinforce";
|
||||
i = this.path_Array[order+1].x*this.map_Array[0].length+this.path_Array[order+1].y;
|
||||
|
@ -120,39 +178,55 @@ export default class GameManager extends cc.Component {
|
|||
if(this.path_Array[order+1].z == 5){
|
||||
direction = "Xi_Soil";
|
||||
}
|
||||
else if(this.path_Array[order+1].z == 6 && order == 0){
|
||||
direction = "Reinforce";
|
||||
}
|
||||
else{
|
||||
direction = this.getDirection(order);
|
||||
direction = this.getDirection(order,this.path_Array);
|
||||
}
|
||||
}
|
||||
else{
|
||||
direction = this.getDirection(order);
|
||||
direction = this.getDirection(order,this.path_Array);
|
||||
}
|
||||
}
|
||||
// console.log(order,this.path_Array[order].x,this.path_Array[order].y,i);
|
||||
let jg = this.getBoundary(order,this.path_Array[order].x,this.path_Array[order].y,direction);
|
||||
|
||||
// console.log("步骤:",order,"方向",direction);
|
||||
let jg = this.getBoundary(order,this.path_Array[order].x,this.path_Array[order].y,direction,this.path_Array);
|
||||
|
||||
if(direction == "" || jg == false) return;
|
||||
let target = this.block_Array[i].getComponent("Block");
|
||||
// console.log("步骤:",order,"方向",direction);
|
||||
|
||||
target.setPath(direction);
|
||||
|
||||
if(order > 0 && order < this.path_Array.length-1){
|
||||
if(this.path_Array[order+1].z == 5){
|
||||
this.set_Soil(order+1);
|
||||
this.set_Soil(order+1,this.path_Array,"road");
|
||||
circulate = false;
|
||||
return;
|
||||
}
|
||||
else if(order == 1 && this.path_Array[order].z == 5){
|
||||
this.set_Soil(order,this.path_Array,"road");
|
||||
circulate = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
let pos = cc.v2();
|
||||
if(direction == "End" && 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:0.2,
|
||||
time:cc.fx.GameConfig.TIME_INFO.waterSpeed[cc.fx.GameConfig.GM_INFO.level],
|
||||
type:this.path_Array[order].z,
|
||||
circulate:circulate
|
||||
circulate:circulate,
|
||||
last:pos
|
||||
};
|
||||
target.runWater(data);
|
||||
target.runRoad(data);
|
||||
}
|
||||
}
|
||||
//判断边界。或者撞山,或者湿地没有加固
|
||||
getBoundary(order,x,y,direction){
|
||||
getBoundary(order,x,y,direction,road){
|
||||
let jg = true;
|
||||
if(x < 0 || x >= this.map_Width || y < 0 || y >= this.map_Hight){
|
||||
jg = false;
|
||||
|
@ -160,7 +234,7 @@ export default class GameManager extends cc.Component {
|
|||
alert("超过边界,游戏结束");
|
||||
}
|
||||
else {
|
||||
let i = this.path_Array[order].x*this.map_Array[0].length+this.path_Array[order].y;
|
||||
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;
|
||||
|
@ -176,12 +250,76 @@ export default class GameManager extends cc.Component {
|
|||
return jg;
|
||||
}
|
||||
|
||||
//开始执行洪峰来了的动画
|
||||
runWater(order){
|
||||
order = parseInt(order);
|
||||
if(order <= this.water_Array.length-1){
|
||||
let i = this.water_Array[order].x*this.map_Array[0].length+this.water_Array[order].y;
|
||||
let direction = "";
|
||||
let circulate = true;
|
||||
//最后一步结束
|
||||
if(order == this.water_Array.length-1){
|
||||
circulate = false;
|
||||
direction = "End";
|
||||
}
|
||||
else{
|
||||
if(this.water_Array[order].z == 6 && order + 1 < this.water_Array.length) {
|
||||
direction = "Reinforce";
|
||||
i = this.water_Array[order+1].x*this.map_Array[0].length+this.water_Array[order+1].y;
|
||||
}
|
||||
else if(order+1 < this.water_Array.length){
|
||||
if(this.water_Array[order+1].z == 5){
|
||||
direction = "Xi_Soil";
|
||||
}
|
||||
else if(this.water_Array[order+1].z == 6 && order == 0){
|
||||
direction = "Reinforce";
|
||||
}
|
||||
else{
|
||||
direction = this.getDirection(order,this.water_Array);
|
||||
}
|
||||
}
|
||||
else{
|
||||
direction = this.getDirection(order,this.water_Array);
|
||||
}
|
||||
}
|
||||
// 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);
|
||||
if(direction == "" || jg == false){
|
||||
return;
|
||||
}
|
||||
let target = this.block_Array[i].getComponent("Block");
|
||||
|
||||
target.setPath(direction);
|
||||
|
||||
if(order > 0 && order < this.water_Array.length-1){
|
||||
if(this.water_Array[order+1].z == 5){
|
||||
this.set_Soil(order+1,this.water_Array,"water");
|
||||
circulate = false;
|
||||
return;
|
||||
}
|
||||
else if(order == 1 && this.water_Array[order].z == 5){
|
||||
this.set_Soil(order,this.water_Array,"water");
|
||||
circulate = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
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
|
||||
};
|
||||
target.runWater(data);
|
||||
}
|
||||
}
|
||||
|
||||
//获取息壤的格子的方向
|
||||
getXi_Soil(order){
|
||||
getXi_Soil(order,road){
|
||||
var direction = null;
|
||||
//如果息壤后面还有下一步的话
|
||||
if(order + 1 < this.path_Array.length){
|
||||
direction = this.getDirection(order);
|
||||
if(order + 1 < road.length){
|
||||
direction = this.getDirection(order,road);
|
||||
if(direction == "up" || direction == "right_up" || direction == "left_up"){
|
||||
direction = "up";
|
||||
}
|
||||
|
@ -198,28 +336,34 @@ export default class GameManager extends cc.Component {
|
|||
return direction;
|
||||
}
|
||||
//设置息壤
|
||||
set_Soil(order){
|
||||
var direction = this.getXi_Soil(order);
|
||||
set_Soil(order,road,name){
|
||||
var direction = this.getXi_Soil(order,road);
|
||||
var length = 0;
|
||||
if(direction == "right"){
|
||||
length = this.map_Width - 1;
|
||||
for(let i=this.path_Array[order].x;i<=length;i++){
|
||||
let n = i*this.map_Array[0].length+this.path_Array[order].y;
|
||||
for(let i=road[order].x;i<=length;i++){
|
||||
let n = i*this.map_Array[0].length+road[order].y;
|
||||
let target = this.block_Array[n].getComponent("Block");
|
||||
if(target.block_Type == 3){
|
||||
if(target.block_Type == 3 || target.block_Type == 4){
|
||||
length = i-1;
|
||||
if(target.block_Type == 4){
|
||||
length += 1;
|
||||
}
|
||||
i = 10000;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}this.scheduleOnce
|
||||
}
|
||||
else if(direction == "left"){
|
||||
length = 0;
|
||||
for(let i=this.path_Array[order].x;i>=length;i--){
|
||||
let n = i*this.map_Array[0].length+this.path_Array[order].y;
|
||||
for(let i=road[order].x;i>=length;i--){
|
||||
let n = i*this.map_Array[0].length+road[order].y;
|
||||
let target = this.block_Array[n].getComponent("Block");
|
||||
if(target.block_Type == 3){
|
||||
length = i+1;
|
||||
if(target.block_Type == 3 || target.block_Type == 4){
|
||||
length = i + 1;
|
||||
if(target.block_Type == 4){
|
||||
length -= 1;
|
||||
}
|
||||
i = -1;
|
||||
break;
|
||||
}
|
||||
|
@ -227,11 +371,15 @@ export default class GameManager extends cc.Component {
|
|||
}
|
||||
else if(direction == "up"){
|
||||
length = 0;
|
||||
for(let i=this.path_Array[order].y;i>=length;i--){
|
||||
let n = this.path_Array[order].x*this.map_Array[0].length+i;
|
||||
for(let i=road[order].y;i>=length;i--){
|
||||
let n = road[order].x*this.map_Array[0].length + i;
|
||||
let target = this.block_Array[n].getComponent("Block");
|
||||
if(target.block_Type == 3){
|
||||
length = i+1;
|
||||
|
||||
if(target.block_Type == 3 || target.block_Type == 4){
|
||||
length = i + 1;
|
||||
if(target.block_Type == 4){
|
||||
length -= 1;
|
||||
}
|
||||
i = -1;
|
||||
break;
|
||||
}
|
||||
|
@ -239,102 +387,175 @@ export default class GameManager extends cc.Component {
|
|||
}
|
||||
else if(direction == "down"){
|
||||
length = this.map_Hight - 1;
|
||||
for(let i=this.path_Array[order].y;i<=length;i++){
|
||||
let n = this.path_Array[order].x*this.map_Array[0].length+i;
|
||||
for(let i=road[order].y;i<=length;i++){
|
||||
let n = road[order].x*this.map_Array[0].length + i;
|
||||
let target = this.block_Array[n].getComponent("Block");
|
||||
if(target.block_Type == 3){
|
||||
|
||||
if(target.block_Type == 3 || target.block_Type == 4){
|
||||
length = i-1;
|
||||
if(target.block_Type == 4){
|
||||
length += 1;
|
||||
}
|
||||
i = 10000;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.soil_Find(direction,order,length);
|
||||
this.soil_Find(direction,order,length,road,name);
|
||||
}
|
||||
//查找息壤蛮遗憾路径
|
||||
soil_Find(direction,order,length){
|
||||
let start = this.path_Array[order].x;
|
||||
soil_Find(direction,order,length,road,name){
|
||||
let start = road[order].x;
|
||||
if(direction == "right"){
|
||||
for(let i = start; i<=length; i++){
|
||||
let n = i*this.map_Array[0].length+this.path_Array[order].y;
|
||||
let n = i*this.map_Array[0].length+road[order].y;
|
||||
let target = this.block_Array[n].getComponent("Block");
|
||||
if(i == start) target.set_Xi_SoilType(this.getDirection(order),null);
|
||||
if(i == start){
|
||||
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);
|
||||
this.changeWater(value);
|
||||
}
|
||||
}
|
||||
else {
|
||||
let jg = null;
|
||||
if(i == length){
|
||||
let number = i - start -1;
|
||||
this.changePath(order,number,false);
|
||||
this.changePath(order,number,false,road);
|
||||
jg = order;
|
||||
}
|
||||
|
||||
target.set_Xi_SoilType(direction,jg);
|
||||
target.set_Xi_SoilType(direction,jg,name);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(direction == "left"){
|
||||
for(let i = start; i>=length; i--){
|
||||
let n = i*this.map_Array[0].length+this.path_Array[order].y;
|
||||
let n = i*this.map_Array[0].length+road[order].y;
|
||||
let target = this.block_Array[n].getComponent("Block");
|
||||
|
||||
if(i == start) target.set_Xi_SoilType(this.getDirection(order),null);
|
||||
if(i == start){
|
||||
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);
|
||||
this.changeWater(value);
|
||||
}
|
||||
}
|
||||
else {
|
||||
let jg = null;
|
||||
if(i == length){
|
||||
let number = i - start + 1;
|
||||
this.changePath(order,number,false);
|
||||
this.changePath(order,number,false,road);
|
||||
jg = order;
|
||||
}
|
||||
target.set_Xi_SoilType(direction,jg);
|
||||
target.set_Xi_SoilType(direction,jg,name);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(direction == "up"){
|
||||
start = this.path_Array[order].y;
|
||||
start = road[order].y;
|
||||
|
||||
for(let i = start; i>=length; i--){
|
||||
let n = this.path_Array[order].x*this.map_Array[0].length+i;
|
||||
let n = road[order].x*this.map_Array[0].length+i;
|
||||
let target = this.block_Array[n].getComponent("Block");
|
||||
if(i == start) target.set_Xi_SoilType(this.getDirection(order),null);
|
||||
if(i == start){
|
||||
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);
|
||||
this.changeWater(value);
|
||||
}
|
||||
}
|
||||
else {
|
||||
let jg = null;
|
||||
if(i == length){
|
||||
let number = i - start + 1;
|
||||
this.changePath(order,number,true);
|
||||
this.changePath(order,number,true,road);
|
||||
jg = order;
|
||||
}
|
||||
target.set_Xi_SoilType(direction,jg);
|
||||
console.log("想上息壤插入:",this.path_Array[order].x,i);
|
||||
target.set_Xi_SoilType(direction,jg,name);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(direction == "down"){
|
||||
start = this.path_Array[order].y;
|
||||
start = road[order].y;
|
||||
for(let i = start; i<=length; i++){
|
||||
let n = this.path_Array[order].x*this.map_Array[0].length+i;
|
||||
let n = road[order].x*this.map_Array[0].length+i;
|
||||
let target = this.block_Array[n].getComponent("Block");
|
||||
if(i == start) target.set_Xi_SoilType(this.getDirection(order),null);
|
||||
if(i == start){
|
||||
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);
|
||||
this.changeWater(value);
|
||||
}
|
||||
}
|
||||
else {
|
||||
let jg = null;
|
||||
if(i == length){
|
||||
let number = i - start - 1;
|
||||
this.changePath(order,number,true);
|
||||
this.changePath(order,number,true,road);
|
||||
jg = order;
|
||||
}
|
||||
target.set_Xi_SoilType(direction,jg);
|
||||
target.set_Xi_SoilType(direction,jg,name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//改变水流地图
|
||||
changeWater(value){
|
||||
let jg = true;
|
||||
if(this.water_Array.length > 0){
|
||||
if(this.water_Array[this.water_Array.length-1].x == value.x && this.water_Array[this.water_Array.length-1].y == value.y){
|
||||
jg = false;
|
||||
}
|
||||
}
|
||||
if(jg) this.water_Array.push(value);
|
||||
}
|
||||
|
||||
//息壤过后改变修筑路径
|
||||
changePath(order,number,direction){
|
||||
for(let i = (order+1); i<this.path_Array.length; i++){
|
||||
if(!direction)this.path_Array[i].x += (number);
|
||||
else this.path_Array[i].y += (number);
|
||||
}
|
||||
// // this.path_Array[data-1].x = 5;
|
||||
// this.path_Array[data].x = 5;
|
||||
changePath(order,number,direction,road){
|
||||
|
||||
for(let i = (order+1); i<road.length; i++){
|
||||
if(!direction){
|
||||
road[i].x += (number);
|
||||
}
|
||||
else{
|
||||
road[i].y += (number);
|
||||
}
|
||||
}
|
||||
if(direction){
|
||||
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)
|
||||
}
|
||||
}
|
||||
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)
|
||||
}
|
||||
}
|
||||
}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)
|
||||
}
|
||||
}
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
changeMap(data){
|
||||
|
@ -342,14 +563,14 @@ export default class GameManager extends cc.Component {
|
|||
}
|
||||
|
||||
//获取洪峰方向
|
||||
getDirection(order){
|
||||
getDirection(order,road){
|
||||
var name = "";
|
||||
//入海口比较复杂单独判断
|
||||
if(order == 0){
|
||||
let nextX = this.path_Array[order+1].x - this.path_Array[order].x;
|
||||
let nextY = this.path_Array[order].y - this.path_Array[order+1].y;
|
||||
let nextX = road[order+1].x - road[order].x;
|
||||
let nextY = road[order].y - road[order+1].y;
|
||||
//在底边
|
||||
if(this.path_Array[order].y == this.map_Array[0].length-1){
|
||||
if(road[order].y == this.map_Array[0].length-1){
|
||||
if(nextX == 0){
|
||||
if(nextY == 1)name = "up";
|
||||
else if(nextY == -1) name = "err";
|
||||
|
@ -358,7 +579,7 @@ export default class GameManager extends cc.Component {
|
|||
else if(nextX == -1) name = "up_left";
|
||||
}
|
||||
//在顶边
|
||||
else if(this.path_Array[order].y == 0){
|
||||
else if(road[order].y == 0){
|
||||
if(nextX == 0){
|
||||
if(nextY == 1)name = "err";
|
||||
else if(nextY == -1) name = "down";
|
||||
|
@ -367,7 +588,7 @@ export default class GameManager extends cc.Component {
|
|||
else if(nextX == -1) name = "down_left";
|
||||
}
|
||||
//在左边
|
||||
else if(this.path_Array[order].x == 0){
|
||||
else if(road[order].x == 0){
|
||||
if(nextX == 0){
|
||||
if(nextY == 1)name = "right_up";
|
||||
else if(nextY == -1) name = "right_down";
|
||||
|
@ -376,7 +597,7 @@ export default class GameManager extends cc.Component {
|
|||
else if(nextX == -1) name = "err";
|
||||
}
|
||||
//在右边
|
||||
else if(this.path_Array[order].x == this.map_Array.length-1){
|
||||
else if(road[order].x == this.map_Array.length-1){
|
||||
if(nextX == 0){
|
||||
if(nextY == 1)name = "left_up";
|
||||
else if(nextY == -1) name = "left_down";
|
||||
|
@ -388,18 +609,25 @@ export default class GameManager extends cc.Component {
|
|||
//不是第一步,已经走过一步
|
||||
else if(order > 0){
|
||||
var next = 1;
|
||||
if(order+2 < this.path_Array.length){
|
||||
if(this.path_Array[order+1].z == 6) next = 2;
|
||||
if(order+2 < road.length){
|
||||
if(road[order+1].z == 6) next = 2;
|
||||
}
|
||||
|
||||
//用于判断此点的上一个点,是为了判断当前方块洪水七点,以及下一个移动方向,判断洪终点方向
|
||||
let nextX = this.path_Array[order+next].x - this.path_Array[order].x;
|
||||
let nextY = this.path_Array[order].y - this.path_Array[order+next].y
|
||||
let previousX = this.path_Array[order].x - this.path_Array[order-1].x;
|
||||
let previousY = this.path_Array[order-1].y - this.path_Array[order].y;
|
||||
let nextX = road[order+next].x - road[order].x;
|
||||
let nextY = road[order].y - road[order+next].y
|
||||
let previousX = road[order].x - road[order-1].x;
|
||||
let previousY = road[order-1].y - road[order].y;
|
||||
if(previousX == 0 && previousY == 0){
|
||||
previousX = this.path_Array[order].x - this.path_Array[order-2].x;
|
||||
previousY = this.path_Array[order-2].y - this.path_Array[order].y;
|
||||
if(order > 1){
|
||||
previousX = road[order].x - road[order-2].x;
|
||||
previousY = road[order-2].y - road[order].y;
|
||||
}
|
||||
else if(order + 1 < road.length){
|
||||
previousX = road[order+1].x - road[order].x;
|
||||
previousY = road[order].y - road[order+1].y;
|
||||
// console.log("息壤,上下坐标差距",previousX,previousY);
|
||||
}
|
||||
}
|
||||
if(previousX == 0 && previousY >= 1){
|
||||
if(nextX == 0){
|
||||
|
@ -442,7 +670,9 @@ export default class GameManager extends cc.Component {
|
|||
fit(){
|
||||
var jg = this.setFit();
|
||||
if(!jg){
|
||||
|
||||
this.Map.scale = 1.2;
|
||||
}else{
|
||||
this.Map.scale = 1;
|
||||
}
|
||||
}
|
||||
//判断全面屏
|
||||
|
@ -492,12 +722,28 @@ export default class GameManager extends cc.Component {
|
|||
this.setMap(data);
|
||||
}
|
||||
|
||||
updateWaterTime(){
|
||||
if (this.waterTime > 0) {
|
||||
this.waterTime -= 1;
|
||||
this.Countdown.string = cc.fx.GameTool.getTimeMargin(this.waterTime);
|
||||
if(this.waterTime <= 0){
|
||||
this.unschedule(this.updateWaterTime);
|
||||
if(!this.plan_over){
|
||||
this.plan_over = true;
|
||||
setTimeout(() => {
|
||||
this.runWater(0);
|
||||
}, 500);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//如果是倒计时 调用此方法
|
||||
updateCountDownTime () {
|
||||
if (this.countTime > 0) {
|
||||
this.countTime -= 1;
|
||||
// this.time.string = cc.fx.GameTool.getTimeMargin(this.countTime);
|
||||
this.Time.string = cc.fx.GameTool.getTimeMargin(this.countTime);
|
||||
if(this.countTime < 5){
|
||||
let over = this.node.getChildByName("Over");
|
||||
cc.tween(over)
|
||||
|
@ -538,24 +784,35 @@ export default class GameManager extends cc.Component {
|
|||
|
||||
}
|
||||
|
||||
addEnd(data){
|
||||
|
||||
}
|
||||
|
||||
nextWater(){
|
||||
|
||||
}
|
||||
|
||||
onEnable () {
|
||||
cc.fx.Notifications.on(cc.fx.Message.control, this.clickSun, this);
|
||||
cc.fx.Notifications.on(cc.fx.Message.next, this.runWater, this);
|
||||
cc.fx.Notifications.on(cc.fx.Message.next, this.runRoad, this);
|
||||
cc.fx.Notifications.on(cc.fx.Message.nextWater, this.runWater, this);
|
||||
cc.fx.Notifications.on(cc.fx.Message.startGame, this.startGame, this);
|
||||
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);
|
||||
|
||||
}
|
||||
onDisable () {
|
||||
cc.fx.Notifications.off(cc.fx.Message.control, this.clickSun);
|
||||
cc.fx.Notifications.off(cc.fx.Message.next, this.runWater);
|
||||
cc.fx.Notifications.off(cc.fx.Message.next, this.runRoad);
|
||||
cc.fx.Notifications.off(cc.fx.Message.nextWater, this.runWater);
|
||||
cc.fx.Notifications.off(cc.fx.Message.startGame, this.startGame);
|
||||
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);
|
||||
}
|
||||
update (dt) {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -91,8 +91,8 @@ function responseHandler(response: { data: any }) {
|
|||
// 响应拦截器
|
||||
// Rq.interceptors.response.use(responseHandler)
|
||||
const config = {
|
||||
gameId: "100010",
|
||||
secretKey: "wozrGKsL",
|
||||
gameId: "100012",
|
||||
secretKey: "onnfPKJW",
|
||||
EK:"hui231%1"
|
||||
};
|
||||
|
||||
|
|
|
@ -41,7 +41,9 @@ window.initMgr = function() {
|
|||
startGame:"10002", //传递开始建筑
|
||||
next: "10003" , //传递执行下一个格子洪水流过
|
||||
changePath: "10004", //传递操作控制
|
||||
changeMap: "10005" //改变那地图
|
||||
changeMap: "10005", //改变那地图
|
||||
nextWater: "10006" , //传递执行下一个格子洪水流过
|
||||
addEnd: "10007" , //添加结束点
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -36,8 +36,8 @@
|
|||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 106,
|
||||
"height": 98
|
||||
"width": 46,
|
||||
"height": 46
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
|
@ -55,8 +55,8 @@
|
|||
0,
|
||||
0,
|
||||
1,
|
||||
0.5,
|
||||
0.5,
|
||||
1,
|
||||
1,
|
||||
0
|
||||
]
|
||||
},
|
||||
|
@ -89,7 +89,7 @@
|
|||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "6b009d51-7e95-45c5-b483-f2948213f8b6"
|
||||
"__uuid__": "86453b08-c95d-4dd7-be39-d7d97e3f93db"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
|
@ -102,7 +102,9 @@
|
|||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": null,
|
||||
"_atlas": {
|
||||
"__uuid__": "9830637c-e4e3-4df5-8d51-fc49b7d715b4"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
|
|
|
@ -29,15 +29,15 @@
|
|||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 235,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 96,
|
||||
"height": 96
|
||||
"width": 46,
|
||||
"height": 46
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
|
@ -55,8 +55,8 @@
|
|||
0,
|
||||
0,
|
||||
1,
|
||||
0.5,
|
||||
0.5,
|
||||
1,
|
||||
1,
|
||||
0
|
||||
]
|
||||
},
|
||||
|
@ -89,7 +89,7 @@
|
|||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "a3ef42a4-ab25-492d-b6c8-36d166c99a15"
|
||||
"__uuid__": "b80f2487-005a-4928-bde5-04fa41aeda71"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
|
@ -102,7 +102,9 @@
|
|||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": null,
|
||||
"_atlas": {
|
||||
"__uuid__": "9830637c-e4e3-4df5-8d51-fc49b7d715b4"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
|
|
|
@ -29,15 +29,15 @@
|
|||
"_opacity": 255,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 219,
|
||||
"g": 80,
|
||||
"b": 14,
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 96,
|
||||
"height": 96
|
||||
"width": 46,
|
||||
"height": 46
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
|
@ -55,8 +55,8 @@
|
|||
0,
|
||||
0,
|
||||
1,
|
||||
0.5,
|
||||
0.5,
|
||||
1,
|
||||
1,
|
||||
0
|
||||
]
|
||||
},
|
||||
|
@ -89,7 +89,7 @@
|
|||
"_srcBlendFactor": 770,
|
||||
"_dstBlendFactor": 771,
|
||||
"_spriteFrame": {
|
||||
"__uuid__": "a3ef42a4-ab25-492d-b6c8-36d166c99a15"
|
||||
"__uuid__": "c56d3750-ea9e-4a25-8ee4-ca2306c86f7e"
|
||||
},
|
||||
"_type": 0,
|
||||
"_sizeMode": 1,
|
||||
|
@ -102,7 +102,9 @@
|
|||
"_fillStart": 0,
|
||||
"_fillRange": 0,
|
||||
"_isTrimmedMode": true,
|
||||
"_atlas": null,
|
||||
"_atlas": {
|
||||
"__uuid__": "9830637c-e4e3-4df5-8d51-fc49b7d715b4"
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
|
|
BIN
assets/resources/Bg/bg1.jpg
Normal file
After Width: | Height: | Size: 186 KiB |
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "bc1d04bb-c176-4882-be2b-e8697f8064a9",
|
||||
"uuid": "7a27612e-e898-4a59-afb2-1afd54664469",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
|
@ -8,15 +8,15 @@
|
|||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 78,
|
||||
"height": 78,
|
||||
"width": 750,
|
||||
"height": 1660,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"block2": {
|
||||
"bg1": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "e3acc841-072e-46c4-b892-be3da3cb608b",
|
||||
"uuid": "cdd137bb-0948-45d8-83d9-72ef549a9dbc",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "bc1d04bb-c176-4882-be2b-e8697f8064a9",
|
||||
"rawTextureUuid": "7a27612e-e898-4a59-afb2-1afd54664469",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
|
@ -24,10 +24,10 @@
|
|||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 78,
|
||||
"height": 78,
|
||||
"rawWidth": 78,
|
||||
"rawHeight": 78,
|
||||
"width": 750,
|
||||
"height": 1660,
|
||||
"rawWidth": 750,
|
||||
"rawHeight": 1660,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
BIN
assets/resources/Bg/bg2.jpg
Normal file
After Width: | Height: | Size: 69 KiB |
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "c71bf634-8b0b-4e7a-9c82-7ec6173bc5bb",
|
||||
"uuid": "e006af8e-5c21-4124-b29b-4d429f0900b3",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
|
@ -14,9 +14,9 @@
|
|||
"subMetas": {
|
||||
"bg2": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "57395957-a96b-4a27-8e2a-696e24d876a2",
|
||||
"uuid": "75ac69d4-fee8-4af1-b32c-4c8fab0b6f7b",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "c71bf634-8b0b-4e7a-9c82-7ec6173bc5bb",
|
||||
"rawTextureUuid": "e006af8e-5c21-4124-b29b-4d429f0900b3",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
Before Width: | Height: | Size: 129 KiB |
Before Width: | Height: | Size: 1013 B |
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "d38677eb-455f-4373-ad16-121fc24ccd59",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 60,
|
||||
"height": 96,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"block1": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "af8457b5-c84c-4585-9402-aee73193f450",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "d38677eb-455f-4373-ad16-121fc24ccd59",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 60,
|
||||
"height": 96,
|
||||
"rawWidth": 60,
|
||||
"rawHeight": 96,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 1.7 KiB |
BIN
assets/resources/UI/boss_warn_bg.png
Normal file
After Width: | Height: | Size: 21 KiB |
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "d7c204b8-0179-40c7-b370-12c199c53dcb",
|
||||
"uuid": "b5f1d74c-bd02-4f27-8104-659f5c0ec112",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
|
@ -8,26 +8,26 @@
|
|||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 146,
|
||||
"height": 146,
|
||||
"width": 125,
|
||||
"height": 640,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"turn_wawe": {
|
||||
"boss_warn_bg": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "e0dbc420-4ecd-4fc3-b83d-0aad6bbc1759",
|
||||
"uuid": "b926007a-3c3e-4981-b1c0-638864dfc892",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "d7c204b8-0179-40c7-b370-12c199c53dcb",
|
||||
"rawTextureUuid": "b5f1d74c-bd02-4f27-8104-659f5c0ec112",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetX": 4.5,
|
||||
"offsetY": 0,
|
||||
"trimX": 9,
|
||||
"trimY": 9,
|
||||
"width": 128,
|
||||
"height": 128,
|
||||
"rawWidth": 146,
|
||||
"rawHeight": 146,
|
||||
"trimY": 0,
|
||||
"width": 116,
|
||||
"height": 640,
|
||||
"rawWidth": 125,
|
||||
"rawHeight": 640,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
|
@ -15,7 +15,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1,149},{96,96}}</string>
|
||||
<string>{{1592,9},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -30,7 +30,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{149,1},{96,96}}</string>
|
||||
<string>{{1690,1},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -45,7 +45,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1,247},{96,96}}</string>
|
||||
<string>{{1788,1},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -60,7 +60,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{247,1},{96,96}}</string>
|
||||
<string>{{1886,1},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -75,7 +75,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1,345},{96,96}}</string>
|
||||
<string>{{1220,160},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -90,7 +90,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{345,1},{96,96}}</string>
|
||||
<string>{{1318,133},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -105,7 +105,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{443,1},{96,96}}</string>
|
||||
<string>{{1416,133},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -120,7 +120,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{541,1},{96,96}}</string>
|
||||
<string>{{1514,113},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -135,7 +135,22 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{149,99},{96,96}}</string>
|
||||
<string>{{1612,107},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>begin.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{218,60}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{218,60}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1268,9},{218,60}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -150,7 +165,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{247,99},{96,96}}</string>
|
||||
<string>{{1710,99},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -165,7 +180,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{345,99},{96,96}}</string>
|
||||
<string>{{1808,99},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -180,7 +195,22 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{443,99},{96,96}}</string>
|
||||
<string>{{1906,99},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>build.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{218,60}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{218,60}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1268,71},{218,60}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -195,7 +225,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{541,99},{96,96}}</string>
|
||||
<string>{{1220,258},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -210,7 +240,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{125,197},{96,96}}</string>
|
||||
<string>{{1318,231},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -225,7 +255,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{223,197},{96,96}}</string>
|
||||
<string>{{1416,231},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -240,7 +270,22 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{321,197},{96,96}}</string>
|
||||
<string>{{1514,211},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>chehui.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{72,72}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{72,72}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1013,341},{72,72}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -255,7 +300,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{419,197},{96,96}}</string>
|
||||
<string>{{1612,205},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -270,7 +315,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{517,197},{96,96}}</string>
|
||||
<string>{{1710,197},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -285,7 +330,37 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{99,295},{96,96}}</string>
|
||||
<string>{{1808,197},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>down.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{84,84}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{84,84}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{747,420},{84,84}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>downBg.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{750,354}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{750,354}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1,1},{750,354}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -300,7 +375,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{99,393},{96,96}}</string>
|
||||
<string>{{1906,197},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -315,7 +390,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{197,295},{96,96}}</string>
|
||||
<string>{{1318,329},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -330,7 +405,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{197,393},{96,96}}</string>
|
||||
<string>{{1416,329},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -345,7 +420,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{295,295},{96,96}}</string>
|
||||
<string>{{1514,309},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -360,7 +435,22 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{295,393},{96,96}}</string>
|
||||
<string>{{1612,303},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>e6.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>{{1710,295},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -375,7 +465,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{393,295},{96,96}}</string>
|
||||
<string>{{1808,295},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -390,7 +480,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,36}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1,443},{96,36}}</string>
|
||||
<string>{{503,439},{96,36}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -405,7 +495,247 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{35,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{639,99},{35,96}}</string>
|
||||
<string>{{1,469},{35,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>fangxiangBg.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{258,258}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{258,258}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{753,160},{258,258}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>headBg.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{744,80}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{744,80}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1,357},{744,80}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>jiagu.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{72,72}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{72,72}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1087,341},{72,72}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>lang.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{49,32}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{49,32}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{197,469},{49,32}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>left.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{84,84}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{84,84}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{833,420},{84,84}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>line.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{412,6}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{412,6}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1268,1},{412,6}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>little_down.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{46,46}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{46,46}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{699,439},{46,46}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>little_jiagu.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{46,46}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{46,46}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1165,409},{46,46}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>little_left.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{46,46}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{46,46}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1213,356},{46,46}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>little_right.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{46,46}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{46,46}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1213,404},{46,46}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>little_up.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{46,46}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{46,46}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1261,356},{46,46}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>little_xirang.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{46,46}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{46,46}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1261,404},{46,46}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>progress.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{500,18}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{500,18}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1,439},{500,18}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>progressBg.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{500,18}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{500,18}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{753,140},{500,18}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>rankBtn.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{102,102}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{102,102}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1488,9},{102,102}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>right.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{84,84}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{84,84}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{919,420},{84,84}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -420,7 +750,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{393,393},{96,96}}</string>
|
||||
<string>{{1906,295},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -435,7 +765,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{491,295},{96,96}}</string>
|
||||
<string>{{1514,407},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -450,7 +780,7 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{491,393},{96,96}}</string>
|
||||
<string>{{1612,401},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -465,7 +795,22 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{589,295},{96,96}}</string>
|
||||
<string>{{1710,393},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>shanchu.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{72,72}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{72,72}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1091,415},{72,72}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -480,7 +825,22 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{589,393},{96,96}}</string>
|
||||
<string>{{1808,393},{96,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>startBtn.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{513,137}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{513,137}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{753,1},{513,137}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -495,9 +855,9 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{96,36}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{639,1},{96,36}}</string>
|
||||
<string>{{601,439},{96,36}}</string>
|
||||
<key>textureRotated</key>
|
||||
<true/>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>start_y.png</key>
|
||||
<dict>
|
||||
|
@ -510,22 +870,52 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{35,96}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{615,197},{35,96}}</string>
|
||||
<string>{{99,469},{35,96}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>turn_wawe.png</key>
|
||||
<key>tou.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{146,146}</string>
|
||||
<string>{66,50}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{146,146}</string>
|
||||
<string>{66,50}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1,1},{146,146}}</string>
|
||||
<string>{{1161,341},{66,50}}</string>
|
||||
<key>textureRotated</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>turn_wawe2.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{179,179}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{179,179}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1013,160},{179,179}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>up.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{84,84}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{84,84}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1005,420},{84,84}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -540,7 +930,52 @@
|
|||
<key>spriteSourceSize</key>
|
||||
<string>{24,138}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{99,149},{24,138}}</string>
|
||||
<string>{{1194,160},{24,138}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>vertical_wave2.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{8,118}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{8,118}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{131,459},{8,118}}</string>
|
||||
<key>textureRotated</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>vertical_wave3.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{8,128}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{8,128}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1,459},{8,128}}</string>
|
||||
<key>textureRotated</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>xirang.png</key>
|
||||
<dict>
|
||||
<key>aliases</key>
|
||||
<array/>
|
||||
<key>spriteOffset</key>
|
||||
<string>{0,0}</string>
|
||||
<key>spriteSize</key>
|
||||
<string>{72,72}</string>
|
||||
<key>spriteSourceSize</key>
|
||||
<string>{72,72}</string>
|
||||
<key>textureRect</key>
|
||||
<string>{{1906,393},{72,72}}</string>
|
||||
<key>textureRotated</key>
|
||||
<false/>
|
||||
</dict>
|
||||
|
@ -556,9 +991,9 @@
|
|||
<key>realTextureFileName</key>
|
||||
<string>publicUI.png</string>
|
||||
<key>size</key>
|
||||
<string>{686,490}</string>
|
||||
<string>{2003,505}</string>
|
||||
<key>smartupdate</key>
|
||||
<string>$TexturePacker:SmartUpdate:383325b4703b9ab6a27358556429ce29:3aba2d162a7e3606ce2dfc19cc9a2323:1c7d81f68058ada321959f2296017bb5$</string>
|
||||
<string>$TexturePacker:SmartUpdate:20005818a3c3c6bcf80ac34eb2d2c852:4809596494a6c29c635551c021810865:1c7d81f68058ada321959f2296017bb5$</string>
|
||||
<key>textureFileName</key>
|
||||
<string>publicUI.png</string>
|
||||
</dict>
|
||||
|
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 118 KiB |
|
@ -8,8 +8,8 @@
|
|||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 1353,
|
||||
"height": 196,
|
||||
"width": 2003,
|
||||
"height": 505,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"publicUI": {
|
||||
|
@ -20,14 +20,14 @@
|
|||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetX": -1,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 686,
|
||||
"height": 490,
|
||||
"rawWidth": 686,
|
||||
"rawHeight": 490,
|
||||
"width": 2001,
|
||||
"height": 505,
|
||||
"rawWidth": 2003,
|
||||
"rawHeight": 505,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
|
|
Before Width: | Height: | Size: 9.1 KiB |
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "bc65aeab-56af-4990-b2b9-de2b91bb9e6f",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 179,
|
||||
"height": 179,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"turn_wawe2": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "d9b04dd4-b22c-4268-bf73-ac34fda14bc5",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "bc65aeab-56af-4990-b2b9-de2b91bb9e6f",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0.5,
|
||||
"trimX": 24,
|
||||
"trimY": 25,
|
||||
"width": 131,
|
||||
"height": 128,
|
||||
"rawWidth": 179,
|
||||
"rawHeight": 179,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 2.3 KiB |
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "c2027677-6969-4f9d-a273-2828f1d3048c",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 24,
|
||||
"height": 138,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"vertical_wave": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "a6bbf444-2576-4c4c-a579-8d6fdcd5f724",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "c2027677-6969-4f9d-a273-2828f1d3048c",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 24,
|
||||
"height": 138,
|
||||
"rawWidth": 24,
|
||||
"rawHeight": 138,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 1.7 KiB |
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "c3041d36-0084-4c37-b905-f7367bdd37cb",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 8,
|
||||
"height": 118,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"vertical_wave2": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "e8ddc240-81ef-4d7f-a7c4-8c3ee4b94b4f",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "c3041d36-0084-4c37-b905-f7367bdd37cb",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": 0,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 8,
|
||||
"height": 118,
|
||||
"rawWidth": 8,
|
||||
"rawHeight": 118,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 1.6 KiB |
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"ver": "2.3.7",
|
||||
"uuid": "ac13d46e-7c59-4656-a2e3-c47daa6d69ad",
|
||||
"importer": "texture",
|
||||
"type": "sprite",
|
||||
"wrapMode": "clamp",
|
||||
"filterMode": "bilinear",
|
||||
"premultiplyAlpha": false,
|
||||
"genMipmaps": false,
|
||||
"packable": true,
|
||||
"width": 8,
|
||||
"height": 128,
|
||||
"platformSettings": {},
|
||||
"subMetas": {
|
||||
"vertical_wave3": {
|
||||
"ver": "1.0.6",
|
||||
"uuid": "5ae8f70d-1d21-404e-bb05-5d4ddddda803",
|
||||
"importer": "sprite-frame",
|
||||
"rawTextureUuid": "ac13d46e-7c59-4656-a2e3-c47daa6d69ad",
|
||||
"trimType": "auto",
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": -0.5,
|
||||
"offsetY": 0,
|
||||
"trimX": 0,
|
||||
"trimY": 0,
|
||||
"width": 7,
|
||||
"height": 128,
|
||||
"rawWidth": 8,
|
||||
"rawHeight": 128,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"subMetas": {}
|
||||
}
|
||||
}
|
||||
}
|
1
assets/resources/dayu_config.json
Normal file
6
assets/resources/dayu_config.json.meta
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"ver": "1.0.2",
|
||||
"uuid": "5ce0674d-c903-4a25-8824-0a9698d27e40",
|
||||
"importer": "json",
|
||||
"subMetas": {}
|
||||
}
|
BIN
build/WaterControl.zip
Normal file
1
build/WaterControl/assets/internal/config.d17e2.json
Normal 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-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"]}}
|
1
build/WaterControl/assets/internal/index.d17e2.js
Normal file
|
@ -0,0 +1 @@
|
|||
(function r(e,n,t){function i(u,f){if(!n[u]){if(!e[u]){var _=u.split("/");if(_=_[_.length-1],!e[_]){var p="function"==typeof __require&&__require;if(!f&&p)return p(_,!0);if(o)return o(_,!0);throw new Error("Cannot find module '"+u+"'")}u=_}var a=n[u]={exports:{}};e[u][0].call(a.exports,function(r){return i(e[u][1][r]||r)},a,a.exports,r,e,n,t)}return n[u].exports}for(var o="function"==typeof __require&&__require,u=0;u<t.length;u++)i(t[u]);return i})({},{},[]);
|
After Width: | Height: | Size: 82 B |
After Width: | Height: | Size: 7.3 KiB |
1
build/WaterControl/assets/main/config.3d892.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"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"]}}
|
|
@ -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|0,9729,9729,33071,33071,0,0,1"}
|
|
@ -0,0 +1 @@
|
|||
[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]]]]
|
1
build/WaterControl/assets/main/index.3d892.js
Normal file
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 158 B |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 1.1 KiB |
1
build/WaterControl/assets/resources/config.8426e.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"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"]}}
|
|
@ -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"}
|
|
@ -0,0 +1 @@
|
|||
[1,0,0,[["cc.JsonAsset",["_name","json"],1]],[[0,0,1,3]],[[0,"LEVEL_INFO",{"data":[{"number":3,"moveNumber":0,"moveSpeed":0,"maxDistance":200,"maxMove":1200,"repeat":0},{"number":4,"moveNumber":0,"moveSpeed":0,"maxDistance":200,"maxMove":1200,"repeat":0},{"number":4,"moveNumber":0,"moveSpeed":0,"maxDistance":200,"maxMove":1200,"repeat":1},{"number":5,"moveNumber":1,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":0},{"number":5,"moveNumber":0,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":1},{"number":6,"moveNumber":0,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":1},{"number":6,"moveNumber":3,"moveSpeed":4,"maxDistance":200,"maxMove":1200,"repeat":0},{"number":7,"moveNumber":0,"moveSpeed":4,"maxDistance":200,"maxMove":1200,"repeat":0},{"number":7,"moveNumber":3,"moveSpeed":4,"maxDistance":200,"maxMove":1200,"repeat":0},{"number":7,"moveNumber":3,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":1},{"number":8,"moveNumber":3,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":0},{"number":8,"moveNumber":5,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":1},{"number":9,"moveNumber":3,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":0},{"number":9,"moveNumber":5,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":1},{"number":10,"moveNumber":5,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":1},{"number":3,"moveNumber":0,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":0},{"number":4,"moveNumber":0,"moveSpeed":0,"maxDistance":200,"maxMove":1200,"repeat":0},{"number":4,"moveNumber":1,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":0},{"number":4,"moveNumber":0,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":1},{"number":4,"moveNumber":1,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":1},{"number":5,"moveNumber":1,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":0},{"number":5,"moveNumber":0,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":1},{"number":5,"moveNumber":1,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":1},{"number":5,"moveNumber":2,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":1},{"number":5,"moveNumber":3,"moveSpeed":6,"maxDistance":200,"maxMove":1200,"repeat":1}]}]],0,0,[],[],[]]
|
|
@ -0,0 +1 @@
|
|||
[1,0,0,[["cc.JsonAsset",["_name","json"],1]],[[0,0,1,3]],[[0,"GM_INFO",{"data":{"mean_Time":0,"total":0,"currSeed":203213,"gameId":100009,"userId":0,"guide":true,"url":"http://api.sparkus.cn","success":false,"matchId":null,"custom":0}}]],0,0,[],[],[]]
|
|
@ -0,0 +1 @@
|
|||
[1,["e0Bq+OXCFBJLKbTUKfCQCz"],["_textureSetter"],["cc.SpriteFrame"],0,[{"name":"bg2","rect":[0,0,750,1660],"offset":[0,0],"originalSize":[750,1660],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]]
|
|
@ -0,0 +1 @@
|
|||
[1,["b58ddMvQJPJ4EEZZ9cDsES"],["_textureSetter"],["cc.SpriteFrame"],0,[{"name":"boss_warn_bg","rect":[9,0,116,640],"offset":[4.5,0],"originalSize":[125,640],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]]
|
|
@ -0,0 +1 @@
|
|||
[1,["7aJ2Eu6JhKWa+yGv1UZkRp"],["_textureSetter"],["cc.SpriteFrame"],0,[{"name":"bg1","rect":[0,0,750,1660],"offset":[0,0],"originalSize":[750,1660],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]]
|
|
@ -0,0 +1 @@
|
|||
[1,0,0,[["cc.JsonAsset",["_name","json"],1]],[[0,0,1,3]],[[0,"CLICK_DATA",{"data":{"type":1,"success":false,"round":0,"totalSunCount":0,"movedSunCount":0,"sunSpeed":0,"overlapSunCount":0,"duration":0,"difficultyLevel":0,"remainder":120,"colorList":[],"sunList":[],"stepTimeList":[]}}]],0,0,[],[],[]]
|
|
@ -0,0 +1 @@
|
|||
[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]]
|
1
build/WaterControl/assets/resources/index.8426e.js
Normal file
|
@ -0,0 +1 @@
|
|||
(function r(e,n,t){function i(u,f){if(!n[u]){if(!e[u]){var _=u.split("/");if(_=_[_.length-1],!e[_]){var p="function"==typeof __require&&__require;if(!f&&p)return p(_,!0);if(o)return o(_,!0);throw new Error("Cannot find module '"+u+"'")}u=_}var a=n[u]={exports:{}};e[u][0].call(a.exports,function(r){return i(e[u][1][r]||r)},a,a.exports,r,e,n,t)}return n[u].exports}for(var o="function"==typeof __require&&__require,u=0;u<t.length;u++)i(t[u]);return i})({},{},[]);
|
After Width: | Height: | Size: 186 KiB |
After Width: | Height: | Size: 118 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 69 KiB |
1
build/WaterControl/cocos2d-js-min.7d19d.js
Normal file
BIN
build/WaterControl/favicon.8de18.ico
Normal file
After Width: | Height: | Size: 1.1 KiB |
90
build/WaterControl/index.html
Normal file
|
@ -0,0 +1,90 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>Cocos Creator | WaterControl</title>
|
||||
|
||||
<!--http://www.html5rocks.com/en/mobile/mobifying/-->
|
||||
<meta name="viewport"
|
||||
content="width=device-width,user-scalable=no,initial-scale=1, minimum-scale=1,maximum-scale=1"/>
|
||||
|
||||
<!--https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html-->
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
|
||||
<!-- force webkit on 360 -->
|
||||
<meta name="renderer" content="webkit"/>
|
||||
<meta name="force-rendering" content="webkit"/>
|
||||
<!-- force edge on IE -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
||||
<meta name="msapplication-tap-highlight" content="no">
|
||||
|
||||
<!-- force full screen on some browser -->
|
||||
<meta name="full-screen" content="yes"/>
|
||||
<meta name="x5-fullscreen" content="true"/>
|
||||
<meta name="360-fullscreen" content="true"/>
|
||||
|
||||
<!-- force screen orientation on some browser -->
|
||||
<meta name="screen-orientation" content="portrait"/>
|
||||
<meta name="x5-orientation" content="portrait">
|
||||
|
||||
<!--fix fireball/issues/3568 -->
|
||||
<!--<meta name="browsermode" content="application">-->
|
||||
<meta name="x5-page-mode" content="app">
|
||||
|
||||
<!--<link rel="apple-touch-icon" href=".png" />-->
|
||||
<!--<link rel="apple-touch-icon-precomposed" href=".png" />-->
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="style-mobile.6e9cd.css"/>
|
||||
<link rel="icon" href="favicon.8de18.ico"/>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="GameCanvas" oncontextmenu="event.preventDefault()" tabindex="0"></canvas>
|
||||
<div id="splash">
|
||||
<div class="progress-bar stripes">
|
||||
<span style="width: 0%"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="src/settings.f2e4a.js" charset="utf-8"></script>
|
||||
|
||||
<script src="main.cc8bc.js" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
(function () {
|
||||
// open web debugger console
|
||||
if (typeof VConsole !== 'undefined') {
|
||||
window.vConsole = new VConsole();
|
||||
}
|
||||
|
||||
var debug = window._CCSettings.debug;
|
||||
var splash = document.getElementById('splash');
|
||||
splash.style.display = 'block';
|
||||
|
||||
function loadScript (moduleName, cb) {
|
||||
function scriptLoaded () {
|
||||
document.body.removeChild(domScript);
|
||||
domScript.removeEventListener('load', scriptLoaded, false);
|
||||
cb && cb();
|
||||
};
|
||||
var domScript = document.createElement('script');
|
||||
domScript.async = true;
|
||||
domScript.src = moduleName;
|
||||
domScript.addEventListener('load', scriptLoaded, false);
|
||||
document.body.appendChild(domScript);
|
||||
}
|
||||
|
||||
loadScript(debug ? 'cocos2d-js.js' : 'cocos2d-js-min.7d19d.js', function () {
|
||||
if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
|
||||
loadScript(debug ? 'physics.js' : 'physics-min.ce5ee.js', window.boot);
|
||||
}
|
||||
else {
|
||||
window.boot();
|
||||
}
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
144
build/WaterControl/main.cc8bc.js
Normal file
|
@ -0,0 +1,144 @@
|
|||
window.boot = function () {
|
||||
var settings = window._CCSettings;
|
||||
window._CCSettings = undefined;
|
||||
var onProgress = null;
|
||||
|
||||
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');
|
||||
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';
|
||||
});
|
||||
}
|
||||
|
||||
var onStart = function () {
|
||||
|
||||
cc.view.enableRetina(true);
|
||||
cc.view.resizeWithBrowserSize(true);
|
||||
|
||||
if (cc.sys.isBrowser) {
|
||||
setLoadingDisplay();
|
||||
}
|
||||
|
||||
if (cc.sys.isMobile) {
|
||||
if (settings.orientation === 'landscape') {
|
||||
cc.view.setOrientation(cc.macro.ORIENTATION_LANDSCAPE);
|
||||
}
|
||||
else if (settings.orientation === 'portrait') {
|
||||
cc.view.setOrientation(cc.macro.ORIENTATION_PORTRAIT);
|
||||
}
|
||||
cc.view.enableAutoFullScreen([
|
||||
cc.sys.BROWSER_TYPE_BAIDU,
|
||||
cc.sys.BROWSER_TYPE_BAIDU_APP,
|
||||
cc.sys.BROWSER_TYPE_WECHAT,
|
||||
cc.sys.BROWSER_TYPE_MOBILE_QQ,
|
||||
cc.sys.BROWSER_TYPE_MIUI,
|
||||
cc.sys.BROWSER_TYPE_HUAWEI,
|
||||
cc.sys.BROWSER_TYPE_UC,
|
||||
].indexOf(cc.sys.browserType) < 0);
|
||||
}
|
||||
|
||||
// Limit downloading max concurrent task to 2,
|
||||
// more tasks simultaneously may cause performance draw back on some android system / browsers.
|
||||
// You can adjust the number based on your own test result, you have to set it before any loading process to take effect.
|
||||
if (cc.sys.isBrowser && cc.sys.os === cc.sys.OS_ANDROID) {
|
||||
cc.assetManager.downloader.maxConcurrency = 2;
|
||||
cc.assetManager.downloader.maxRequestsPerFrame = 2;
|
||||
}
|
||||
|
||||
var launchScene = settings.launchScene;
|
||||
var bundle = cc.assetManager.bundles.find(function (b) {
|
||||
return b.getSceneInfo(launchScene);
|
||||
});
|
||||
|
||||
bundle.loadScene(launchScene, null, onProgress,
|
||||
function (err, scene) {
|
||||
if (!err) {
|
||||
cc.director.runSceneImmediate(scene);
|
||||
if (cc.sys.isBrowser) {
|
||||
// show canvas
|
||||
var canvas = document.getElementById('GameCanvas');
|
||||
canvas.style.visibility = '';
|
||||
var div = document.getElementById('GameDiv');
|
||||
if (div) {
|
||||
div.style.backgroundImage = '';
|
||||
}
|
||||
console.log('Success to load scene: ' + launchScene);
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
};
|
||||
|
||||
var option = {
|
||||
id: 'GameCanvas',
|
||||
debugMode: settings.debug ? cc.debug.DebugMode.INFO : cc.debug.DebugMode.ERROR,
|
||||
showFPS: settings.debug,
|
||||
frameRate: 60,
|
||||
groupList: settings.groupList,
|
||||
collisionMatrix: settings.collisionMatrix,
|
||||
};
|
||||
|
||||
cc.assetManager.init({
|
||||
bundleVers: settings.bundleVers,
|
||||
remoteBundles: settings.remoteBundles,
|
||||
server: settings.server
|
||||
});
|
||||
|
||||
var bundleRoot = [INTERNAL];
|
||||
settings.hasResourcesBundle && bundleRoot.push(RESOURCES);
|
||||
|
||||
var count = 0;
|
||||
function cb (err) {
|
||||
if (err) return console.error(err.message, err.stack);
|
||||
count++;
|
||||
if (count === bundleRoot.length + 1) {
|
||||
cc.assetManager.loadBundle(MAIN, function (err) {
|
||||
if (!err) cc.game.run(option, onStart);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
cc.assetManager.loadScript(settings.jsList.map(function (x) { return 'src/' + x;}), cb);
|
||||
|
||||
for (var i = 0; i < bundleRoot.length; i++) {
|
||||
cc.assetManager.loadBundle(bundleRoot[i], cb);
|
||||
}
|
||||
};
|
||||
|
||||
if (window.jsb) {
|
||||
var isRuntime = (typeof loadRuntime === 'function');
|
||||
if (isRuntime) {
|
||||
require('src/settings.f2e4a.js');
|
||||
require('src/cocos2d-runtime.js');
|
||||
if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
|
||||
require('src/physics.js');
|
||||
}
|
||||
require('jsb-adapter/engine/index.js');
|
||||
}
|
||||
else {
|
||||
require('src/settings.f2e4a.js');
|
||||
require('src/cocos2d-jsb.js');
|
||||
if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
|
||||
require('src/physics.js');
|
||||
}
|
||||
require('jsb-adapter/jsb-engine.js');
|
||||
}
|
||||
|
||||
cc.macro.CLEANUP_IMAGE_CACHE = true;
|
||||
window.boot();
|
||||
}
|
1
build/WaterControl/physics-min.ce5ee.js
Normal file
BIN
build/WaterControl/splash.85cfd.png
Normal file
After Width: | Height: | Size: 13 KiB |
1
build/WaterControl/src/settings.f2e4a.js
Normal file
|
@ -0,0 +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"}};
|
116
build/WaterControl/style-desktop.dfd76.css
Normal file
|
@ -0,0 +1,116 @@
|
|||
body {
|
||||
cursor: default;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
|
||||
text-align: center;
|
||||
background-color: white;
|
||||
font-family: Helvetica, Verdana, Arial, sans-serif;
|
||||
}
|
||||
|
||||
body, canvas, div {
|
||||
outline: none;
|
||||
-moz-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
/* Remove spin of input type number */
|
||||
input::-webkit-outer-spin-button,
|
||||
input::-webkit-inner-spin-button {
|
||||
/* display: none; <- Crashes Chrome on hover */
|
||||
-webkit-appearance: none;
|
||||
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
|
||||
}
|
||||
|
||||
#Cocos2dGameContainer {
|
||||
position: absolute;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
}
|
||||
|
||||
canvas {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
a:link, a:visited {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
a:active, a:hover {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
p.header {
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
p.footer {
|
||||
font-size: x-small;
|
||||
}
|
||||
|
||||
#splash {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
background: #171717 url(./splash.85cfd.png) no-repeat center;
|
||||
background-size: 350px;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
background-color: #1a1a1a;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 80%;
|
||||
height: 5px;
|
||||
width: 300px;
|
||||
margin: 0 -150px;
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
|
||||
}
|
||||
|
||||
.progress-bar span {
|
||||
display: block;
|
||||
height: 100%;
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
|
||||
transition: width .4s ease-in-out;
|
||||
background-color: #3dc5de;
|
||||
}
|
||||
|
||||
.stripes span {
|
||||
background-size: 30px 30px;
|
||||
background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
|
||||
transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
|
||||
transparent 75%, transparent);
|
||||
|
||||
animation: animate-stripes 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes animate-stripes {
|
||||
0% {background-position: 0 0;} 100% {background-position: 60px 0;}
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
text-shadow: 3px 3px 15px;
|
||||
}
|
||||
|
||||
#GameDiv {
|
||||
width: 800px;
|
||||
height: 450px;
|
||||
margin: 0 auto;
|
||||
background: black;
|
||||
position: relative;
|
||||
border: 3px solid black;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 5px 40px #333
|
||||
}
|
124
build/WaterControl/style-mobile.6e9cd.css
Normal file
|
@ -0,0 +1,124 @@
|
|||
html {
|
||||
-ms-touch-action: none;
|
||||
}
|
||||
|
||||
body, canvas, div {
|
||||
display: block;
|
||||
outline: none;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
|
||||
user-select: none;
|
||||
-moz-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
/* Remove spin of input type number */
|
||||
input::-webkit-outer-spin-button,
|
||||
input::-webkit-inner-spin-button {
|
||||
/* display: none; <- Crashes Chrome on hover */
|
||||
-webkit-appearance: none;
|
||||
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
|
||||
}
|
||||
|
||||
body {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
|
||||
cursor: default;
|
||||
color: #888;
|
||||
background-color: #333;
|
||||
|
||||
text-align: center;
|
||||
font-family: Helvetica, Verdana, Arial, sans-serif;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
/* fix bug: https://github.com/cocos-creator/2d-tasks/issues/791 */
|
||||
/* overflow cannot be applied in Cocos2dGameContainer,
|
||||
otherwise child elements will be hidden when Cocos2dGameContainer rotated 90 deg */
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#Cocos2dGameContainer {
|
||||
position: absolute;
|
||||
margin: 0;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: horizontal;
|
||||
-webkit-box-align: center;
|
||||
-webkit-box-pack: center;
|
||||
}
|
||||
|
||||
canvas {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
a:link, a:visited {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
a:active, a:hover {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
p.header {
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
p.footer {
|
||||
font-size: x-small;
|
||||
}
|
||||
|
||||
#splash {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #171717 url(./splash.85cfd.png) no-repeat center;
|
||||
background-size: 45%;
|
||||
}
|
||||
|
||||
.progress-bar {
|
||||
position: absolute;
|
||||
left: 27.5%;
|
||||
top: 80%;
|
||||
height: 3px;
|
||||
padding: 2px;
|
||||
width: 45%;
|
||||
border-radius: 7px;
|
||||
box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
|
||||
}
|
||||
|
||||
.progress-bar span {
|
||||
display: block;
|
||||
height: 100%;
|
||||
border-radius: 3px;
|
||||
transition: width .4s ease-in-out;
|
||||
background-color: #3dc5de;
|
||||
}
|
||||
|
||||
.stripes span {
|
||||
background-size: 30px 30px;
|
||||
background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
|
||||
transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
|
||||
transparent 75%, transparent);
|
||||
|
||||
animation: animate-stripes 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes animate-stripes {
|
||||
0% {background-position: 0 0;} 100% {background-position: 60px 0;}
|
||||
}
|
|
@ -5,8 +5,8 @@
|
|||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
295,
|
||||
295,
|
||||
1514,
|
||||
309,
|
||||
96,
|
||||
96
|
||||
],
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
321,
|
||||
197,
|
||||
1514,
|
||||
211,
|
||||
96,
|
||||
96
|
||||
],
|
||||
|
|
28
library/imports/08/089e5dee-caa2-4903-bba8-1371afcc55d7.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "chehui",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
1013,
|
||||
341,
|
||||
72,
|
||||
72
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
72,
|
||||
72
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/12/12878a32-a063-42b4-b233-9e419054c084.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "progressBg",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
753,
|
||||
140,
|
||||
500,
|
||||
18
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
500,
|
||||
18
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,22 +1,22 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "vertical_wave",
|
||||
"texture": "c2027677-6969-4f9d-a273-2828f1d3048c",
|
||||
"atlas": "",
|
||||
"name": "up",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
0,
|
||||
0,
|
||||
24,
|
||||
138
|
||||
1005,
|
||||
420,
|
||||
84,
|
||||
84
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
24,
|
||||
138
|
||||
84,
|
||||
84
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
|
@ -5,8 +5,8 @@
|
|||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
99,
|
||||
149,
|
||||
1194,
|
||||
160,
|
||||
24,
|
||||
138
|
||||
],
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
517,
|
||||
1710,
|
||||
197,
|
||||
96,
|
||||
96
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
615,
|
||||
197,
|
||||
99,
|
||||
469,
|
||||
35,
|
||||
96
|
||||
],
|
||||
|
@ -18,6 +18,7 @@
|
|||
35,
|
||||
96
|
||||
],
|
||||
"rotated": 1,
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
491,
|
||||
393,
|
||||
1612,
|
||||
401,
|
||||
96,
|
||||
96
|
||||
],
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
345,
|
||||
1,
|
||||
1318,
|
||||
133,
|
||||
96,
|
||||
96
|
||||
],
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
223,
|
||||
197,
|
||||
1416,
|
||||
231,
|
||||
96,
|
||||
96
|
||||
],
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
393,
|
||||
1808,
|
||||
295,
|
||||
96,
|
||||
96
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
589,
|
||||
295,
|
||||
1710,
|
||||
393,
|
||||
96,
|
||||
96
|
||||
],
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
247,
|
||||
1886,
|
||||
1,
|
||||
96,
|
||||
96
|
||||
|
|
28
library/imports/35/359e8c8b-2bf5-4e8e-b90e-a7654f81f2f9.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "rankBtn",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
1488,
|
||||
9,
|
||||
102,
|
||||
102
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
102,
|
||||
102
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
28
library/imports/36/362b68b6-68cd-4d41-a7f3-9ccf65481660.json
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"__type__": "cc.SpriteFrame",
|
||||
"content": {
|
||||
"name": "build",
|
||||
"texture": "8e56f0ab-ead9-40ba-990e-1e82c9d20326",
|
||||
"atlas": "9830637c-e4e3-4df5-8d51-fc49b7d715b4",
|
||||
"rect": [
|
||||
1268,
|
||||
71,
|
||||
218,
|
||||
60
|
||||
],
|
||||
"offset": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"originalSize": [
|
||||
218,
|
||||
60
|
||||
],
|
||||
"capInsets": [
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|