Commit 3e8e286c authored by Nguyễn Quang Sáng's avatar Nguyễn Quang Sáng

12/8/2023 commit

parent 32b5400a
......@@ -3,10 +3,10 @@
"_name": "Practice",
"_objFlags": 0,
"_native": "",
"_duration": 5.983333333333333,
"_duration": 3.0166666666666666,
"sample": 60,
"speed": 1,
"wrapMode": 2,
"wrapMode": 54,
"curveData": {
"paths": {},
"props": {
......@@ -42,30 +42,6 @@
203.38,
0
]
},
{
"frame": 4,
"value": [
524.063,
327.639,
0
]
},
{
"frame": 5,
"value": [
351.704,
327.639,
0
]
},
{
"frame": 5.983333333333333,
"value": [
351.704,
206.587,
0
]
}
]
}
......
......@@ -13,7 +13,7 @@
},
{
"__type__": "cc.Node",
"_name": "Lv1",
"_name": "1",
"_objFlags": 0,
"_parent": null,
"_children": [
......@@ -27,17 +27,20 @@
"__id__": 17
},
{
"__id__": 30
"__id__": 34
}
],
"_active": true,
"_components": [
{
"__id__": 66
"__id__": 71
},
{
"__id__": 72
}
],
"_prefab": {
"__id__": 67
"__id__": 73
},
"_opacity": 255,
"_color": {
......@@ -49,8 +52,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 640,
"height": 1140
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -61,8 +64,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
320,
570,
0,
0,
0,
......@@ -137,8 +140,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
436.899,
268.931,
153.363,
-298.476,
0,
0,
0,
......@@ -237,7 +240,7 @@
"__id__": 2
},
"_enabled": true,
"_type": 2,
"_type": 0,
"_allowSleep": false,
"_gravityScale": 2,
"_linearDamping": 0,
......@@ -574,8 +577,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
131.228,
817.376,
-152.308,
250.305,
0,
0,
0,
......@@ -791,16 +794,20 @@
"__id__": 18
},
{
"__id__": 21
"__id__": 22
},
{
"__id__": 26
"__id__": 28
}
],
"_active": true,
"_components": [],
"_components": [
{
"__id__": 32
}
],
"_prefab": {
"__id__": 29
"__id__": 33
},
"_opacity": 255,
"_color": {
......@@ -812,8 +819,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 640,
"height": 225
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -825,7 +832,7 @@
"ctor": "Float64Array",
"array": [
0,
2.624,
-457.5,
0,
0,
0,
......@@ -861,10 +868,13 @@
"_components": [
{
"__id__": 19
},
{
"__id__": 20
}
],
"_prefab": {
"__id__": 20
"__id__": 21
},
"_opacity": 255,
"_color": {
......@@ -888,8 +898,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
319.794,
218,
0,
110,
0,
0,
0,
......@@ -931,7 +941,7 @@
"_spriteFrame": {
"__uuid__": "b017deb0-3c65-4f98-b1ad-163c1241a359"
},
"_type": 0,
"_type": 2,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
......@@ -945,6 +955,33 @@
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 44,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 220,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 640,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
......@@ -966,18 +1003,21 @@
"_children": [],
"_active": true,
"_components": [
{
"__id__": 22
},
{
"__id__": 23
},
{
"__id__": 24
},
{
"__id__": 25
},
{
"__id__": 26
}
],
"_prefab": {
"__id__": 25
"__id__": 27
},
"_opacity": 255,
"_color": {
......@@ -1001,8 +1041,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
320.06,
207,
0,
97.5,
0,
0,
0,
......@@ -1031,7 +1071,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
"__id__": 22
},
"_enabled": true,
"_materials": [
......@@ -1044,7 +1084,7 @@
"_spriteFrame": {
"__uuid__": "af891a65-5ee9-4e83-9e82-e0dac2d3f807"
},
"_type": 0,
"_type": 2,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
......@@ -1063,7 +1103,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
"__id__": 22
},
"_enabled": true,
"_type": 1,
......@@ -1088,7 +1128,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
"__id__": 22
},
"_enabled": true,
"tag": 0,
......@@ -1109,6 +1149,33 @@
},
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 44,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 200,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 640,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
......@@ -1131,11 +1198,14 @@
"_active": true,
"_components": [
{
"__id__": 27
"__id__": 29
},
{
"__id__": 30
}
],
"_prefab": {
"__id__": 28
"__id__": 31
},
"_opacity": 255,
"_color": {
......@@ -1159,8 +1229,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
320.119,
97,
0,
-12.5,
0,
0,
0,
......@@ -1189,7 +1259,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
"__id__": 28
},
"_enabled": true,
"_materials": [
......@@ -1202,7 +1272,7 @@
"_spriteFrame": {
"__uuid__": "38b773db-825e-473b-a2b7-df614b3f41e8"
},
"_type": 0,
"_type": 2,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
......@@ -1216,6 +1286,33 @@
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 44,
"_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": 640,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
......@@ -1227,6 +1324,33 @@
"fileId": "35fK8JARlIsIH/A3C8VlGv",
"sync": false
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 17
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 44,
"_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": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
......@@ -1247,43 +1371,47 @@
},
"_children": [
{
"__id__": 31
"__id__": 35
},
{
"__id__": 34
"__id__": 38
},
{
"__id__": 37
"__id__": 41
},
{
"__id__": 40
"__id__": 44
},
{
"__id__": 43
"__id__": 47
},
{
"__id__": 46
"__id__": 50
},
{
"__id__": 49
"__id__": 53
},
{
"__id__": 52
"__id__": 56
},
{
"__id__": 55
"__id__": 59
},
{
"__id__": 58
"__id__": 62
},
{
"__id__": 61
"__id__": 65
}
],
"_active": true,
"_components": [],
"_components": [
{
"__id__": 69
}
],
"_prefab": {
"__id__": 65
"__id__": 70
},
"_opacity": 255,
"_color": {
......@@ -1307,8 +1435,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
-283.536,
-567.071,
0,
0,
0,
......@@ -1334,20 +1462,20 @@
},
{
"__type__": "cc.Node",
"_name": "bar",
"_name": "Bar",
"_objFlags": 0,
"_parent": {
"__id__": 30
"__id__": 34
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 32
"__id__": 36
}
],
"_prefab": {
"__id__": 33
"__id__": 37
},
"_opacity": 255,
"_color": {
......@@ -1401,7 +1529,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
"__id__": 35
},
"_enabled": true,
"_materials": [
......@@ -1441,20 +1569,20 @@
},
{
"__type__": "cc.Node",
"_name": "bar",
"_name": "Bar",
"_objFlags": 0,
"_parent": {
"__id__": 30
"__id__": 34
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 35
"__id__": 39
}
],
"_prefab": {
"__id__": 36
"__id__": 40
},
"_opacity": 255,
"_color": {
......@@ -1508,7 +1636,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
"__id__": 38
},
"_enabled": true,
"_materials": [
......@@ -1548,20 +1676,20 @@
},
{
"__type__": "cc.Node",
"_name": "bar",
"_name": "Bar",
"_objFlags": 0,
"_parent": {
"__id__": 30
"__id__": 34
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 38
"__id__": 42
}
],
"_prefab": {
"__id__": 39
"__id__": 43
},
"_opacity": 255,
"_color": {
......@@ -1615,7 +1743,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
"__id__": 41
},
"_enabled": true,
"_materials": [
......@@ -1655,20 +1783,20 @@
},
{
"__type__": "cc.Node",
"_name": "bar",
"_name": "Bar",
"_objFlags": 0,
"_parent": {
"__id__": 30
"__id__": 34
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 41
"__id__": 45
}
],
"_prefab": {
"__id__": 42
"__id__": 46
},
"_opacity": 255,
"_color": {
......@@ -1722,7 +1850,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 40
"__id__": 44
},
"_enabled": true,
"_materials": [
......@@ -1762,20 +1890,20 @@
},
{
"__type__": "cc.Node",
"_name": "bar",
"_name": "Bar",
"_objFlags": 0,
"_parent": {
"__id__": 30
"__id__": 34
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 44
"__id__": 48
}
],
"_prefab": {
"__id__": 45
"__id__": 49
},
"_opacity": 255,
"_color": {
......@@ -1829,7 +1957,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
"__id__": 47
},
"_enabled": true,
"_materials": [
......@@ -1869,20 +1997,20 @@
},
{
"__type__": "cc.Node",
"_name": "bar",
"_name": "Bar",
"_objFlags": 0,
"_parent": {
"__id__": 30
"__id__": 34
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 47
"__id__": 51
}
],
"_prefab": {
"__id__": 48
"__id__": 52
},
"_opacity": 255,
"_color": {
......@@ -1936,7 +2064,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 46
"__id__": 50
},
"_enabled": true,
"_materials": [
......@@ -1976,20 +2104,20 @@
},
{
"__type__": "cc.Node",
"_name": "bar",
"_name": "Bar",
"_objFlags": 0,
"_parent": {
"__id__": 30
"__id__": 34
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 50
"__id__": 54
}
],
"_prefab": {
"__id__": 51
"__id__": 55
},
"_opacity": 255,
"_color": {
......@@ -2043,7 +2171,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
"__id__": 53
},
"_enabled": true,
"_materials": [
......@@ -2083,20 +2211,20 @@
},
{
"__type__": "cc.Node",
"_name": "bar",
"_name": "Bar",
"_objFlags": 0,
"_parent": {
"__id__": 30
"__id__": 34
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 53
"__id__": 57
}
],
"_prefab": {
"__id__": 54
"__id__": 58
},
"_opacity": 255,
"_color": {
......@@ -2150,7 +2278,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 52
"__id__": 56
},
"_enabled": true,
"_materials": [
......@@ -2190,20 +2318,20 @@
},
{
"__type__": "cc.Node",
"_name": "bar",
"_name": "Bar",
"_objFlags": 0,
"_parent": {
"__id__": 30
"__id__": 34
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 56
"__id__": 60
}
],
"_prefab": {
"__id__": 57
"__id__": 61
},
"_opacity": 255,
"_color": {
......@@ -2257,7 +2385,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 55
"__id__": 59
},
"_enabled": true,
"_materials": [
......@@ -2297,20 +2425,20 @@
},
{
"__type__": "cc.Node",
"_name": "bar",
"_name": "Bar",
"_objFlags": 0,
"_parent": {
"__id__": 30
"__id__": 34
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 59
"__id__": 63
}
],
"_prefab": {
"__id__": 60
"__id__": 64
},
"_opacity": 255,
"_color": {
......@@ -2364,7 +2492,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 58
"__id__": 62
},
"_enabled": true,
"_materials": [
......@@ -2407,20 +2535,20 @@
"_name": "Hand",
"_objFlags": 0,
"_parent": {
"__id__": 30
"__id__": 34
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 62
"__id__": 66
},
{
"__id__": 63
"__id__": 67
}
],
"_prefab": {
"__id__": 64
"__id__": 68
},
"_opacity": 255,
"_color": {
......@@ -2474,7 +2602,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 61
"__id__": 65
},
"_enabled": true,
"_materials": [
......@@ -2506,7 +2634,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 61
"__id__": 65
},
"_enabled": true,
"_defaultClip": {
......@@ -2531,6 +2659,16 @@
"fileId": "0ewzBLrmBEnLgKNj11Gyb7",
"sync": false
},
{
"__type__": "5584aUXH2FAPa7+BLJu4/Ka",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
},
"_enabled": true,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
......@@ -2559,6 +2697,33 @@
"playOnLoad": false,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_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": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
......
{
"__type__": "cc.SpriteAtlas"
}
\ No newline at end of file
{
"ver": "1.2.5",
"uuid": "38362a10-d327-4a06-8eba-26b8134b34e0",
"importer": "auto-atlas",
"maxWidth": 1024,
"maxHeight": 1024,
"padding": 2,
"compressionLevel": 6,
"allowRotation": true,
"forceSquared": false,
"powerOfTwo": false,
"algorithm": "MaxRects",
"format": "png",
"quality": 80,
"contourBleed": true,
"paddingBleed": true,
"filterUnused": true,
"packable": false,
"premultiplyAlpha": false,
"filterMode": "bilinear",
"platformSettings": {},
"subMetas": {}
}
\ No newline at end of file
......@@ -72,79 +72,111 @@
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
},
{
"__id__": 9
"__id__": 6
},
{
"__id__": 12
"__id__": 8
},
{
"__id__": 19
"__id__": 11
},
{
"__id__": 22
"__id__": 13
},
{
"__id__": 25
"__id__": 16
},
{
"__id__": 28
"__id__": 84
},
{
"__id__": 15
"__id__": 88
},
{
"__id__": 37
"__id__": 19
},
{
"__id__": 39
"__id__": 24
},
{
"__id__": 44
},
"__id__": 59
}
],
"_active": true,
"_components": [
{
"__id__": 49
"__id__": 92
},
{
"__id__": 51
"__id__": 93
},
{
"__id__": 54
"__id__": 94
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
{
"__id__": 57
"_contentSize": {
"__type__": "cc.Size",
"width": 640,
"height": 1140
},
{
"__id__": 60
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
{
"__id__": 62
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
320,
570,
0,
0,
0,
0,
1,
1,
1,
1
]
},
{
"__id__": 65
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
{
"__id__": 68
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "a5esZu+45LA5mBpvttspPD"
},
{
"__id__": 70
"__type__": "cc.Node",
"_name": "Drawer",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
{
"__id__": 73
}
],
"_children": [],
"_active": true,
"_components": [
{
"__id__": 76
"__id__": 4
},
{
"__id__": 77
"__id__": 5
}
],
"_prefab": null,
......@@ -158,8 +190,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 640,
"height": 1140
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -170,8 +202,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
320,
570,
0,
0,
0,
0,
0,
......@@ -193,7 +225,50 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "a5esZu+45LA5mBpvttspPD"
"_id": "carM8au1tMjLcz7Y7d9WHg"
},
{
"__type__": "bc9b8eBLydOSpmj1oSTr19Y",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_id": "eb6/0xznRN2orpj0ygTIZ2"
},
{
"__type__": "cc.Graphics",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a153945d-2511-4c14-be7b-05d242f47d57"
}
],
"_lineWidth": 3,
"_strokeColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_lineJoin": 2,
"_lineCap": 0,
"_fillColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_miterLimit": 10,
"_id": "1btAy5xwFCPoNBBHgYkPTw"
},
{
"__type__": "cc.Node",
......@@ -206,7 +281,7 @@
"_active": true,
"_components": [
{
"__id__": 4
"__id__": 7
}
],
"_prefab": null,
......@@ -262,7 +337,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
"__id__": 6
},
"_enabled": true,
"_cullingMask": 4294967295,
......@@ -304,7 +379,10 @@
"_active": true,
"_components": [
{
"__id__": 6
"__id__": 9
},
{
"__id__": 10
}
],
"_prefab": null,
......@@ -360,7 +438,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
"__id__": 8
},
"_enabled": true,
"_materials": [
......@@ -387,6 +465,33 @@
"_atlas": null,
"_id": "a3EHVCyCRAGL/8nVUh/ELT"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_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": 640,
"_originalHeight": 1140,
"_id": "750KRR2udKf6Yp/2NLiVb+"
},
{
"__type__": "cc.Node",
"_name": "GamePlay",
......@@ -398,7 +503,10 @@
"_active": true,
"_components": [
{
"__id__": 8
"__id__": 12
},
{
"__id__": 83
}
],
"_prefab": null,
......@@ -412,8 +520,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 640,
"height": 1140
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -454,24 +562,46 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
"__id__": 11
},
"_enabled": true,
"lineMinSegLength": 15,
"lineWidth": 13,
"prefabToLoad": {
"__uuid__": "798b0754-533c-46c4-a8e4-1c84c0820477"
},
"gameRegion": {
"__id__": 9
"__id__": 13
},
"graphic": {
"__id__": 11
"__id__": 15
},
"timerLabel": {
"__id__": 13
"__id__": 17
},
"clock": {
"__id__": 15
"__id__": 19
},
"levelLabel": {
"__id__": 23
},
"levelComp": {
"__id__": 59
},
"rewardSprite": {
"__id__": 79
},
"shadow": {
"__id__": 34
},
"starWinSprites": [
{
"__uuid__": "40455dae-ba33-4baf-865e-fa1ab3616d41"
},
{
"__uuid__": "45d01018-dbcf-474e-9e3f-9bf3674d50eb"
}
],
"_id": "faEXJtWtBDhKF1IlQuz9ef"
},
{
......@@ -485,7 +615,7 @@
"_active": true,
"_components": [
{
"__id__": 10
"__id__": 14
}
],
"_prefab": null,
......@@ -541,7 +671,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
"__id__": 13
},
"_enabled": true,
"alignMode": 1,
......@@ -568,7 +698,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
"__id__": 16
},
"_enabled": true,
"_materials": [
......@@ -576,16 +706,16 @@
"__uuid__": "a153945d-2511-4c14-be7b-05d242f47d57"
}
],
"_lineWidth": 10,
"_lineWidth": 20,
"_strokeColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_lineJoin": 2,
"_lineCap": 0,
"_lineJoin": 1,
"_lineCap": 1,
"_fillColor": {
"__type__": "cc.Color",
"r": 172,
......@@ -593,7 +723,7 @@
"b": 111,
"a": 255
},
"_miterLimit": 10,
"_miterLimit": 0,
"_id": "e7VfG0EflDurLft0X4MHZK"
},
{
......@@ -607,7 +737,7 @@
"_active": true,
"_components": [
{
"__id__": 11
"__id__": 15
}
],
"_prefab": null,
......@@ -663,7 +793,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
"__id__": 18
},
"_enabled": true,
"_materials": [
......@@ -698,16 +828,16 @@
"_name": "ClockLabel",
"_objFlags": 0,
"_parent": {
"__id__": 15
"__id__": 19
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 13
"__id__": 17
},
{
"__id__": 18
"__id__": 22
}
],
"_prefab": null,
......@@ -767,16 +897,16 @@
},
"_children": [
{
"__id__": 14
"__id__": 18
}
],
"_active": false,
"_components": [
{
"__id__": 16
"__id__": 20
},
{
"__id__": 17
"__id__": 21
}
],
"_prefab": null,
......@@ -832,7 +962,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
"__id__": 19
},
"_enabled": true,
"_materials": [
......@@ -864,7 +994,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
"__id__": 19
},
"_enabled": true,
"_defaultClip": {
......@@ -883,7 +1013,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
"__id__": 18
},
"_enabled": true,
"_color": {
......@@ -898,19 +1028,19 @@
},
{
"__type__": "cc.Node",
"_name": "Wall",
"_name": "LevelLabel",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 20
"__id__": 57
},
{
"__id__": 21
"__id__": 58
}
],
"_prefab": null,
......@@ -924,8 +1054,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 50,
"height": 1140
"width": 116.7,
"height": 54.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -936,8 +1066,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-345,
0,
51.275,
0,
0,
0,
......@@ -959,74 +1089,42 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "24fesSE41FJqsVxBlcr2NV"
"_id": "darUGX0aJC+7OnQrgWoPIg"
},
{
"__type__": "cc.RigidBody",
"_name": "",
"__type__": "cc.Node",
"_name": "Header",
"_objFlags": 0,
"node": {
"__id__": 19
},
"_enabled": true,
"_type": 0,
"_allowSleep": false,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
"_parent": {
"__id__": 2
},
"_angularVelocity": 0,
"_fixedRotation": true,
"enabledContactListener": false,
"bullet": false,
"awakeOnLoad": true,
"_id": "e5qgEr1xJJ2ZPi+SOFl1a0"
"_children": [
{
"__id__": 23
},
{
"__type__": "cc.PhysicsBoxCollider",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
"__id__": 25
},
"_enabled": true,
"tag": 0,
"_density": 1,
"_sensor": false,
"_friction": 0.2,
"_restitution": 0,
"body": null,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
{
"__id__": 34
},
"_size": {
"__type__": "cc.Size",
"width": 50,
"height": 1140
{
"__id__": 37
},
"_id": "21TPr2nFJNX7/Oq6xXnU4I"
{
"__id__": 43
},
{
"__type__": "cc.Node",
"_name": "Wall",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 49
},
"_children": [],
{
"__id__": 52
}
],
"_active": true,
"_components": [
{
"__id__": 23
},
{
"__id__": 24
"__id__": 56
}
],
"_prefab": null,
......@@ -1040,8 +1138,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 50,
"height": 1140
"width": 640,
"height": 200
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1052,8 +1150,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
345,
0,
470,
0,
0,
0,
......@@ -1075,74 +1173,33 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "10O1N4cuJIf7t7JabcuW05"
"_id": "286VZfdOBIyrDY85tPeoF8"
},
{
"__type__": "cc.RigidBody",
"_name": "",
"__type__": "cc.Node",
"_name": "LimitBar",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_type": 0,
"_allowSleep": false,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_angularVelocity": 0,
"_fixedRotation": true,
"enabledContactListener": false,
"bullet": false,
"awakeOnLoad": true,
"_id": "7dfggALVRB2LUTC1fkM6kd"
"_parent": {
"__id__": 24
},
"_children": [
{
"__type__": "cc.PhysicsBoxCollider",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"tag": 0,
"_density": 1,
"_sensor": false,
"_friction": 0.2,
"_restitution": 0,
"body": null,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_size": {
"__type__": "cc.Size",
"width": 50,
"height": 1140
},
"_id": "1fodx682pO5YZpZbQX/Kaa"
"__id__": 26
},
{
"__type__": "cc.Node",
"_name": "LevelLabel",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 28
},
"_children": [],
{
"__id__": 30
}
],
"_active": true,
"_components": [
{
"__id__": 26
"__id__": 32
},
{
"__id__": 27
"__id__": 33
}
],
"_prefab": null,
......@@ -1156,8 +1213,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 116.7,
"height": 54.4
"width": 402,
"height": 84
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1169,7 +1226,7 @@
"ctor": "Float64Array",
"array": [
0,
521.275,
-44.02,
0,
0,
0,
......@@ -1191,86 +1248,20 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "darUGX0aJC+7OnQrgWoPIg"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Level ",
"_N$string": "Level ",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "0481a3d3-282a-499e-b2f1-c53edc40ac4c"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "6cgJMyC/dETabjzAQ+/6Ee"
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_width": 2,
"_id": "81RFpkzDBF6INcQjrihhxJ"
"_id": "a7YbvgEgZOAI5sMS59B55v"
},
{
"__type__": "cc.Node",
"_name": "LimitBar",
"_name": "Bar",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 29
},
{
"__id__": 31
"__id__": 25
},
{
"__id__": 33
}
],
"_active": false,
"_children": [],
"_active": true,
"_components": [
{
"__id__": 35
},
{
"__id__": 36
"__id__": 27
}
],
"_prefab": null,
......@@ -1284,8 +1275,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 402,
"height": 84
"width": 476,
"height": 22
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1296,16 +1287,16 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
425.98,
23.439,
14.447,
0,
0,
0,
0,
1,
1,
1,
1
0.724,
1.017,
1.017
]
},
"_eulerAngles": {
......@@ -1319,76 +1310,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "a7YbvgEgZOAI5sMS59B55v"
"_id": "21Ptjc/HVNooHqSpWemQcH"
},
{
"__type__": "cc.Node",
"_name": "Bar",
"_objFlags": 0,
"_parent": {
"__id__": 28
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 30
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 476,
"height": 22
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
23.439,
14.447,
0,
0,
0,
0,
1,
0.724,
1.017,
1.017
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "21Ptjc/HVNooHqSpWemQcH"
},
{
"__type__": "cc.Sprite",
"_name": "",
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
"__id__": 26
},
"_enabled": true,
"_materials": [
......@@ -1420,13 +1349,13 @@
"_name": "Limit1",
"_objFlags": 0,
"_parent": {
"__id__": 28
"__id__": 25
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 32
"__id__": 29
}
],
"_prefab": null,
......@@ -1482,7 +1411,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
"__id__": 28
},
"_enabled": true,
"_materials": [
......@@ -1514,13 +1443,13 @@
"_name": "Limit2",
"_objFlags": 0,
"_parent": {
"__id__": 28
"__id__": 25
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 34
"__id__": 31
}
],
"_prefab": null,
......@@ -1576,7 +1505,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
"__id__": 30
},
"_enabled": true,
"_materials": [
......@@ -1608,7 +1537,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
"__id__": 25
},
"_enabled": true,
"_materials": [
......@@ -1640,11 +1569,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
"__id__": 25
},
"_enabled": true,
"barSprite": {
"__id__": 30
"__id__": 27
},
"limitBarSprite1": {
"__uuid__": "d629670c-4b1a-42a5-8f0c-5c4f041e6ba3"
......@@ -1659,13 +1588,16 @@
"_name": "Shadow",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 24
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 38
"__id__": 35
},
{
"__id__": 36
}
],
"_prefab": null,
......@@ -1692,7 +1624,7 @@
"ctor": "Float64Array",
"array": [
0,
0,
-470,
0,
0,
0,
......@@ -1721,7 +1653,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
"__id__": 34
},
"_enabled": true,
"_materials": [
......@@ -1748,24 +1680,54 @@
"_atlas": null,
"_id": "e3ciWiJFdCOIr1/ZL/GZNl"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": -940,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 640,
"_originalHeight": 1140,
"_id": "24mFYGFtdPH4n7vufSOqzQ"
},
{
"__type__": "cc.Node",
"_name": "ButtonBack",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 40
"__id__": 38
},
{
"__id__": 39
},
{
"__id__": 41
},
{
"__id__": 43
"__id__": 42
}
],
"_prefab": null,
......@@ -1792,7 +1754,7 @@
"ctor": "Float64Array",
"array": [
-274.877,
514.257,
44.257,
0,
0,
0,
......@@ -1821,7 +1783,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
"__id__": 37
},
"_enabled": true,
"_materials": [
......@@ -1853,7 +1815,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
"__id__": 37
},
"_enabled": true,
"_normalMaterial": null,
......@@ -1862,7 +1824,7 @@
"zoomScale": 0.8,
"clickEvents": [
{
"__id__": 42
"__id__": 40
}
],
"_N$interactable": true,
......@@ -1923,7 +1885,7 @@
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 39
"__id__": 37
},
"component": "",
"_componentId": "1a8f8mTQWtNYqR9oh5yi2Mx",
......@@ -1935,26 +1897,56 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
"__id__": 37
},
"_enabled": true,
"_id": "3f4bNjzC1LX6sMN3PLyvKp"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 8,
"_left": 10.62299999999999,
"_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": "35ptb6wkBAopkhHn207iDf"
},
{
"__type__": "cc.Node",
"_name": "ButtonReplay",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 44
},
{
"__id__": 45
},
{
"__id__": 46
"__id__": 47
},
{
"__id__": 48
......@@ -1984,7 +1976,7 @@
"ctor": "Float64Array",
"array": [
-198.771,
514.257,
44.257,
0,
0,
0,
......@@ -2013,7 +2005,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 44
"__id__": 43
},
"_enabled": true,
"_materials": [
......@@ -2045,7 +2037,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 44
"__id__": 43
},
"_enabled": true,
"_normalMaterial": null,
......@@ -2054,7 +2046,7 @@
"zoomScale": 0.8,
"clickEvents": [
{
"__id__": 47
"__id__": 46
}
],
"_N$interactable": true,
......@@ -2115,7 +2107,7 @@
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 44
"__id__": 43
},
"component": "",
"_componentId": "1a8f8mTQWtNYqR9oh5yi2Mx",
......@@ -2127,23 +2119,53 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 44
"__id__": 43
},
"_enabled": true,
"_id": "161FBYwm1GbpgppBxyzFKj"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 43
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 8,
"_left": 87.72900000000001,
"_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": "92tKRyq2RGxKTBhf95Dd9u"
},
{
"__type__": "cc.Node",
"_name": "Coin",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 50
},
{
"__id__": 51
}
],
"_prefab": null,
......@@ -2170,7 +2192,7 @@
"ctor": "Float64Array",
"array": [
171.69,
516.603,
46.603,
0,
0,
0,
......@@ -2226,21 +2248,51 @@
"_atlas": null,
"_id": "f6hBBB52xDzoJhmpa6yyiu"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 32,
"_left": 0,
"_right": 112.81,
"_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": "d5/N9HM25Gkq/e5iDnsT3g"
},
{
"__type__": "cc.Node",
"_name": "CoinLabel",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 52
"__id__": 53
},
{
"__id__": 53
"__id__": 54
},
{
"__id__": 55
}
],
"_prefab": null,
......@@ -2267,7 +2319,7 @@
"ctor": "Float64Array",
"array": [
259.468,
518.648,
48.648,
0,
0,
0,
......@@ -2296,7 +2348,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 52
},
"_enabled": true,
"_materials": [
......@@ -2331,7 +2383,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 52
},
"_enabled": true,
"_color": {
......@@ -2345,20 +2397,214 @@
"_id": "1dmF/suvNHUqBwVthn61/6"
},
{
"__type__": "cc.Node",
"_name": "Light",
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 55
"node": {
"__id__": 52
},
{
"__id__": 56
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 32,
"_left": 0,
"_right": 12.456999999999994,
"_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": "cbF/VWotNBZL6ndzGNtktu"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 41,
"_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": "f5u/Fst71F1Z+KqKi+9eZ1"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Level ",
"_N$string": "Level ",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "0481a3d3-282a-499e-b2f1-c53edc40ac4c"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "6cgJMyC/dETabjzAQ+/6Ee"
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_width": 2,
"_id": "81RFpkzDBF6INcQjrihhxJ"
},
{
"__type__": "cc.Node",
"_name": "LevelComp",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 60
},
{
"__id__": 63
},
{
"__id__": 66
},
{
"__id__": 68
},
{
"__id__": 71
},
{
"__id__": 74
},
{
"__id__": 76
},
{
"__id__": 79
}
],
"_active": false,
"_components": [
{
"__id__": 82
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 640,
"height": 1140
},
"_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": "f9f4ZX6WBKvIFOzN6E96Rq"
},
{
"__type__": "cc.Node",
"_name": "Light",
"_objFlags": 0,
"_parent": {
"__id__": 59
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 61
},
{
"__id__": 62
}
],
"_prefab": null,
......@@ -2414,7 +2660,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 54
"__id__": 60
},
"_enabled": true,
"_materials": [
......@@ -2446,7 +2692,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 54
"__id__": 60
},
"_enabled": true,
"_defaultClip": {
......@@ -2465,16 +2711,16 @@
"_name": "Title",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 59
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 58
"__id__": 64
},
{
"__id__": 59
"__id__": 65
}
],
"_prefab": null,
......@@ -2530,7 +2776,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
"__id__": 63
},
"_enabled": true,
"_materials": [
......@@ -2565,7 +2811,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
"__id__": 63
},
"_enabled": true,
"_color": {
......@@ -2583,13 +2829,13 @@
"_name": "EarnedCoin",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 59
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 61
"__id__": 67
}
],
"_prefab": null,
......@@ -2645,7 +2891,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 60
"__id__": 66
},
"_enabled": true,
"_materials": [
......@@ -2677,16 +2923,16 @@
"_name": "EarnedCoinLabel",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 59
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 63
"__id__": 69
},
{
"__id__": 64
"__id__": 70
}
],
"_prefab": null,
......@@ -2742,7 +2988,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
"__id__": 68
},
"_enabled": true,
"_materials": [
......@@ -2777,7 +3023,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
"__id__": 68
},
"_enabled": true,
"_color": {
......@@ -2795,16 +3041,16 @@
"_name": "ButtonCollect",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 59
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 66
"__id__": 72
},
{
"__id__": 67
"__id__": 73
}
],
"_prefab": null,
......@@ -2860,7 +3106,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
"__id__": 71
},
"_enabled": true,
"_normalMaterial": null,
......@@ -2928,7 +3174,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
"__id__": 71
},
"_enabled": true,
"_materials": [
......@@ -2960,13 +3206,13 @@
"_name": "Star",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 59
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 69
"__id__": 75
}
],
"_prefab": null,
......@@ -3022,7 +3268,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
"__id__": 74
},
"_enabled": true,
"_materials": [
......@@ -3054,16 +3300,16 @@
"_name": "StarLabel",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 59
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 71
"__id__": 77
},
{
"__id__": 72
"__id__": 78
}
],
"_prefab": null,
......@@ -3119,7 +3365,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 70
"__id__": 76
},
"_enabled": true,
"_materials": [
......@@ -3154,7 +3400,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 70
"__id__": 76
},
"_enabled": true,
"_color": {
......@@ -3172,16 +3418,16 @@
"_name": "RewardSprite",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 59
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 74
"__id__": 80
},
{
"__id__": 75
"__id__": 81
}
],
"_prefab": null,
......@@ -3237,7 +3483,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 73
"__id__": 79
},
"_enabled": true,
"_materials": [
......@@ -3269,7 +3515,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 73
"__id__": 79
},
"_enabled": true,
"_defaultClip": {
......@@ -3284,7 +3530,353 @@
"_id": "d0fEiI2jZBB5I2oxQfqHDi"
},
{
"__type__": "cc.Canvas",
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
},
"_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": "0aafIedMtFGal1aayWKS2G"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_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": "34cxNm9xROYa2rbtwhEUIb"
},
{
"__type__": "cc.Node",
"_name": "Wall",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 85
},
{
"__id__": 86
},
{
"__id__": 87
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 50,
"height": 1140
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-345,
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": "24fesSE41FJqsVxBlcr2NV"
},
{
"__type__": "cc.RigidBody",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 84
},
"_enabled": true,
"_type": 0,
"_allowSleep": false,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_angularVelocity": 0,
"_fixedRotation": true,
"enabledContactListener": false,
"bullet": false,
"awakeOnLoad": true,
"_id": "e5qgEr1xJJ2ZPi+SOFl1a0"
},
{
"__type__": "cc.PhysicsBoxCollider",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 84
},
"_enabled": true,
"tag": 0,
"_density": 1,
"_sensor": false,
"_friction": 0.2,
"_restitution": 0,
"body": null,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_size": {
"__type__": "cc.Size",
"width": 50,
"height": 1140
},
"_id": "21TPr2nFJNX7/Oq6xXnU4I"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 84
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 13,
"_left": -50,
"_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": 1140,
"_id": "abRUGEFmdNnapmRwsnTP1D"
},
{
"__type__": "cc.Node",
"_name": "Wall",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 89
},
{
"__id__": 90
},
{
"__id__": 91
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 50,
"height": 1140
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
345,
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": "10O1N4cuJIf7t7JabcuW05"
},
{
"__type__": "cc.RigidBody",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 88
},
"_enabled": true,
"_type": 0,
"_allowSleep": false,
"_gravityScale": 1,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_angularVelocity": 0,
"_fixedRotation": true,
"enabledContactListener": false,
"bullet": false,
"awakeOnLoad": true,
"_id": "7dfggALVRB2LUTC1fkM6kd"
},
{
"__type__": "cc.PhysicsBoxCollider",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 88
},
"_enabled": true,
"tag": 0,
"_density": 1,
"_sensor": false,
"_friction": 0.2,
"_restitution": 0,
"body": null,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_size": {
"__type__": "cc.Size",
"width": 50,
"height": 1140
},
"_id": "1fodx682pO5YZpZbQX/Kaa"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 88
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 37,
"_left": 0,
"_right": -50,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 1140,
"_id": "13ueKGQ6BMnq3ijshEsMrq"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
......@@ -3296,8 +3888,8 @@
"width": 640,
"height": 1140
},
"_fitWidth": true,
"_fitHeight": false,
"_fitWidth": false,
"_fitHeight": true,
"_id": "59Cd0ovbdF4byw5sbjJDx7"
},
{
......@@ -3326,5 +3918,24 @@
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "29zXboiXFBKoIV4PQ2liTe"
},
{
"__type__": "cc.Animation",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_defaultClip": {
"__uuid__": "20dd64ba-ba66-4af0-9f75-d3196eca01af"
},
"_clips": [
{
"__uuid__": "20dd64ba-ba66-4af0-9f75-d3196eca01af"
}
],
"playOnLoad": true,
"_id": "14AFtokspG4Y6UzlcRsBxR"
}
]
\ No newline at end of file
......@@ -75,10 +75,7 @@
"__id__": 5
},
{
"__id__": 7
},
{
"__id__": 11
"__id__": 8
},
{
"__id__": 13
......@@ -87,34 +84,37 @@
"__id__": 16
},
{
"__id__": 19
"__id__": 20
},
{
"__id__": 24
"__id__": 23
},
{
"__id__": 29
"__id__": 30
},
{
"__id__": 31
"__id__": 35
},
{
"__id__": 33
"__id__": 39
},
{
"__id__": 36
"__id__": 41
},
{
"__id__": 44
}
],
"_active": true,
"_components": [
{
"__id__": 60
"__id__": 68
},
{
"__id__": 61
"__id__": 69
},
{
"__id__": 62
"__id__": 70
}
],
"_prefab": null,
......@@ -275,6 +275,9 @@
"_components": [
{
"__id__": 6
},
{
"__id__": 7
}
],
"_prefab": null,
......@@ -357,6 +360,33 @@
"_atlas": null,
"_id": "adeHPguyZNX52MxpRq+Nx1"
},
{
"__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": 640,
"_originalHeight": 1140,
"_id": "27Bsv8IjBFQplkuYeE53ca"
},
{
"__type__": "cc.Node",
"_name": "ButtonSound",
......@@ -368,10 +398,13 @@
"_active": true,
"_components": [
{
"__id__": 8
"__id__": 9
},
{
"__id__": 9
"__id__": 10
},
{
"__id__": 12
}
],
"_prefab": null,
......@@ -398,7 +431,7 @@
"ctor": "Float64Array",
"array": [
-258.813,
508.045,
508.04499999999996,
0,
0,
0,
......@@ -427,7 +460,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
"__id__": 8
},
"_enabled": true,
"_materials": [
......@@ -459,7 +492,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
"__id__": 8
},
"_enabled": true,
"_normalMaterial": null,
......@@ -468,7 +501,7 @@
"zoomScale": 0.8,
"clickEvents": [
{
"__id__": 10
"__id__": 11
}
],
"_N$interactable": true,
......@@ -536,6 +569,33 @@
"handler": "onClickButtonSound",
"customEventData": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 17.747000000000014,
"_right": 0,
"_top": 18.15300000000002,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "37UysSigRKF6Whu4av4VgV"
},
{
"__type__": "cc.Node",
"_name": "Coin",
......@@ -547,7 +607,10 @@
"_active": true,
"_components": [
{
"__id__": 12
"__id__": 14
},
{
"__id__": 15
}
],
"_prefab": null,
......@@ -603,7 +666,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 13
},
"_enabled": true,
"_materials": [
......@@ -630,6 +693,33 @@
"_atlas": null,
"_id": "a8DLm7k29Er78p0Q1Lwp7I"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 32,
"_left": 0,
"_right": 122.08600000000001,
"_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": "f1fJvd0OdJtoqqv2Qrl1ht"
},
{
"__type__": "cc.Node",
"_name": "CoinLabel",
......@@ -641,10 +731,13 @@
"_active": true,
"_components": [
{
"__id__": 14
"__id__": 17
},
{
"__id__": 15
"__id__": 18
},
{
"__id__": 19
}
],
"_prefab": null,
......@@ -670,7 +763,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
254.311,
254.31099999999998,
517.422,
0,
0,
......@@ -700,7 +793,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
"__id__": 16
},
"_enabled": true,
"_materials": [
......@@ -733,7 +826,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 13
"__id__": 16
},
"_enabled": true,
"_color": {
......@@ -746,6 +839,33 @@
"_width": 2,
"_id": "b26x8ngrtDxq8yh5jjyk4z"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 32,
"_left": 0,
"_right": 20.319000000000017,
"_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": "ffpfY97utB4oQilFB13LpX"
},
{
"__type__": "cc.Node",
"_name": "Logo",
......@@ -757,10 +877,10 @@
"_active": true,
"_components": [
{
"__id__": 17
"__id__": 21
},
{
"__id__": 18
"__id__": 22
}
],
"_prefab": null,
......@@ -816,7 +936,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
"__id__": 20
},
"_enabled": true,
"_materials": [
......@@ -848,7 +968,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
"__id__": 20
},
"_enabled": true,
"_defaultClip": {
......@@ -871,13 +991,16 @@
},
"_children": [
{
"__id__": 20
"__id__": 24
}
],
"_active": true,
"_components": [
{
"__id__": 23
"__id__": 28
},
{
"__id__": 29
}
],
"_prefab": null,
......@@ -903,7 +1026,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-257.469,
-257.5,
-189.421,
0,
0,
......@@ -933,16 +1056,19 @@
"_name": "Icon",
"_objFlags": 0,
"_parent": {
"__id__": 19
"__id__": 23
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 21
"__id__": 25
},
{
"__id__": 22
"__id__": 26
},
{
"__id__": 27
}
],
"_prefab": null,
......@@ -977,7 +1103,7 @@
1,
1.044,
1.044,
1.044
0
]
},
"_eulerAngles": {
......@@ -998,7 +1124,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
"__id__": 24
},
"_enabled": true,
"_materials": [
......@@ -1030,7 +1156,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
"__id__": 24
},
"_enabled": true,
"_defaultClip": {
......@@ -1044,12 +1170,80 @@
"playOnLoad": true,
"_id": "db+x/LI8JCv6Dfa5OIl5n7"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 0.8,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 3,
"transition": 3,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "c4aNTjInpO16AURJl2ROWW"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
"__id__": 23
},
"_enabled": true,
"_materials": [
......@@ -1076,6 +1270,33 @@
"_atlas": null,
"_id": "0cfRXCVI1LZIY0HPpLdSi0"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 8,
"_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": "ddXr+e7h1FdpQuE+N6QNKZ"
},
{
"__type__": "cc.Node",
"_name": "ButtonPlay",
......@@ -1087,13 +1308,13 @@
"_active": true,
"_components": [
{
"__id__": 25
"__id__": 31
},
{
"__id__": 26
"__id__": 32
},
{
"__id__": 27
"__id__": 33
}
],
"_prefab": null,
......@@ -1149,7 +1370,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
"__id__": 30
},
"_enabled": true,
"_materials": [
......@@ -1181,7 +1402,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
"__id__": 30
},
"_enabled": true,
"_defaultClip": {
......@@ -1200,7 +1421,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 24
"__id__": 30
},
"_enabled": true,
"_normalMaterial": null,
......@@ -1209,7 +1430,7 @@
"zoomScale": 0.8,
"clickEvents": [
{
"__id__": 28
"__id__": 34
}
],
"_N$interactable": true,
......@@ -1288,7 +1509,13 @@
"_active": true,
"_components": [
{
"__id__": 30
"__id__": 36
},
{
"__id__": 37
},
{
"__id__": 38
}
],
"_prefab": null,
......@@ -1314,8 +1541,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
242.355,
-273.142,
242.35500000000002,
-189.421,
0,
0,
0,
......@@ -1323,7 +1550,7 @@
1,
1,
1,
1
0
]
},
"_eulerAngles": {
......@@ -1344,7 +1571,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
"__id__": 35
},
"_enabled": true,
"_materials": [
......@@ -1371,6 +1598,101 @@
"_atlas": null,
"_id": "78ZmHfRiFIXadc+1XXKUY6"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 0.8,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 3,
"transition": 3,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "4eGzhqjKVL2aDuwUUGotoo"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 32,
"_left": 0,
"_right": 27.644999999999982,
"_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": "a5aFQAOXtPVJPiFmZ80UwM"
},
{
"__type__": "cc.Node",
"_name": "Star",
......@@ -1382,7 +1704,7 @@
"_active": true,
"_components": [
{
"__id__": 32
"__id__": 40
}
],
"_prefab": null,
......@@ -1438,7 +1760,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
"__id__": 39
},
"_enabled": true,
"_materials": [
......@@ -1476,10 +1798,10 @@
"_active": true,
"_components": [
{
"__id__": 34
"__id__": 42
},
{
"__id__": 35
"__id__": 43
}
],
"_prefab": null,
......@@ -1535,7 +1857,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
"__id__": 41
},
"_enabled": true,
"_materials": [
......@@ -1568,7 +1890,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
"__id__": 41
},
"_enabled": true,
"_color": {
......@@ -1590,16 +1912,16 @@
},
"_children": [
{
"__id__": 37
"__id__": 45
},
{
"__id__": 40
"__id__": 48
}
],
"_active": true,
"_components": [
{
"__id__": 59
"__id__": 67
}
],
"_prefab": null,
......@@ -1655,16 +1977,16 @@
"_name": "Dog",
"_objFlags": 0,
"_parent": {
"__id__": 36
"__id__": 44
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 38
"__id__": 46
},
{
"__id__": 39
"__id__": 47
}
],
"_prefab": null,
......@@ -1720,7 +2042,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
"__id__": 45
},
"_enabled": true,
"_materials": [
......@@ -1752,7 +2074,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
"__id__": 45
},
"_enabled": true,
"_defaultClip": {
......@@ -1771,26 +2093,26 @@
"_name": "Bees",
"_objFlags": 0,
"_parent": {
"__id__": 36
"__id__": 44
},
"_children": [
{
"__id__": 41
"__id__": 49
},
{
"__id__": 44
"__id__": 52
},
{
"__id__": 47
"__id__": 55
},
{
"__id__": 50
"__id__": 58
},
{
"__id__": 53
"__id__": 61
},
{
"__id__": 56
"__id__": 64
}
],
"_active": true,
......@@ -1848,16 +2170,16 @@
"_name": "Bee",
"_objFlags": 0,
"_parent": {
"__id__": 40
"__id__": 48
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 42
"__id__": 50
},
{
"__id__": 43
"__id__": 51
}
],
"_prefab": null,
......@@ -1913,7 +2235,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
"__id__": 49
},
"_enabled": true,
"_materials": [
......@@ -1945,7 +2267,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
"__id__": 49
},
"_enabled": true,
"_defaultClip": {
......@@ -1964,16 +2286,16 @@
"_name": "Bee",
"_objFlags": 0,
"_parent": {
"__id__": 40
"__id__": 48
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 45
"__id__": 53
},
{
"__id__": 46
"__id__": 54
}
],
"_prefab": null,
......@@ -2029,7 +2351,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 44
"__id__": 52
},
"_enabled": true,
"_materials": [
......@@ -2061,7 +2383,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 44
"__id__": 52
},
"_enabled": true,
"_defaultClip": {
......@@ -2080,16 +2402,16 @@
"_name": "Bee",
"_objFlags": 0,
"_parent": {
"__id__": 40
"__id__": 48
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 48
"__id__": 56
},
{
"__id__": 49
"__id__": 57
}
],
"_prefab": null,
......@@ -2145,7 +2467,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
"__id__": 55
},
"_enabled": true,
"_materials": [
......@@ -2177,7 +2499,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 47
"__id__": 55
},
"_enabled": true,
"_defaultClip": {
......@@ -2196,16 +2518,16 @@
"_name": "Bee",
"_objFlags": 0,
"_parent": {
"__id__": 40
"__id__": 48
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 51
"__id__": 59
},
{
"__id__": 52
"__id__": 60
}
],
"_prefab": null,
......@@ -2261,7 +2583,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
"__id__": 58
},
"_enabled": true,
"_materials": [
......@@ -2293,7 +2615,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
"__id__": 58
},
"_enabled": true,
"_defaultClip": {
......@@ -2312,16 +2634,16 @@
"_name": "Bee",
"_objFlags": 0,
"_parent": {
"__id__": 40
"__id__": 48
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 54
"__id__": 62
},
{
"__id__": 55
"__id__": 63
}
],
"_prefab": null,
......@@ -2377,7 +2699,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 53
"__id__": 61
},
"_enabled": true,
"_materials": [
......@@ -2409,7 +2731,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 53
"__id__": 61
},
"_enabled": true,
"_defaultClip": {
......@@ -2428,16 +2750,16 @@
"_name": "Bee",
"_objFlags": 0,
"_parent": {
"__id__": 40
"__id__": 48
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 57
"__id__": 65
},
{
"__id__": 58
"__id__": 66
}
],
"_prefab": null,
......@@ -2493,7 +2815,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 56
"__id__": 64
},
"_enabled": true,
"_materials": [
......@@ -2525,7 +2847,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 56
"__id__": 64
},
"_enabled": true,
"_defaultClip": {
......@@ -2544,7 +2866,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
"__id__": 44
},
"_enabled": true,
"_defaultClip": {
......
......@@ -804,8 +804,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
1.405,
368.808,
-2.748,
356.342,
0,
0,
0,
......@@ -829,6 +829,64 @@
"groupIndex": 0,
"_id": "50EUui8txFdpfAqkzmjuiO"
},
{
"__type__": "cc.PhysicsPolygonCollider",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"tag": 0,
"_density": 1,
"_sensor": false,
"_friction": 0.2,
"_restitution": 0,
"body": null,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"points": [
{
"__type__": "cc.Vec2",
"x": -9.7,
"y": -99.9
},
{
"__type__": "cc.Vec2",
"x": -0.4,
"y": -99.9
},
{
"__type__": "cc.Vec2",
"x": 9.9,
"y": -100
},
{
"__type__": "cc.Vec2",
"x": 3.6,
"y": -79.6
},
{
"__type__": "cc.Vec2",
"x": -3.1,
"y": -60.3
},
{
"__type__": "cc.Vec2",
"x": -24.8,
"y": -45.2
},
{
"__type__": "cc.Vec2",
"x": -28.8,
"y": -64.8
}
],
"_id": "28OMGpZLpOjKDr+NNBfwOJ"
},
{
"__type__": "cc.Sprite",
"_name": "",
......@@ -871,7 +929,7 @@
"_enabled": true,
"_type": 2,
"_allowSleep": false,
"_gravityScale": 0,
"_gravityScale": 2,
"_linearDamping": 0,
"_angularDamping": 0,
"_linearVelocity": {
......@@ -896,44 +954,6 @@
"_enabled": true,
"_id": "dbIEDAURxEga5FLJd0fT5J"
},
{
"__type__": "cc.PhysicsPolygonCollider",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 18
},
"_enabled": true,
"tag": 0,
"_density": 1,
"_sensor": false,
"_friction": 0.2,
"_restitution": 1,
"body": null,
"_offset": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"points": [
{
"__type__": "cc.Vec2",
"x": -10,
"y": 100
},
{
"__type__": "cc.Vec2",
"x": -10,
"y": -100
},
{
"__type__": "cc.Vec2",
"x": 10,
"y": 0
}
],
"_id": "28OMGpZLpOjKDr+NNBfwOJ"
},
{
"__type__": "7aaccRSHlRDIJdCgIhB/vcq",
"_name": "",
......
{
"ver": "1.1.3",
"uuid": "fe3a2be9-eaa4-4f21-af9a-ec6a60103de4",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
import Dog from "../Objects/Dog";
import Hole from "../Objects/Hole";
import LimitBar from "../Objects/LimitBar";
import LocalStorage from "../Data/LocalStorage";
import PracticeLine from "../Objects/PracticeLine";
import Utils from "../Utils";
import Drawer from "../Drawer";
const { ccclass, property } = cc._decorator;
@ccclass
export default class GamePlay extends cc.Component {
@property lineMinSegLength = 10;
@property lineWidth = 13;
@property(cc.Prefab) prefabToLoad: cc.Prefab = null;
@property(cc.Node) gameRegion: cc.Node = null;
@property(cc.Graphics) graphic: cc.Graphics = null;
@property(cc.Label) timerLabel: cc.Label = null;
@property(cc.Node) clock: cc.Node = null;
@property(cc.Node) levelLabel: cc.Node = null;
@property(cc.Node) levelComp: cc.Node = null;
@property(cc.Node) rewardSprite: cc.Node = null;
@property(cc.Node) shadow: cc.Node = null;
@property([cc.SpriteFrame]) starWinSprites: cc.SpriteFrame[] = [];
isDrawing: boolean = false;
draw: cc.Node = null;
rb: cc.RigidBody = null;
rbCol: cc.PhysicsPolygonCollider = null;
countdown: number = 7;
startCount: boolean = false;
lastTouchPos: cc.Vec2 = cc.v2(0, 0);
leftEdge: cc.Vec2 = null;
rightEdge: cc.Vec2 = null;
linePoints: Array<cc.Vec2> = new Array<cc.Vec2>();
leftEdgePoints: Array<cc.Vec2> = new Array<cc.Vec2>();
rightEdgePoints: Array<cc.Vec2> = new Array<cc.Vec2>();
protected onLoad(): void {
cc.director.getPhysicsManager().enabled = true;
cc.director.getCollisionManager().enabled = true;
cc.director.getPhysicsManager().debugDrawFlags = 1;
this.loadPrefab();
this.gameRegion.on(cc.Node.EventType.TOUCH_START, this.onTouchDown, this);
this.gameRegion.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this);
this.gameRegion.on(cc.Node.EventType.TOUCH_END, this.onTouchUp, this);
this.gameRegion.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchUp, this);
}
loadPrefab() {
const newNode = cc.instantiate(this.prefabToLoad);
this.node.addChild(newNode);
this.levelLabel.getComponent(
cc.Label
).string = `Level ${this.prefabToLoad.name}`;
}
onTouchDown(event: cc.Event.EventTouch) {
let touchPos = event.getLocation();
if (this.prefabToLoad.name == "1") {
PracticeLine.instance.node.active = false;
}
this.isDrawing = true;
this.draw = new cc.Node();
this.draw.parent = this.node;
let graphic = this.draw.addComponent(cc.Graphics);
graphic.lineCap = this.graphic.lineCap;
graphic.lineJoin = this.graphic.lineJoin;
this.rb = this.draw.addComponent(cc.RigidBody);
this.rb.type = cc.RigidBodyType.Static;
this.linePoints.length = 0;
this.linePoints.push(touchPos);
this.lastTouchPos = touchPos;
}
onTouchMove(event: cc.Event.EventTouch) {
let touchPos = event.getLocation();
if (
cc.Vec2.distance(touchPos, this.lastTouchPos) >= this.lineMinSegLength
) {
if (this.isDrawing) {
let touchNormal = touchPos.sub(this.lastTouchPos).normalize();
let leftEdgeNormal = Utils.RotateVec2CounterClockwise(touchNormal);
let rightEdgeNormal = Utils.RotateVec2Clockwise(touchNormal);
this.leftEdgePoints.push(
this.lastTouchPos.add(
leftEdgeNormal.multiplyScalar(this.lineWidth / 2)
)
);
this.rightEdgePoints.push(
this.lastTouchPos.add(
rightEdgeNormal.multiplyScalar(this.lineWidth / 2)
)
);
this.lastTouchPos = touchPos;
this.linePoints.push(touchPos);
LimitBar.instance.fillTheBar();
if (LimitBar.instance.progress <= 0) {
this.onTouchUp(event);
} else this.drawLine();
}
}
}
onTouchUp(event: cc.Event.EventTouch) {
if (this.isDrawing) {
let touchPos = event.getLocation();
let touchNormal = touchPos.sub(this.lastTouchPos).normalize();
let leftEdgeNormal = Utils.RotateVec2CounterClockwise(touchNormal);
let rightEdgeNormal = Utils.RotateVec2Clockwise(touchNormal);
this.rbCol = this.draw.addComponent(cc.PhysicsPolygonCollider);
this.leftEdgePoints.push(
touchPos.add(leftEdgeNormal.multiplyScalar(this.lineWidth / 2))
);
this.rightEdgePoints.push(
touchPos.add(rightEdgeNormal.multiplyScalar(this.lineWidth / 2))
);
this.rbCol.points.length = 0;
// this.rbCol.points.push(this.leftEdgePoints[0]);
this.rightEdgePoints.forEach((point) => {
this.rbCol.points.push(this.rbCol.node.convertToNodeSpaceAR(point));
});
this.leftEdgePoints.reverse();
this.leftEdgePoints.forEach((point) => {
this.rbCol.points.push(this.rbCol.node.convertToNodeSpaceAR(point));
});
Drawer.clear();
Drawer.drawArray(this.leftEdgePoints);
Drawer.drawArray(this.rightEdgePoints);
this.rbCol.apply();
this.rb.type = cc.RigidBodyType.Dynamic;
Dog.instance.getComponent(cc.RigidBody).type = cc.RigidBodyType.Dynamic;
Dog.instance.getComponent(cc.Animation).play("DogScare");
Hole.instance.isSpawnable = true;
this.clock.active = true;
this.startCount = true;
this.isDrawing = false;
}
}
protected update(dt: number): void {
if (this.startCount && this.countdown >= 1) {
this.countdown -= 1 * dt;
this.timerLabel.string = Math.floor(this.countdown).toString();
}
if (Dog.instance.attacked || this.countdown < 0) {
this.startCount = false;
this.scheduleOnce(() => {
this.onReloadLevel();
}, 2);
}
if (!Dog.instance.attacked && this.countdown <= 1) {
this.onLevelCompleted();
}
}
onReloadLevel() {
cc.director.loadScene("gameplay");
}
onLevelCompleted() {
Dog.instance.getComponent(cc.Animation).play("DogIdle");
this.levelComp.active = true;
this.shadow.active = true;
if (LimitBar.instance.winStar == 3) {
if (
LocalStorage.getStarAtLevel(parseInt(this.prefabToLoad.name)) <
LimitBar.instance.winStar
) {
LocalStorage.setStarAtLevel(parseInt(this.prefabToLoad.name), 3);
}
}
if (LimitBar.instance.winStar == 2) {
LocalStorage.setStarAtLevel(parseInt(this.prefabToLoad.name), 2);
this.rewardSprite.getComponent(cc.Sprite).spriteFrame =
this.starWinSprites[1];
}
if (LimitBar.instance.winStar == 1) {
LocalStorage.setStarAtLevel(parseInt(this.prefabToLoad.name), 1);
this.rewardSprite.getComponent(cc.Sprite).spriteFrame =
this.starWinSprites[0];
}
}
drawLine() {
let lineDrawer = this.draw.getComponent(cc.Graphics);
if (lineDrawer == null) lineDrawer = this.draw.addComponent(cc.Graphics);
lineDrawer.strokeColor = this.graphic.strokeColor;
lineDrawer.lineWidth = this.graphic.lineWidth;
for (let i = 0; i < this.linePoints.length - 1; i++) {
let p1 = this.linePoints[i];
let p2 = this.linePoints[i + 1];
let p1InLocal = lineDrawer.node.parent.convertToNodeSpaceAR(p1);
let p2InLocal = lineDrawer.node.parent.convertToNodeSpaceAR(p2);
lineDrawer.moveTo(p1InLocal.x, p1InLocal.y);
lineDrawer.lineTo(p2InLocal.x, p2InLocal.y);
lineDrawer.stroke();
}
}
}
{
"ver": "1.1.3",
"uuid": "18ee1e57-51ef-4d0f-971c-702ee96c8073",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
const { ccclass, property } = cc._decorator;
@ccclass
export default class LocalStorage extends cc.Component {
public static setCurrentLevel(value: number) {
cc.sys.localStorage.setItem("SaveTheDoge" + " - " + "CurrentLevel", value);
}
public static getCurrentLevel(): number {
if (
cc.sys.localStorage.getItem("SaveTheDoge" + " - " + "CurrentLevel") ==
null
) {
cc.sys.localStorage.setItem("SaveTheDoge" + " - " + "CurrentLevel", 0);
return 0;
} else
return JSON.parse(
cc.sys.localStorage.getItem("SaveTheDoge" + " - " + "CurrentLevel")
);
}
public static setHighestLevel(value: number) {
cc.sys.localStorage.setItem("SaveTheDoge" + " - " + "HighestLevel", value);
}
public static getHighestLevel(): number {
if (
cc.sys.localStorage.getItem("SaveTheDoge" + " - " + "HighestLevel") ==
null
) {
cc.sys.localStorage.setItem("SaveTheDoge" + " - " + "HighestLevel", 1);
return 1;
} else
return JSON.parse(
cc.sys.localStorage.getItem("SaveTheDoge" + " - " + "HighestLevel")
);
}
public static getStarAtLevel(level: number): number {
if (
cc.sys.localStorage.getItem(
"SaveTheDoge" + " - " + "Level " + level.toString()
) == null
) {
cc.sys.localStorage.setItem(
"SaveTheDoge" + " - " + "Level " + level.toString(),
0
);
return 0;
} else
return JSON.parse(
cc.sys.localStorage.getItem(
"SaveTheDoge" + " - " + "Level " + level.toString()
)
);
}
public static setStarAtLevel(level: number, starValue: number) {
cc.sys.localStorage.setItem(
"SaveTheDoge" + " - " + "Level " + level.toString(),
starValue
);
}
public static getAllStar(): number {
if (
cc.sys.localStorage.getItem("SaveTheDoge" + " - " + "AllStar") == null
) {
cc.sys.localStorage.setItem("SaveTheDoge" + " - " + "AllStar", 0);
return 0;
} else
return JSON.parse(
cc.sys.localStorage.getItem("SaveTheDoge" + " - " + "AllStar")
);
}
public static setAllStar() {
cc.sys.localStorage.setItem("SaveTheDoge" + " - " + "AllStar");
}
}
{
"ver": "1.1.0",
"uuid": "3e28f2cf-53dc-4963-8802-dc4427a93371",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
// Learn TypeScript:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
const { ccclass, property } = cc._decorator;
@ccclass
export default class Drawer extends cc.Component {
private static _graphic: cc.Graphics = null;
public static clear() {
if (this._graphic == null) return;
this._graphic.clear();
}
public static drawLine(
pointA: cc.Vec2,
pointB: cc.Vec2,
color: cc.Color = cc.Color.WHITE
) {
if (this._graphic == null) {
this._graphic = new cc.Node().addComponent(cc.Graphics);
this._graphic.node.parent = cc.Canvas.instance.node.parent;
}
this._graphic.strokeColor = color;
this._graphic.moveTo(pointA.x, pointA.y);
this._graphic.lineTo(pointB.x, pointB.y);
this._graphic.stroke();
}
public static drawLineOnY(yValue: number, color: cc.Color = cc.Color.WHITE) {
if (this._graphic == null) {
this._graphic = new cc.Node().addComponent(cc.Graphics);
this._graphic.node.parent = cc.Canvas.instance.node.parent;
}
this._graphic.strokeColor = color;
this._graphic.moveTo(0, yValue);
this._graphic.lineTo(cc.view.getDesignResolutionSize().width, yValue);
this._graphic.stroke();
}
public static drawRect(rect: cc.Rect) {
Drawer.drawLine(cc.v2(rect.x, rect.y), cc.v2(rect.x + rect.width, rect.y));
Drawer.drawLine(cc.v2(rect.x, rect.y), cc.v2(rect.x, rect.y + rect.height));
Drawer.drawLine(
cc.v2(rect.x + rect.width, rect.y + rect.height),
cc.v2(rect.x + rect.width, rect.y)
);
Drawer.drawLine(
cc.v2(rect.x + rect.width, rect.y + rect.height),
cc.v2(rect.x, rect.y + rect.height)
);
}
public static drawArray(array: Array<cc.Vec2>) {
for (let i = 1; i < array.length; i++) {
this.drawLine(array[i - 1], array[i]);
}
}
}
{
"ver": "1.1.0",
"uuid": "bc9b8781-2f27-4e4a-99a3-d68493af5f58",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
import Bee from "./Bee";
import Dog from "./Dog";
import Hole from "./Hole";
import LimitBar from "./LimitBar";
const { ccclass, property } = cc._decorator;
@ccclass
export default class GamePlay extends cc.Component {
@property(cc.Prefab) prefabToLoad: cc.Prefab = null;
@property(cc.Node) gameRegion: cc.Node = null;
@property(cc.Graphics) graphic: cc.Graphics = null;
@property(cc.Label) timerLabel: cc.Label = null;
@property(cc.Node) clock: cc.Node = null;
@property(cc.Node) levelLabel: cc.Node = null;
@property(cc.Node) shadow: cc.Node = null;
@property(cc.Node) light: cc.Node = null;
@property(cc.Node) title: cc.Node = null;
@property(cc.Node) earnedCoin: cc.Node = null;
@property(cc.Node) earnedCoinLabel: cc.Node = null;
@property(cc.Node) buttonCollect: cc.Node = null;
@property(cc.Node) star: cc.Node = null;
@property(cc.Node) starLabel: cc.Node = null;
@property(cc.Node) rewardSprite: cc.Node = null;
@property(cc.SpriteFrame) win2Star: cc.SpriteFrame = null;
@property(cc.SpriteFrame) win1Star: cc.SpriteFrame = null;
isDrawing: boolean = true;
draw: cc.Node = null;
rb = null;
chain = null;
countdown: number = 7;
startCount: boolean = false;
protected onLoad(): void {
cc.director.getPhysicsManager().enabled = true;
cc.director.getCollisionManager().enabled = true;
// cc.director.getPhysicsManager().debugDrawFlags = 1;
this.loadPrefab();
this.gameRegion.on(cc.Node.EventType.TOUCH_START, this.onTouchDown, this);
this.gameRegion.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this);
this.gameRegion.on(cc.Node.EventType.TOUCH_END, this.onTouchUp, this);
this.gameRegion.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchUp, this);
}
loadPrefab() {
const newNode = cc.instantiate(this.prefabToLoad);
this.node.addChild(newNode);
this.levelLabel.getComponent(cc.Label).string = this.prefabToLoad.name;
}
onTouchDown(event) {
if (this.prefabToLoad.name == "Level 1") {
this.prefabToLoad.data.children[3].active = false;
}
console.log(this.prefabToLoad.data.getChildByName("PracticeLine").active);
this.draw = new cc.Node();
this.draw.parent = this.node;
this.draw.addComponent(cc.Graphics);
this.rb = this.draw.addComponent(cc.RigidBody);
this.rb.type = cc.RigidBodyType.Static;
this.chain = this.draw.addComponent(cc.PhysicsChainCollider);
this.chain.points = [event.getLocation()];
}
onTouchMove(event) {
if (this.isDrawing) {
this.chain.points.push(event.getLocation());
LimitBar.instance.fillTheBar();
if (LimitBar.instance.progress <= 0) {
this.onTouchUp();
} else this.drawLine();
}
}
onTouchUp() {
this.isDrawing = false;
// this.rb.type = cc.RigidBodyType.Dynamic;
this.rb.allowSleep = false;
this.rb.enabledContactListener = true;
Dog.instance.getComponent(cc.Animation).play("DogScare");
this.chain.apply();
Hole.instance.isSpawnable = true;
this.clock.active = true;
this.startCount = true;
}
protected update(dt: number): void {
if (this.startCount && this.countdown >= 1) {
this.countdown -= 1 * dt;
this.timerLabel.string = Math.floor(this.countdown).toString();
}
if (Dog.instance.attacked || this.countdown < 0) this.startCount == false;
if (Dog.instance.attacked == false && this.countdown <= 1) {
this.onLevelCompleted();
}
}
onLevelCompleted() {
Dog.instance.getComponent(cc.Animation).play("DogIdle");
this.shadow.active = true;
this.light.active = true;
this.title.active = true;
this.earnedCoin.active = true;
this.earnedCoinLabel.active = true;
this.buttonCollect.active = true;
this.star.active = true;
this.starLabel.active = true;
this.rewardSprite.active = true;
if (LimitBar.instance.winStar == 2) {
this.rewardSprite.getComponent(cc.Sprite).spriteFrame = this.win2Star;
}
if (LimitBar.instance.winStar == 1) {
this.rewardSprite.getComponent(cc.Sprite).spriteFrame = this.win1Star;
}
}
drawLine() {
if (this.chain.points.length < 3) return;
let lineComponent = this.draw.getComponent(cc.Graphics);
if (lineComponent == null)
lineComponent = this.draw.addComponent(cc.Graphics);
lineComponent.strokeColor = cc.Color.BLACK;
lineComponent.lineWidth = 13;
for (let i = 0; i < this.chain.points.length - 1; i++) {
let p1 = this.chain.points[i];
let p2 = this.chain.points[i + 1];
let p1InLocal = this.node.convertToNodeSpaceAR(p1);
let p2InLocal = this.node.convertToNodeSpaceAR(p2);
lineComponent.moveTo(p1InLocal.x, p1InLocal.y);
lineComponent.lineTo(p2InLocal.x, p2InLocal.y);
lineComponent.stroke();
}
}
}
{
"ver": "1.1.3",
"uuid": "53295653-608e-4c63-9e03-0342e432b298",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
import Dog from "./Dog";
const { ccclass, property } = cc._decorator;
@ccclass
......
const { ccclass, property } = cc._decorator;
@ccclass
export default class PracticeLine extends cc.Component {
static instance: PracticeLine;
protected onLoad(): void {
PracticeLine.instance = this;
}
}
{
"ver": "1.1.0",
"uuid": "5584a517-1f61-403d-aefe-04b26ee3f29a",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
......@@ -6,6 +6,4 @@ export default class TestPhysic extends cc.Component {
cc.director.getPhysicsManager().enabled = true;
cc.director.getCollisionManager().enabled = true;
}
}
const { ccclass, property } = cc._decorator;
@ccclass
export default class Utils extends cc.Component {
public static BACKGROUND_WHITE_COLOR: string = "ebfaff";
public static worldSpaceToLocal(worldSpace: cc.Vec2, local: Node) {}
public static getRandomRainbowColor(): cc.Color {
var primaryColor = this.random(0, 2);
var secondaryColor = this.random(0, 2);
var colorAsArray = [0, 0, 0];
colorAsArray[secondaryColor] = this.random(0, 255);
colorAsArray[primaryColor] = 255;
return cc.color(colorAsArray[0], colorAsArray[1], colorAsArray[2]);
}
public static getOneOrMinusOne() {
return this.random(0, 1) == 1 ? 1 : -1;
}
public static Vec2ToAngle(vec2: cc.Vec2): number {
return (Math.atan2(vec2.y, vec2.x) * 180) / Math.PI;
}
public static RotateVec2Clockwise(vec2: cc.Vec2): cc.Vec2 {
return cc.v2(vec2.y, -vec2.x);
}
public static RotateVec2CounterClockwise(vec2: cc.Vec2): cc.Vec2 {
return cc.v2(-vec2.y, vec2.x);
}
public static random(minInclusive: number, maxInclusive: number): number {
return (
Math.floor(Math.random() * (maxInclusive - minInclusive + 1)) +
minInclusive
);
}
public static booleanRandom(
trueChance: number = 1,
totalChance: number = 1
): boolean {
if (this.random(0, totalChance) <= trueChance) return true;
else return false;
}
}
{
"ver": "1.1.0",
"uuid": "28792beb-4323-4106-95b6-63bdd516bf20",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"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