Commit c3ca71ee authored by Vũ Gia Vương's avatar Vũ Gia Vương

add tutorial rotate

parent 3811eacc
...@@ -78,28 +78,28 @@ ...@@ -78,28 +78,28 @@
"__id__": 11 "__id__": 11
}, },
{ {
"__id__": 60 "__id__": 64
}, },
{ {
"__id__": 71 "__id__": 75
}, },
{ {
"__id__": 24 "__id__": 28
}, },
{ {
"__id__": 73 "__id__": 77
}, },
{ {
"__id__": 90 "__id__": 94
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 100 "__id__": 104
}, },
{ {
"__id__": 101 "__id__": 105
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -538,12 +538,15 @@ ...@@ -538,12 +538,15 @@
}, },
{ {
"__id__": 15 "__id__": 15
},
{
"__id__": 22
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 22 "__id__": 26
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1084,6 +1087,176 @@ ...@@ -1084,6 +1087,176 @@
}, },
"_id": "009jyGf0JGyaWytJquX/r/" "_id": "009jyGf0JGyaWytJquX/r/"
}, },
{
"__type__": "cc.Node",
"_name": "Tutorial",
"_objFlags": 0,
"_parent": {
"__id__": 11
},
"_children": [
{
"__id__": 23
}
],
"_active": true,
"_components": [
{
"__id__": 25
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-500,
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": "97sNH79uhIq7vAkr+CJfT3"
},
{
"__type__": "cc.Node",
"_name": "hand",
"_objFlags": 0,
"_parent": {
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 215,
"height": 291
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0
},
"_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": "0d9be35hlG4IWSoxzsggvA"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "bb4b8653-efdf-49ce-b06e-3e199eddbc6f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "3acfhv1OhPAYoRVG4bL+nM"
},
{
"__type__": "3bfa6XaM1BBHaYcmhPbj7Up",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_id": "99fWoGTUJKz76BlZwBaPbt"
},
{ {
"__type__": "4cdbdL97VxHIokBkhUMm2qL", "__type__": "4cdbdL97VxHIokBkhUMm2qL",
"_name": "", "_name": "",
...@@ -1096,10 +1269,10 @@ ...@@ -1096,10 +1269,10 @@
"__id__": 15 "__id__": 15
}, },
"contentNode": { "contentNode": {
"__id__": 23 "__id__": 27
}, },
"checkedNode": { "checkedNode": {
"__id__": 31 "__id__": 35
}, },
"_id": "12WntYtI5C+bsPwyWnA236" "_id": "12WntYtI5C+bsPwyWnA236"
}, },
...@@ -1108,12 +1281,9 @@ ...@@ -1108,12 +1281,9 @@
"_name": "Conttent", "_name": "Conttent",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 24 "__id__": 28
}, },
"_children": [ "_children": [
{
"__id__": 42
},
{ {
"__id__": 46 "__id__": 46
}, },
...@@ -1122,15 +1292,18 @@ ...@@ -1122,15 +1292,18 @@
}, },
{ {
"__id__": 54 "__id__": 54
},
{
"__id__": 58
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 58 "__id__": 62
}, },
{ {
"__id__": 59 "__id__": 63
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1190,31 +1363,31 @@ ...@@ -1190,31 +1363,31 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 25 "__id__": 29
}, },
{ {
"__id__": 27 "__id__": 31
}, },
{ {
"__id__": 29 "__id__": 33
}, },
{ {
"__id__": 23 "__id__": 27
}, },
{ {
"__id__": 31 "__id__": 35
}, },
{ {
"__id__": 33 "__id__": 37
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 40 "__id__": 44
}, },
{ {
"__id__": 41 "__id__": 45
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1270,13 +1443,13 @@ ...@@ -1270,13 +1443,13 @@
"_name": "Mask", "_name": "Mask",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 24 "__id__": 28
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 26 "__id__": 30
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1332,7 +1505,7 @@ ...@@ -1332,7 +1505,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 25 "__id__": 29
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1364,13 +1537,13 @@ ...@@ -1364,13 +1537,13 @@
"_name": "BG", "_name": "BG",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 24 "__id__": 28
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 28 "__id__": 32
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1426,7 +1599,7 @@ ...@@ -1426,7 +1599,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 27 "__id__": 31
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1458,13 +1631,13 @@ ...@@ -1458,13 +1631,13 @@
"_name": "Title", "_name": "Title",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 24 "__id__": 28
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 30 "__id__": 34
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1520,7 +1693,7 @@ ...@@ -1520,7 +1693,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 29 "__id__": 33
}, },
"_enabled": false, "_enabled": false,
"_materials": [ "_materials": [
...@@ -1553,13 +1726,13 @@ ...@@ -1553,13 +1726,13 @@
"_name": "Checked", "_name": "Checked",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 24 "__id__": 28
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 32 "__id__": 36
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1615,7 +1788,7 @@ ...@@ -1615,7 +1788,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 31 "__id__": 35
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1647,17 +1820,17 @@ ...@@ -1647,17 +1820,17 @@
"_name": "OkButton", "_name": "OkButton",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 24 "__id__": 28
}, },
"_children": [ "_children": [
{ {
"__id__": 34 "__id__": 38
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 39 "__id__": 43
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1713,20 +1886,20 @@ ...@@ -1713,20 +1886,20 @@
"_name": "Background", "_name": "Background",
"_objFlags": 512, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 33 "__id__": 37
}, },
"_children": [ "_children": [
{ {
"__id__": 35 "__id__": 39
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 37 "__id__": 41
}, },
{ {
"__id__": 38 "__id__": 42
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1782,13 +1955,13 @@ ...@@ -1782,13 +1955,13 @@
"_name": "Label", "_name": "Label",
"_objFlags": 512, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 34 "__id__": 38
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 36 "__id__": 40
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -1844,7 +2017,7 @@ ...@@ -1844,7 +2017,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 35 "__id__": 39
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1879,7 +2052,7 @@ ...@@ -1879,7 +2052,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 34 "__id__": 38
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -1911,7 +2084,7 @@ ...@@ -1911,7 +2084,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 34 "__id__": 38
}, },
"_enabled": true, "_enabled": true,
"alignMode": 0, "alignMode": 0,
...@@ -1938,7 +2111,7 @@ ...@@ -1938,7 +2111,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 33 "__id__": 37
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -2011,7 +2184,7 @@ ...@@ -2011,7 +2184,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
}, },
"_N$target": { "_N$target": {
"__id__": 34 "__id__": 38
}, },
"_id": "e8Z5R1m9xLJZ0M9KGeyDSC" "_id": "e8Z5R1m9xLJZ0M9KGeyDSC"
}, },
...@@ -2020,7 +2193,7 @@ ...@@ -2020,7 +2193,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 24 "__id__": 28
}, },
"_enabled": true, "_enabled": true,
"_id": "f1aq5xMrVN341tWAhOykW0" "_id": "f1aq5xMrVN341tWAhOykW0"
...@@ -2030,7 +2203,7 @@ ...@@ -2030,7 +2203,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 24 "__id__": 28
}, },
"_enabled": true, "_enabled": true,
"_id": "69dYJ1wBlP5Z6QRZCRykh8" "_id": "69dYJ1wBlP5Z6QRZCRykh8"
...@@ -2040,17 +2213,17 @@ ...@@ -2040,17 +2213,17 @@
"_name": "box copy", "_name": "box copy",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 23 "__id__": 27
}, },
"_children": [ "_children": [
{ {
"__id__": 43 "__id__": 47
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 45 "__id__": 49
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2106,13 +2279,13 @@ ...@@ -2106,13 +2279,13 @@
"_name": "ga", "_name": "ga",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 42 "__id__": 46
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 44 "__id__": 48
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2168,7 +2341,7 @@ ...@@ -2168,7 +2341,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 43 "__id__": 47
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2210,7 +2383,7 @@ ...@@ -2210,7 +2383,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 42 "__id__": 46
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2242,17 +2415,17 @@ ...@@ -2242,17 +2415,17 @@
"_name": "box copy", "_name": "box copy",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 23 "__id__": 27
}, },
"_children": [ "_children": [
{ {
"__id__": 47 "__id__": 51
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 49 "__id__": 53
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2308,13 +2481,13 @@ ...@@ -2308,13 +2481,13 @@
"_name": "gai lung", "_name": "gai lung",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 46 "__id__": 50
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 48 "__id__": 52
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2370,7 +2543,7 @@ ...@@ -2370,7 +2543,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 47 "__id__": 51
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2412,7 +2585,7 @@ ...@@ -2412,7 +2585,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 46 "__id__": 50
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2444,17 +2617,17 @@ ...@@ -2444,17 +2617,17 @@
"_name": "box copy", "_name": "box copy",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 23 "__id__": 27
}, },
"_children": [ "_children": [
{ {
"__id__": 51 "__id__": 55
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 53 "__id__": 57
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2510,13 +2683,13 @@ ...@@ -2510,13 +2683,13 @@
"_name": "gay", "_name": "gay",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 50 "__id__": 54
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 52 "__id__": 56
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2572,7 +2745,7 @@ ...@@ -2572,7 +2745,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 51 "__id__": 55
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2614,7 +2787,7 @@ ...@@ -2614,7 +2787,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 50 "__id__": 54
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2646,17 +2819,17 @@ ...@@ -2646,17 +2819,17 @@
"_name": "box", "_name": "box",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 23 "__id__": 27
}, },
"_children": [ "_children": [
{ {
"__id__": 55 "__id__": 59
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 57 "__id__": 61
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2712,13 +2885,13 @@ ...@@ -2712,13 +2885,13 @@
"_name": "Bua", "_name": "Bua",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 54 "__id__": 58
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 56 "__id__": 60
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2774,7 +2947,7 @@ ...@@ -2774,7 +2947,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 55 "__id__": 59
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2816,7 +2989,7 @@ ...@@ -2816,7 +2989,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 54 "__id__": 58
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -2848,7 +3021,7 @@ ...@@ -2848,7 +3021,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 23 "__id__": 27
}, },
"_enabled": false, "_enabled": false,
"_materials": [ "_materials": [
...@@ -2880,7 +3053,7 @@ ...@@ -2880,7 +3053,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 23 "__id__": 27
}, },
"_enabled": true, "_enabled": true,
"_layoutSize": { "_layoutSize": {
...@@ -2916,19 +3089,19 @@ ...@@ -2916,19 +3089,19 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 61 "__id__": 65
}, },
{ {
"__id__": 64 "__id__": 68
}, },
{ {
"__id__": 66 "__id__": 70
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 70 "__id__": 74
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -2984,16 +3157,16 @@ ...@@ -2984,16 +3157,16 @@
"_name": "Chum", "_name": "Chum",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 60 "__id__": 64
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 62 "__id__": 66
}, },
{ {
"__id__": 63 "__id__": 67
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3049,7 +3222,7 @@ ...@@ -3049,7 +3222,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 61 "__id__": 65
}, },
"_enabled": true, "_enabled": true,
"_id": "32Nb7fXTdNIYe2FGNiHQD8" "_id": "32Nb7fXTdNIYe2FGNiHQD8"
...@@ -3059,7 +3232,7 @@ ...@@ -3059,7 +3232,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 61 "__id__": 65
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3101,13 +3274,13 @@ ...@@ -3101,13 +3274,13 @@
"_name": "hu", "_name": "hu",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 60 "__id__": 64
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 65 "__id__": 69
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3163,7 +3336,7 @@ ...@@ -3163,7 +3336,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 64 "__id__": 68
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3205,17 +3378,17 @@ ...@@ -3205,17 +3378,17 @@
"_name": "buaPos", "_name": "buaPos",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 60 "__id__": 64
}, },
"_children": [ "_children": [
{ {
"__id__": 67 "__id__": 71
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 69 "__id__": 73
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3271,13 +3444,13 @@ ...@@ -3271,13 +3444,13 @@
"_name": "Bua", "_name": "Bua",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 66 "__id__": 70
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 68 "__id__": 72
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3333,7 +3506,7 @@ ...@@ -3333,7 +3506,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 67 "__id__": 71
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3375,7 +3548,7 @@ ...@@ -3375,7 +3548,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 66 "__id__": 70
}, },
"_enabled": true, "_enabled": true,
"_id": "74FwAooblKp5Uz0cmQR1wo" "_id": "74FwAooblKp5Uz0cmQR1wo"
...@@ -3385,14 +3558,14 @@ ...@@ -3385,14 +3558,14 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 60 "__id__": 64
}, },
"_enabled": true, "_enabled": true,
"bottleIdle": { "bottleIdle": {
"__id__": 64 "__id__": 68
}, },
"bottleAction": { "bottleAction": {
"__id__": 61 "__id__": 65
}, },
"_id": "45yzC1EPtJP4Z8W/DF1iwD" "_id": "45yzC1EPtJP4Z8W/DF1iwD"
}, },
...@@ -3407,7 +3580,7 @@ ...@@ -3407,7 +3580,7 @@
"_active": false, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 72 "__id__": 76
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3463,7 +3636,7 @@ ...@@ -3463,7 +3636,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 71 "__id__": 75
}, },
"_enabled": true, "_enabled": true,
"_id": "96hHP+ssxLNpn8/i2AKAyI" "_id": "96hHP+ssxLNpn8/i2AKAyI"
...@@ -3477,25 +3650,25 @@ ...@@ -3477,25 +3650,25 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 74 "__id__": 78
}, },
{ {
"__id__": 76 "__id__": 80
}, },
{ {
"__id__": 79 "__id__": 83
}, },
{ {
"__id__": 81 "__id__": 85
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 88 "__id__": 92
}, },
{ {
"__id__": 89 "__id__": 93
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3551,13 +3724,13 @@ ...@@ -3551,13 +3724,13 @@
"_name": "Mask copy", "_name": "Mask copy",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 73 "__id__": 77
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 75 "__id__": 79
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3613,7 +3786,7 @@ ...@@ -3613,7 +3786,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 74 "__id__": 78
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3645,16 +3818,16 @@ ...@@ -3645,16 +3818,16 @@
"_name": "The", "_name": "The",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 73 "__id__": 77
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 77 "__id__": 81
}, },
{ {
"__id__": 78 "__id__": 82
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3710,7 +3883,7 @@ ...@@ -3710,7 +3883,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 76 "__id__": 80
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3752,7 +3925,7 @@ ...@@ -3752,7 +3925,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 76 "__id__": 80
}, },
"_enabled": true, "_enabled": true,
"_id": "8aU9CpQKRFmJMSMUCpaItu" "_id": "8aU9CpQKRFmJMSMUCpaItu"
...@@ -3762,13 +3935,13 @@ ...@@ -3762,13 +3935,13 @@
"_name": "text1", "_name": "text1",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 73 "__id__": 77
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 80 "__id__": 84
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3824,7 +3997,7 @@ ...@@ -3824,7 +3997,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 79 "__id__": 83
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -3856,17 +4029,17 @@ ...@@ -3856,17 +4029,17 @@
"_name": "Replay Button", "_name": "Replay Button",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 73 "__id__": 77
}, },
"_children": [ "_children": [
{ {
"__id__": 82 "__id__": 86
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 87 "__id__": 91
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3922,20 +4095,20 @@ ...@@ -3922,20 +4095,20 @@
"_name": "Background", "_name": "Background",
"_objFlags": 512, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 81 "__id__": 85
}, },
"_children": [ "_children": [
{ {
"__id__": 83 "__id__": 87
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 85 "__id__": 89
}, },
{ {
"__id__": 86 "__id__": 90
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3991,13 +4164,13 @@ ...@@ -3991,13 +4164,13 @@
"_name": "Label", "_name": "Label",
"_objFlags": 512, "_objFlags": 512,
"_parent": { "_parent": {
"__id__": 82 "__id__": 86
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 84 "__id__": 88
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4053,7 +4226,7 @@ ...@@ -4053,7 +4226,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 83 "__id__": 87
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4088,7 +4261,7 @@ ...@@ -4088,7 +4261,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 82 "__id__": 86
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -4120,7 +4293,7 @@ ...@@ -4120,7 +4293,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 82 "__id__": 86
}, },
"_enabled": true, "_enabled": true,
"alignMode": 0, "alignMode": 0,
...@@ -4147,7 +4320,7 @@ ...@@ -4147,7 +4320,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 81 "__id__": 85
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
...@@ -4220,7 +4393,7 @@ ...@@ -4220,7 +4393,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
}, },
"_N$target": { "_N$target": {
"__id__": 82 "__id__": 86
}, },
"_id": "adCMRaOEVD5LOjd7MAm9EO" "_id": "adCMRaOEVD5LOjd7MAm9EO"
}, },
...@@ -4229,7 +4402,7 @@ ...@@ -4229,7 +4402,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 73 "__id__": 77
}, },
"_enabled": true, "_enabled": true,
"_id": "bcaw0ZNyRPGoK8ATotq1yF" "_id": "bcaw0ZNyRPGoK8ATotq1yF"
...@@ -4239,7 +4412,7 @@ ...@@ -4239,7 +4412,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 73 "__id__": 77
}, },
"_enabled": true, "_enabled": true,
"_id": "17J7OqMb1NsbF4iJiNTrDS" "_id": "17J7OqMb1NsbF4iJiNTrDS"
...@@ -4253,22 +4426,22 @@ ...@@ -4253,22 +4426,22 @@
}, },
"_children": [ "_children": [
{ {
"__id__": 91 "__id__": 95
}, },
{ {
"__id__": 93 "__id__": 97
}, },
{ {
"__id__": 95 "__id__": 99
}, },
{ {
"__id__": 97 "__id__": 101
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 99 "__id__": 103
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4324,13 +4497,13 @@ ...@@ -4324,13 +4497,13 @@
"_name": "beer-bottle-rolling-on-a-sidewalk-82234", "_name": "beer-bottle-rolling-on-a-sidewalk-82234",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 90 "__id__": 94
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 92 "__id__": 96
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4386,7 +4559,7 @@ ...@@ -4386,7 +4559,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 91 "__id__": 95
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -4405,13 +4578,13 @@ ...@@ -4405,13 +4578,13 @@
"_name": "Cartoon Short Version 2_01", "_name": "Cartoon Short Version 2_01",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 90 "__id__": 94
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 94 "__id__": 98
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4467,7 +4640,7 @@ ...@@ -4467,7 +4640,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 93 "__id__": 97
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -4486,13 +4659,13 @@ ...@@ -4486,13 +4659,13 @@
"_name": "tieng_va_cham_chai_thuy_tinh-www_tiengdong_com", "_name": "tieng_va_cham_chai_thuy_tinh-www_tiengdong_com",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 90 "__id__": 94
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 96 "__id__": 100
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4548,7 +4721,7 @@ ...@@ -4548,7 +4721,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 95 "__id__": 99
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -4567,13 +4740,13 @@ ...@@ -4567,13 +4740,13 @@
"_name": "breaking-a-vase-remix-87091", "_name": "breaking-a-vase-remix-87091",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 90 "__id__": 94
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 98 "__id__": 102
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -4629,7 +4802,7 @@ ...@@ -4629,7 +4802,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 97 "__id__": 101
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -4648,17 +4821,17 @@ ...@@ -4648,17 +4821,17 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 90 "__id__": 94
}, },
"_enabled": true, "_enabled": true,
"rollingSound": { "rollingSound": {
"__id__": 92 "__id__": 96
}, },
"breakingSound": { "breakingSound": {
"__id__": 98 "__id__": 102
}, },
"dropSound": { "dropSound": {
"__id__": 96 "__id__": 100
}, },
"_id": "a5vu6IE1ROn6VO7UPM9J3p" "_id": "a5vu6IE1ROn6VO7UPM9J3p"
}, },
......
{
"ver": "1.1.2",
"uuid": "63d032ad-e87d-42a0-84a8-137e2034682c",
"importer": "ttf-font",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.7",
"uuid": "5ccefdb7-c84d-4e62-a98c-1251745e4ee3",
"importer": "texture",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 215,
"height": 291,
"platformSettings": {},
"subMetas": {
"hand": {
"ver": "1.0.6",
"uuid": "bb4b8653-efdf-49ce-b06e-3e199eddbc6f",
"importer": "sprite-frame",
"rawTextureUuid": "5ccefdb7-c84d-4e62-a98c-1251745e4ee3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 215,
"height": 291,
"rawWidth": 215,
"rawHeight": 291,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
...@@ -15,3 +15,6 @@ export const PLAY_ANIM_NUT1 = 'PLAY_ANIM_NUT1'; ...@@ -15,3 +15,6 @@ export const PLAY_ANIM_NUT1 = 'PLAY_ANIM_NUT1';
export const PLAY_ANIM_NUT2 = 'PLAY_ANIM_NUT2'; export const PLAY_ANIM_NUT2 = 'PLAY_ANIM_NUT2';
export const PLAY_ANIM_NUT3 = 'PLAY_ANIM_NUT3'; export const PLAY_ANIM_NUT3 = 'PLAY_ANIM_NUT3';
export const PLAY_ANIM_NUT4 = 'PLAY_ANIM_NUT4'; export const PLAY_ANIM_NUT4 = 'PLAY_ANIM_NUT4';
export const ROTATE_GUILD = 'ROTATE_GUILD';
export const STOP_GUILD = 'STOP_GUILD';
\ No newline at end of file
import { eventTarget, PLAY_ROLLING_SOUND } from "../Events"; import { eventTarget, PLAY_ROLLING_SOUND, ROTATE_GUILD, STOP_GUILD } from "../Events";
import { TrackEntry } from "../Utils";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
...@@ -12,6 +13,7 @@ export default class HuController extends cc.Component { ...@@ -12,6 +13,7 @@ export default class HuController extends cc.Component {
private _z: number = 0; private _z: number = 0;
private _count = 0; private _count = 0;
private _isShake = false; private _isShake = false;
private _track: TrackEntry = null;
protected onLoad(): void { protected onLoad(): void {
this._spine = this.node.getComponent(sp.Skeleton); this._spine = this.node.getComponent(sp.Skeleton);
...@@ -19,6 +21,7 @@ export default class HuController extends cc.Component { ...@@ -19,6 +21,7 @@ export default class HuController extends cc.Component {
this.node.on(cc.Node.EventType.TOUCH_START, this.onTouchStart, this); this.node.on(cc.Node.EventType.TOUCH_START, this.onTouchStart, this);
this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this) this.node.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this)
this.node.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this) this.node.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this)
eventTarget.on(ROTATE_GUILD, this.onRotateGuild, this);
this._spine.setCompleteListener(() => { this._spine.setCompleteListener(() => {
console.log('setCompleteListener',) console.log('setCompleteListener',)
...@@ -30,15 +33,25 @@ export default class HuController extends cc.Component { ...@@ -30,15 +33,25 @@ export default class HuController extends cc.Component {
this.initBottle(); this.initBottle();
} }
private onRotateGuild() {
this._spine.timeScale = 0.5;
this.scheduleOnce(() => {
this._track.trackTime = this._track.animationEnd / 4;
this._spine.timeScale = 0;
}, 1.2);
}
private initBottle() { private initBottle() {
this.setRotateAnim(); this.setRotateAnim();
let state = this._spine.getState(); let state = this._spine.getState();
let track = state.tracks[1]; this._track = state.tracks[1];
track.trackTime = 3 / 4; this._track.trackTime = this._track.animationEnd / 4;
this._spine.timeScale = 0; this._spine.timeScale = 0;
} }
private onTouchStart(event: cc.Event.EventTouch): void { private onTouchStart(event: cc.Event.EventTouch): void {
eventTarget.emit(STOP_GUILD);
// if (!this._pointStart) { // if (!this._pointStart) {
// this.setRotateAnim(); // this.setRotateAnim();
// } // }
......
import { eventTarget, ROTATE_GUILD, STOP_GUILD } from "../Events";
const { ccclass, property } = cc._decorator;
@ccclass
export default class TutorialController extends cc.Component {
private _hand: cc.Node;
protected onLoad(): void {
[this._hand] = this.node.children;
this.tutorialRotate();
eventTarget.on(STOP_GUILD, this.stopGuild, this);
}
private stopGuild() {
cc.Tween.stopAllByTarget(this._hand);
this._hand.active = false;
}
private tutorialRotate() {
this._hand.active = true;
cc.tween(this._hand)
.repeatForever(cc.tween(this._hand)
.to(0, { position: cc.v3(350) }, { easing: 'easingOutQuad' })
.to(0.5, { angle: -10 }, { easing: 'easingInQuad' })
.to(0.5, { angle: 15 })
.call(() => eventTarget.emit(ROTATE_GUILD))
.to(1.2, { position: cc.v3(-150) })
)
.start();
}
}
{
"ver": "1.1.0",
"uuid": "3bfa65da-3350-411d-a61c-9a13db8fb529",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
export interface TrackEntry {
alpha: number,
animation: null
animationEnd: number,
animationLast: number,
animationStart: number,
attachmentThreshold: number,
delay: number,
drawOrderThreshold: number,
eventThreshold: number,
holdPrevious: false
interruptAlpha: number,
listener: null
loop: false
mixBlend: number,
mixDuration: number,
mixTime: number,
mixingFrom: null
mixingTo: null
next: null
nextAnimationLast: number,
nextTrackLast: number,
timeScale: number,
timelineHoldMix: []
timelineMode: []
timelinesRotation: []
totalAlpha: number,
trackEnd: number,
trackIndex: number,
trackLast: number,
trackTime: number,
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "1e4fae74-9c0b-4bd5-8c84-597f7cd02dc9",
"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