Commit 30c7c2bd authored by 范雪寒's avatar 范雪寒

feat: replay

parent 979205fe
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
"__id__": 2 "__id__": 2
}, },
{ {
"__id__": 33 "__id__": 46
}, },
{ {
"__id__": 35 "__id__": 48
} }
], ],
"_active": false, "_active": false,
...@@ -84,13 +84,13 @@ ...@@ -84,13 +84,13 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 30 "__id__": 43
}, },
{ {
"__id__": 31 "__id__": 44
}, },
{ {
"__id__": 32 "__id__": 45
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -270,12 +270,15 @@ ...@@ -270,12 +270,15 @@
}, },
{ {
"__id__": 25 "__id__": 25
},
{
"__id__": 32
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 29 "__id__": 42
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1220,12 +1223,15 @@ ...@@ -1220,12 +1223,15 @@
"_children": [ "_children": [
{ {
"__id__": 26 "__id__": 26
},
{
"__id__": 28
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 28 "__id__": 31
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1379,47 +1385,153 @@ ...@@ -1379,47 +1385,153 @@
"_id": "80RZYRgzNKUbMXQ81tgamK" "_id": "80RZYRgzNKUbMXQ81tgamK"
}, },
{ {
"__type__": "cc.Widget", "__type__": "cc.Node",
"_name": "BtnCoolCat",
"_objFlags": 0,
"_parent": {
"__id__": 25
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 29
},
{
"__id__": 30
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 362,
"height": 483
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
877,
-513.5,
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": "94D9uHjApEaIIGT3Iyf3Tq"
},
{
"__type__": "cc.Button",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 25 "__id__": 28
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "_normalMaterial": null,
"_target": null, "_grayMaterial": null,
"_alignFlags": 36, "duration": 0.1,
"_left": 0, "zoomScale": 1.2,
"_right": 0, "clickEvents": [],
"_top": 0, "_N$interactable": true,
"_bottom": 0, "_N$enableAutoGrayEffect": false,
"_verticalCenter": 0, "_N$transition": 0,
"_horizontalCenter": 0, "transition": 0,
"_isAbsLeft": true, "_N$normalColor": {
"_isAbsRight": true, "__type__": "cc.Color",
"_isAbsTop": true, "r": 255,
"_isAbsBottom": true, "g": 255,
"_isAbsHorizontalCenter": true, "b": 255,
"_isAbsVerticalCenter": true, "a": 255
"_originalWidth": 0, },
"_originalHeight": 0, "_N$pressedColor": {
"_id": "e7KTOvKrlHvpBkVaz3Q9ur" "__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "afF2VKnd5FuYkMUuEW+GmN"
}, },
{ {
"__type__": "cc.Widget", "__type__": "cc.Widget",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 5 "__id__": 28
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
"_target": null, "_target": null,
"_alignFlags": 45, "_alignFlags": 36,
"_left": 0, "_left": 0,
"_right": 0, "_right": 30,
"_top": 0, "_top": 0,
"_bottom": 0, "_bottom": 45,
"_verticalCenter": 0, "_verticalCenter": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_isAbsLeft": true, "_isAbsLeft": true,
...@@ -1428,38 +1540,21 @@ ...@@ -1428,38 +1540,21 @@
"_isAbsBottom": true, "_isAbsBottom": true,
"_isAbsHorizontalCenter": true, "_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true, "_isAbsVerticalCenter": true,
"_originalWidth": 2176, "_originalWidth": 0,
"_originalHeight": 1600, "_originalHeight": 0,
"_id": "9dxY8YldNKUa7NV9iIGBIL" "_id": "18zo4kUUJLQ50p7vjJhedc"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 2176,
"height": 1600
},
"_fitWidth": false,
"_fitHeight": false,
"_id": "59Cd0ovbdF4byw5sbjJDx7"
}, },
{ {
"__type__": "cc.Widget", "__type__": "cc.Widget",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 2 "__id__": 25
}, },
"_enabled": true, "_enabled": true,
"alignMode": 1, "alignMode": 1,
"_target": null, "_target": null,
"_alignFlags": 45, "_alignFlags": 36,
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": 0, "_top": 0,
...@@ -1474,30 +1569,36 @@ ...@@ -1474,30 +1569,36 @@
"_isAbsVerticalCenter": true, "_isAbsVerticalCenter": true,
"_originalWidth": 0, "_originalWidth": 0,
"_originalHeight": 0, "_originalHeight": 0,
"_id": "29zXboiXFBKoIV4PQ2liTe" "_id": "e7KTOvKrlHvpBkVaz3Q9ur"
}, },
{ {
"__type__": "0e7205TFJ1Pjogb2tsB2COD", "__type__": "cc.Node",
"_name": "", "_name": "btnReplay",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 2 "__id__": 5
}, },
"_enabled": true, "_children": [
"_id": "4e8924f57e1b4c17861ac7" {
"__id__": 33
}, },
{ {
"__type__": "cc.Node", "__id__": 35
"_name": "option",
"_objFlags": 0,
"_parent": {
"__id__": 1
}, },
"_children": [], {
"_active": true, "__id__": 37
}
],
"_active": false,
"_components": [ "_components": [
{ {
"__id__": 34 "__id__": 39
},
{
"__id__": 40
},
{
"__id__": 41
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1511,8 +1612,8 @@ ...@@ -1511,8 +1612,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 40, "width": 262,
"height": 36 "height": 268
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -1523,8 +1624,8 @@ ...@@ -1523,8 +1624,8 @@
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-667.109, 0,
-451.328, 0,
0, 0,
0, 0,
0, 0,
...@@ -1546,30 +1647,582 @@ ...@@ -1546,30 +1647,582 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "f1nLyNx8pHU5Sy0656hPYq" "_id": "e2rl12GU1Pap0+jEPb/tgU"
}, },
{ {
"__type__": "cc.Sprite", "__type__": "cc.Node",
"_name": "", "_name": "bg_circle2",
"_objFlags": 0, "_objFlags": 0,
"node": { "_parent": {
"__id__": 33 "__id__": 32
}, },
"_enabled": true, "_children": [],
"_materials": [ "_active": true,
"_components": [
{ {
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" "__id__": 34
} }
], ],
"_srcBlendFactor": 770, "_prefab": null,
"_dstBlendFactor": 771, "_opacity": 255,
"_spriteFrame": { "_color": {
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061" "__type__": "cc.Color",
}, "r": 255,
"_type": 0, "g": 255,
"_sizeMode": 1, "b": 255,
"_fillType": 0, "a": 255
"_fillCenter": { },
"_contentSize": {
"__type__": "cc.Size",
"width": 409,
"height": 409
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
0.8,
0.8,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e3qvijXZBAx4w1YeDPVGqU"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "75bb0910-bb15-4daf-9a6d-6873c400a148"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "99TJo0IHhJI5dxM//jODVm"
},
{
"__type__": "cc.Node",
"_name": "bg_circle",
"_objFlags": 0,
"_parent": {
"__id__": 32
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 36
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 409,
"height": 409
},
"_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": "665iz+zpxFB6eSUycqRXeC"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "75bb0910-bb15-4daf-9a6d-6873c400a148"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "58Qz7rVBNLfZA2hhvYqfRA"
},
{
"__type__": "cc.Node",
"_name": "btn_replay",
"_objFlags": 0,
"_parent": {
"__id__": 32
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 38
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 262,
"height": 268
},
"_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": "66ZTZvHHxFcYE3GfpR42dm"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c2f5963d-2ed1-4add-91b8-f3c4ff0d893e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "12XTruEv9EcLJzF5X0XtiU"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c2f5963d-2ed1-4add-91b8-f3c4ff0d893e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "864WLabbVGGLMQjMWWZquo"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "5ccRYOowdKFasDmU9J05k+"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 18,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "1epIK/u/xKv5VW+he6IYHr"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 2176,
"_originalHeight": 1600,
"_id": "9dxY8YldNKUa7NV9iIGBIL"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 2176,
"height": 1600
},
"_fitWidth": false,
"_fitHeight": false,
"_id": "59Cd0ovbdF4byw5sbjJDx7"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "29zXboiXFBKoIV4PQ2liTe"
},
{
"__type__": "0e7205TFJ1Pjogb2tsB2COD",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_id": "4e8924f57e1b4c17861ac7"
},
{
"__type__": "cc.Node",
"_name": "option",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 47
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 36
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-667.109,
-451.328,
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": "f1nLyNx8pHU5Sy0656hPYq"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 46
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0, "x": 0,
"y": 0 "y": 0
...@@ -1589,34 +2242,34 @@ ...@@ -1589,34 +2242,34 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 36 "__id__": 49
}, },
{ {
"__id__": 38 "__id__": 51
}, },
{ {
"__id__": 40 "__id__": 53
}, },
{ {
"__id__": 42 "__id__": 55
}, },
{ {
"__id__": 44 "__id__": 57
}, },
{ {
"__id__": 46 "__id__": 59
}, },
{ {
"__id__": 48 "__id__": 61
}, },
{ {
"__id__": 50 "__id__": 63
}, },
{ {
"__id__": 52 "__id__": 65
}, },
{ {
"__id__": 54 "__id__": 67
} }
], ],
"_active": true, "_active": true,
...@@ -1674,13 +2327,13 @@ ...@@ -1674,13 +2327,13 @@
"_name": "next", "_name": "next",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 48
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 37 "__id__": 50
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1736,7 +2389,7 @@ ...@@ -1736,7 +2389,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 36 "__id__": 49
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1755,13 +2408,13 @@ ...@@ -1755,13 +2408,13 @@
"_name": "boxJump", "_name": "boxJump",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 48
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 39 "__id__": 52
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1817,7 +2470,7 @@ ...@@ -1817,7 +2470,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 38 "__id__": 51
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1836,13 +2489,13 @@ ...@@ -1836,13 +2489,13 @@
"_name": "jumpAll", "_name": "jumpAll",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 48
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 41 "__id__": 54
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1898,7 +2551,7 @@ ...@@ -1898,7 +2551,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 40 "__id__": 53
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1917,13 +2570,13 @@ ...@@ -1917,13 +2570,13 @@
"_name": "submit", "_name": "submit",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 48
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 43 "__id__": 56
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1979,7 +2632,7 @@ ...@@ -1979,7 +2632,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 42 "__id__": 55
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -1998,13 +2651,13 @@ ...@@ -1998,13 +2651,13 @@
"_name": "flyBack", "_name": "flyBack",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 48
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 45 "__id__": 58
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2060,7 +2713,7 @@ ...@@ -2060,7 +2713,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 44 "__id__": 57
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2079,13 +2732,13 @@ ...@@ -2079,13 +2732,13 @@
"_name": "flyBackAll", "_name": "flyBackAll",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 48
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 47 "__id__": 60
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2141,7 +2794,7 @@ ...@@ -2141,7 +2794,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 46 "__id__": 59
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2160,13 +2813,13 @@ ...@@ -2160,13 +2813,13 @@
"_name": "CoolCatRight", "_name": "CoolCatRight",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 48
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 49 "__id__": 62
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2222,7 +2875,7 @@ ...@@ -2222,7 +2875,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 48 "__id__": 61
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2241,13 +2894,13 @@ ...@@ -2241,13 +2894,13 @@
"_name": "CoolCatWrong", "_name": "CoolCatWrong",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 48
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 51 "__id__": 64
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2303,7 +2956,7 @@ ...@@ -2303,7 +2956,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 50 "__id__": 63
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2322,13 +2975,13 @@ ...@@ -2322,13 +2975,13 @@
"_name": "CoolCatBegin", "_name": "CoolCatBegin",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 48
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 53 "__id__": 66
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2384,7 +3037,7 @@ ...@@ -2384,7 +3037,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 52 "__id__": 65
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -2403,13 +3056,13 @@ ...@@ -2403,13 +3056,13 @@
"_name": "CoolCatFinish", "_name": "CoolCatFinish",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 35 "__id__": 48
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 55 "__id__": 68
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2465,7 +3118,7 @@ ...@@ -2465,7 +3118,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 54 "__id__": 67
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
......
...@@ -385,6 +385,8 @@ cc.Class({ ...@@ -385,6 +385,8 @@ cc.Class({
showNextBtn() { showNextBtn() {
onHomeworkFinish(); onHomeworkFinish();
this.showRestartBtn();
const btnNext = cc.find('Canvas/bg/btnNext'); const btnNext = cc.find('Canvas/bg/btnNext');
btnNext.active = true; btnNext.active = true;
}, },
...@@ -426,6 +428,39 @@ cc.Class({ ...@@ -426,6 +428,39 @@ cc.Class({
}, },
showRestartBtn() {
const btn = cc.find('Canvas/bg/btnReplay');
btn.active = true;
btn.off('click');
btn.on('click', () => {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
middleLayer.getComponent('middleLayer').reloadBundle();
} else {
console.log('没有middleLayer');
}
});
const circle = cc.find('Canvas/bg/btnReplay/bg_circle');
cc.tween(circle)
.set({ scale: 0.8, opacity: 255 })
.to(2, { scale: 1.2, opacity: 0 })
.union()
.repeatForever()
.start();
},
hideRestartBtn() {
console.log('hideRestartBtn');
const btn = cc.find('Canvas/bg/btnReplay');
btn.active = false;
const circle = cc.find('Canvas/bg/btnReplay/bg_circle');
circle.stopAllActions();
circle.scale = 0.8;
circle.opacity = 255;
},
......
{
"ver": "2.3.5",
"uuid": "40a7f7d6-3f30-46c7-b9e4-1d5fcfc0c648",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 409,
"height": 409,
"platformSettings": {},
"subMetas": {
"bg_circle": {
"ver": "1.0.4",
"uuid": "75bb0910-bb15-4daf-9a6d-6873c400a148",
"rawTextureUuid": "40a7f7d6-3f30-46c7-b9e4-1d5fcfc0c648",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 409,
"height": 409,
"rawWidth": 409,
"rawHeight": 409,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "87cc865a-7ac0-44b4-8919-3b01f815748f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 262,
"height": 268,
"platformSettings": {},
"subMetas": {
"btn_replay": {
"ver": "1.0.4",
"uuid": "c2f5963d-2ed1-4add-91b8-f3c4ff0d893e",
"rawTextureUuid": "87cc865a-7ac0-44b4-8919-3b01f815748f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 262,
"height": 268,
"rawWidth": 262,
"rawHeight": 268,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment