Commit f350e187 authored by linzhiguo's avatar linzhiguo

+ 音效

parent 5a614b84
......@@ -17,16 +17,16 @@
"__id__": 2
},
{
"__id__": 125
"__id__": 139
},
{
"__id__": 138
"__id__": 152
},
{
"__id__": 37
},
{
"__id__": 144
"__id__": 158
}
],
"_active": false,
......@@ -105,31 +105,31 @@
"__id__": 27
},
{
"__id__": 96
"__id__": 110
},
{
"__id__": 103
"__id__": 117
},
{
"__id__": 110
"__id__": 124
},
{
"__id__": 117
"__id__": 131
},
{
"__id__": 118
"__id__": 132
}
],
"_active": true,
"_components": [
{
"__id__": 122
"__id__": 136
},
{
"__id__": 123
"__id__": 137
},
{
"__id__": 124
"__id__": 138
}
],
"_prefab": null,
......@@ -1326,7 +1326,7 @@
"_active": true,
"_components": [
{
"__id__": 95
"__id__": 109
}
],
"_prefab": null,
......@@ -1686,31 +1686,31 @@
},
"_children": [
{
"__id__": 56
"__id__": 70
},
{
"__id__": 68
"__id__": 82
},
{
"__id__": 74
"__id__": 88
},
{
"__id__": 80
"__id__": 94
},
{
"__id__": 88
"__id__": 102
},
{
"__id__": 90
"__id__": 104
}
],
"_active": true,
"_components": [
{
"__id__": 93
"__id__": 107
},
{
"__id__": 94
"__id__": 108
}
],
"_prefab": null,
......@@ -1776,7 +1776,7 @@
"__id__": 36
},
{
"__id__": 41
"__id__": 55
}
],
"_active": true,
......@@ -1839,6 +1839,27 @@
"_children": [
{
"__id__": 39
},
{
"__id__": 41
},
{
"__id__": 43
},
{
"__id__": 45
},
{
"__id__": 47
},
{
"__id__": 49
},
{
"__id__": 51
},
{
"__id__": 53
}
],
"_active": true,
......@@ -1893,7 +1914,7 @@
},
{
"__type__": "cc.Node",
"_name": "btn",
"_name": "button",
"_objFlags": 0,
"_parent": {
"__id__": 38
......@@ -1951,7 +1972,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "3d0p0/uJZJIoRva5Br2iqv"
"_id": "d5hwy0osRAN5kHyTu74VAE"
},
{
"__type__": "cc.AudioSource",
......@@ -1961,40 +1982,29 @@
"__id__": 39
},
"_enabled": true,
"_clip": null,
"_clip": {
"__uuid__": "b02e8897-2e8b-41e2-b9bb-2b9bde802c81"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "0adN50f61DlbmppsPkOnjX"
"_id": "1bYgl+yuBNTqyfDSo2+nfy"
},
{
"__type__": "cc.Node",
"_name": "option_item",
"_name": "complete",
"_objFlags": 0,
"_parent": {
"__id__": 37
"__id__": 38
},
"_children": [
{
"__id__": 42
},
{
"__id__": 44
},
{
"__id__": 48
},
{
"__id__": 50
}
],
"_children": [],
"_active": true,
"_components": [
{
"__id__": 55
"__id__": 42
}
],
"_prefab": null,
......@@ -2020,8 +2030,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-356.439,
-572.07,
0,
0,
0,
0,
0,
......@@ -2043,20 +2053,39 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "03fHwjdVBIQ7pOzYIgjz3y"
"_id": "fc/OFyjmlDXrl4gl7AXMKV"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
},
"_enabled": true,
"_clip": {
"__uuid__": "02e44945-cbf9-4bb3-8d46-2ef24168450d"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "40Zz8/CEBA1qU9ngOw9b13"
},
{
"__type__": "cc.Node",
"_name": "bg_picture1-finish",
"_name": "correct",
"_objFlags": 0,
"_parent": {
"__id__": 41
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 43
"__id__": 44
}
],
"_prefab": null,
......@@ -2070,8 +2099,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 276,
"height": 192
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2105,56 +2134,39 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "6cHFh34lxAvKw2ilVc/GhQ"
"_id": "77P4OV/EhO5bBz15/bDXLV"
},
{
"__type__": "cc.Sprite",
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 42
"__id__": 43
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8f555038-53ff-4e35-93e9-adfc82dbb782"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
"_clip": {
"__uuid__": "d11c941d-e0fc-4967-ab1f-0f4cb81eace8"
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "0aND4fsG1NWqtmDWHnlbFK"
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "91oVQOA0JEzIKrmtKEdRWM"
},
{
"__type__": "cc.Node",
"_name": "bg_picture1",
"_name": "incorrect",
"_objFlags": 0,
"_parent": {
"__id__": 41
"__id__": 38
},
"_children": [
{
"__id__": 45
}
],
"_children": [],
"_active": true,
"_components": [
{
"__id__": 47
"__id__": 46
}
],
"_prefab": null,
......@@ -2168,8 +2180,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 327,
"height": 216
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2180,8 +2192,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-15.105,
5.493,
0,
0,
0,
0,
0,
......@@ -2203,20 +2215,39 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "004p7kGlNBcrQNViHJsI/T"
"_id": "5e8cMJWDhK8Yvfp/8RxJ8b"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
},
"_enabled": true,
"_clip": {
"__uuid__": "f609af77-b69a-47dd-baf9-1130b8c920c8"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "16NZ9i4dlKIZaUengByut+"
},
{
"__type__": "cc.Node",
"_name": "pic",
"_name": "sahua",
"_objFlags": 0,
"_parent": {
"__id__": 44
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 46
"__id__": 48
}
],
"_prefab": null,
......@@ -2230,8 +2261,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 36
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2242,8 +2273,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
15.105,
-5.493,
0,
0,
0,
0,
0,
......@@ -2265,64 +2296,623 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "c7SVzcbppO97gkz7T7dM3C"
"_id": "90FRJpjoBB8LOTZ+XTdvvU"
},
{
"__type__": "cc.Sprite",
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 45
"__id__": 47
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
"_clip": {
"__uuid__": "d76cc330-62ee-4ae0-8a0d-c62610132c81"
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "59SAlQTsRJnLO8oYNI83xa"
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "e9+NPWm65BfrfhsT/jqaCB"
},
{
"__type__": "cc.Sprite",
"_name": "",
"__type__": "cc.Node",
"_name": "star",
"_objFlags": 0,
"node": {
"__id__": 44
"_parent": {
"__id__": 38
},
"_enabled": true,
"_materials": [
"_children": [],
"_active": true,
"_components": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"__id__": 50
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "222dd88f-4283-47d4-a103-1a4711148a48"
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"_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,
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": "e5lHHLK9pDRIoO2OD6ip2L"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
},
"_enabled": true,
"_clip": {
"__uuid__": "a581bdbe-6529-42d8-a000-871065ee1417"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "deRZmJIL5EzL8ezDv/mRRG"
},
{
"__type__": "cc.Node",
"_name": "tap",
"_objFlags": 0,
"_parent": {
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 52
}
],
"_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,
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": "a0zWb6wMhGorYBn7VdY2Tw"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
},
"_enabled": true,
"_clip": {
"__uuid__": "787a8601-eeda-4975-beff-f05a749f46fe"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "00mxIodD1NBLkPHFSzvT66"
},
{
"__type__": "cc.Node",
"_name": "up",
"_objFlags": 0,
"_parent": {
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 54
}
],
"_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,
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": "a3TGwUJeZEfq+S3JtneHAJ"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 53
},
"_enabled": true,
"_clip": {
"__uuid__": "04f2d575-aee9-452e-a1c1-ee822ef7d421"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "8aN4uO4flDWKHTXtL1SFJi"
},
{
"__type__": "cc.Node",
"_name": "option_item",
"_objFlags": 0,
"_parent": {
"__id__": 37
},
"_children": [
{
"__id__": 56
},
{
"__id__": 58
},
{
"__id__": 62
},
{
"__id__": 64
}
],
"_active": true,
"_components": [
{
"__id__": 69
}
],
"_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": [
-356.439,
-572.07,
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": "03fHwjdVBIQ7pOzYIgjz3y"
},
{
"__type__": "cc.Node",
"_name": "bg_picture1-finish",
"_objFlags": 0,
"_parent": {
"__id__": 55
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 57
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 276,
"height": 192
},
"_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": "6cHFh34lxAvKw2ilVc/GhQ"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 56
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8f555038-53ff-4e35-93e9-adfc82dbb782"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "0aND4fsG1NWqtmDWHnlbFK"
},
{
"__type__": "cc.Node",
"_name": "bg_picture1",
"_objFlags": 0,
"_parent": {
"__id__": 55
},
"_children": [
{
"__id__": 59
}
],
"_active": true,
"_components": [
{
"__id__": 61
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 327,
"height": 216
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-15.105,
5.493,
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": "004p7kGlNBcrQNViHJsI/T"
},
{
"__type__": "cc.Node",
"_name": "pic",
"_objFlags": 0,
"_parent": {
"__id__": 58
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 60
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 36
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
15.105,
-5.493,
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": "c7SVzcbppO97gkz7T7dM3C"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "59SAlQTsRJnLO8oYNI83xa"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 58
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "222dd88f-4283-47d4-a103-1a4711148a48"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
......@@ -2336,13 +2926,13 @@
"_name": "bg_word1-finish",
"_objFlags": 0,
"_parent": {
"__id__": 41
"__id__": 55
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 49
"__id__": 63
}
],
"_prefab": null,
......@@ -2398,7 +2988,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 48
"__id__": 62
},
"_enabled": true,
"_materials": [
......@@ -2430,17 +3020,17 @@
"_name": "bg_word1",
"_objFlags": 0,
"_parent": {
"__id__": 41
"__id__": 55
},
"_children": [
{
"__id__": 51
"__id__": 65
}
],
"_active": true,
"_components": [
{
"__id__": 54
"__id__": 68
}
],
"_prefab": null,
......@@ -2496,16 +3086,16 @@
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 50
"__id__": 64
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 52
"__id__": 66
},
{
"__id__": 53
"__id__": 67
}
],
"_prefab": null,
......@@ -2561,7 +3151,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 65
},
"_enabled": true,
"_materials": [
......@@ -2596,7 +3186,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 65
},
"_enabled": true,
"alignMode": 1,
......@@ -2623,7 +3213,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
"__id__": 64
},
"_enabled": true,
"_materials": [
......@@ -2655,26 +3245,26 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
"__id__": 55
},
"_enabled": true,
"pic_node": {
"__id__": 44
"__id__": 58
},
"pic_finish": {
"__id__": 42
"__id__": 56
},
"pic": {
"__id__": 46
"__id__": 60
},
"word_node": {
"__id__": 50
"__id__": 64
},
"word_finish": {
"__id__": 48
"__id__": 62
},
"word": {
"__id__": 52
"__id__": 66
},
"_id": "2ayVCcpXRLmarOKXbwJ/h8"
},
......@@ -2687,28 +3277,28 @@
},
"_children": [
{
"__id__": 57
"__id__": 71
},
{
"__id__": 59
"__id__": 73
},
{
"__id__": 61
"__id__": 75
},
{
"__id__": 63
"__id__": 77
}
],
"_active": true,
"_components": [
{
"__id__": 65
"__id__": 79
},
{
"__id__": 66
"__id__": 80
},
{
"__id__": 67
"__id__": 81
}
],
"_prefab": null,
......@@ -2764,13 +3354,13 @@
"_name": "bg_picture1",
"_objFlags": 0,
"_parent": {
"__id__": 56
"__id__": 70
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 58
"__id__": 72
}
],
"_prefab": null,
......@@ -2826,7 +3416,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
"__id__": 71
},
"_enabled": true,
"_materials": [
......@@ -2858,13 +3448,13 @@
"_name": "bg_picture1 copy",
"_objFlags": 0,
"_parent": {
"__id__": 56
"__id__": 70
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 60
"__id__": 74
}
],
"_prefab": null,
......@@ -2920,7 +3510,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
"__id__": 73
},
"_enabled": true,
"_materials": [
......@@ -2952,13 +3542,13 @@
"_name": "bg_picture1 copy",
"_objFlags": 0,
"_parent": {
"__id__": 56
"__id__": 70
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 62
"__id__": 76
}
],
"_prefab": null,
......@@ -3014,7 +3604,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 61
"__id__": 75
},
"_enabled": true,
"_materials": [
......@@ -3046,13 +3636,13 @@
"_name": "bg_picture1 copy",
"_objFlags": 0,
"_parent": {
"__id__": 56
"__id__": 70
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 64
"__id__": 78
}
],
"_prefab": null,
......@@ -3108,7 +3698,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 63
"__id__": 77
},
"_enabled": true,
"_materials": [
......@@ -3140,7 +3730,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 56
"__id__": 70
},
"_enabled": true,
"_layoutSize": {
......@@ -3172,7 +3762,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 56
"__id__": 70
},
"_enabled": true,
"alignMode": 1,
......@@ -3199,7 +3789,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 56
"__id__": 70
},
"_enabled": true,
"_materials": [
......@@ -3223,19 +3813,19 @@
},
"_children": [
{
"__id__": 69
"__id__": 83
}
],
"_active": true,
"_components": [
{
"__id__": 71
"__id__": 85
},
{
"__id__": 72
"__id__": 86
},
{
"__id__": 73
"__id__": 87
}
],
"_prefab": null,
......@@ -3291,13 +3881,13 @@
"_name": "word_pic",
"_objFlags": 0,
"_parent": {
"__id__": 68
"__id__": 82
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 70
"__id__": 84
}
],
"_prefab": null,
......@@ -3353,7 +3943,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 69
"__id__": 83
},
"_enabled": true,
"_materials": [
......@@ -3385,7 +3975,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
"__id__": 82
},
"_enabled": true,
"_materials": [
......@@ -3417,7 +4007,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
"__id__": 82
},
"_enabled": true,
"_normalMaterial": null,
......@@ -3485,7 +4075,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
"__id__": 82
},
"_enabled": true,
"alignMode": 1,
......@@ -3516,19 +4106,19 @@
},
"_children": [
{
"__id__": 75
"__id__": 89
}
],
"_active": true,
"_components": [
{
"__id__": 77
"__id__": 91
},
{
"__id__": 78
"__id__": 92
},
{
"__id__": 79
"__id__": 93
}
],
"_prefab": null,
......@@ -3584,13 +4174,13 @@
"_name": "word_text",
"_objFlags": 0,
"_parent": {
"__id__": 74
"__id__": 88
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 76
"__id__": 90
}
],
"_prefab": null,
......@@ -3646,7 +4236,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 75
"__id__": 89
},
"_enabled": true,
"_materials": [
......@@ -3681,7 +4271,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 74
"__id__": 88
},
"_enabled": true,
"_materials": [
......@@ -3713,7 +4303,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 74
"__id__": 88
},
"_enabled": true,
"_normalMaterial": null,
......@@ -3781,7 +4371,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 74
"__id__": 88
},
"_enabled": true,
"alignMode": 1,
......@@ -3812,16 +4402,16 @@
},
"_children": [
{
"__id__": 81
"__id__": 95
}
],
"_active": true,
"_components": [
{
"__id__": 86
"__id__": 100
},
{
"__id__": 87
"__id__": 101
}
],
"_prefab": null,
......@@ -3877,20 +4467,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 80
"__id__": 94
},
"_children": [
{
"__id__": 82
"__id__": 96
}
],
"_active": true,
"_components": [
{
"__id__": 84
"__id__": 98
},
{
"__id__": 85
"__id__": 99
}
],
"_prefab": null,
......@@ -3946,13 +4536,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 81
"__id__": 95
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 83
"__id__": 97
}
],
"_prefab": null,
......@@ -4008,7 +4598,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 82
"__id__": 96
},
"_enabled": true,
"_materials": [
......@@ -4041,7 +4631,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 81
"__id__": 95
},
"_enabled": true,
"_materials": [
......@@ -4073,7 +4663,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 81
"__id__": 95
},
"_enabled": true,
"alignMode": 0,
......@@ -4100,7 +4690,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 80
"__id__": 94
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4173,7 +4763,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 81
"__id__": 95
},
"_id": "e0mhGmRlRMfLPZO0bKDTQn"
},
......@@ -4182,7 +4772,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 80
"__id__": 94
},
"_enabled": true,
"alignMode": 1,
......@@ -4215,7 +4805,7 @@
"_active": true,
"_components": [
{
"__id__": 89
"__id__": 103
}
],
"_prefab": null,
......@@ -4271,7 +4861,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 88
"__id__": 102
},
"_enabled": true,
"alignMode": 1,
......@@ -4304,10 +4894,10 @@
"_active": false,
"_components": [
{
"__id__": 91
"__id__": 105
},
{
"__id__": 92
"__id__": 106
}
],
"_prefab": null,
......@@ -4363,7 +4953,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 90
"__id__": 104
},
"_enabled": true,
"_materials": [
......@@ -4403,7 +4993,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 90
"__id__": 104
},
"_enabled": true,
"alignMode": 1,
......@@ -4466,22 +5056,22 @@
},
"_enabled": true,
"layout": {
"__id__": 65
"__id__": 79
},
"btn_sound": {
"__id__": 86
"__id__": 100
},
"tips_text_bg": {
"__id__": 74
"__id__": 88
},
"tips_pic_bg": {
"__id__": 68
"__id__": 82
},
"show_node": {
"__id__": 88
"__id__": 102
},
"animate_node": {
"__id__": 90
"__id__": 104
},
"_id": "c9qKhRAYhDn4CMZDd11frs"
},
......@@ -4521,13 +5111,13 @@
},
"_children": [
{
"__id__": 97
"__id__": 111
}
],
"_active": true,
"_components": [
{
"__id__": 102
"__id__": 116
}
],
"_prefab": null,
......@@ -4583,20 +5173,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 96
"__id__": 110
},
"_children": [
{
"__id__": 98
"__id__": 112
}
],
"_active": true,
"_components": [
{
"__id__": 100
"__id__": 114
},
{
"__id__": 101
"__id__": 115
}
],
"_prefab": null,
......@@ -4652,13 +5242,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 97
"__id__": 111
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 99
"__id__": 113
}
],
"_prefab": null,
......@@ -4714,7 +5304,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 98
"__id__": 112
},
"_enabled": true,
"_materials": [
......@@ -4747,7 +5337,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
"__id__": 111
},
"_enabled": true,
"_materials": [
......@@ -4779,7 +5369,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
"__id__": 111
},
"_enabled": true,
"alignMode": 0,
......@@ -4806,7 +5396,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 96
"__id__": 110
},
"_enabled": true,
"_normalMaterial": null,
......@@ -4879,7 +5469,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 97
"__id__": 111
},
"_id": "08X/7fPaZJsYxODfLTQ3pD"
},
......@@ -4892,13 +5482,13 @@
},
"_children": [
{
"__id__": 104
"__id__": 118
}
],
"_active": true,
"_components": [
{
"__id__": 109
"__id__": 123
}
],
"_prefab": null,
......@@ -4954,20 +5544,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 103
"__id__": 117
},
"_children": [
{
"__id__": 105
"__id__": 119
}
],
"_active": true,
"_components": [
{
"__id__": 107
"__id__": 121
},
{
"__id__": 108
"__id__": 122
}
],
"_prefab": null,
......@@ -5023,13 +5613,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 104
"__id__": 118
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 106
"__id__": 120
}
],
"_prefab": null,
......@@ -5085,7 +5675,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 105
"__id__": 119
},
"_enabled": true,
"_materials": [
......@@ -5118,7 +5708,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 104
"__id__": 118
},
"_enabled": true,
"_materials": [
......@@ -5150,7 +5740,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 104
"__id__": 118
},
"_enabled": true,
"alignMode": 0,
......@@ -5177,7 +5767,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 103
"__id__": 117
},
"_enabled": true,
"_normalMaterial": null,
......@@ -5250,7 +5840,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 104
"__id__": 118
},
"_id": "c9YYFUeMZEJIDtnNx+WYUc"
},
......@@ -5263,13 +5853,13 @@
},
"_children": [
{
"__id__": 111
"__id__": 125
}
],
"_active": true,
"_components": [
{
"__id__": 116
"__id__": 130
}
],
"_prefab": null,
......@@ -5325,20 +5915,20 @@
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 110
"__id__": 124
},
"_children": [
{
"__id__": 112
"__id__": 126
}
],
"_active": true,
"_components": [
{
"__id__": 114
"__id__": 128
},
{
"__id__": 115
"__id__": 129
}
],
"_prefab": null,
......@@ -5394,13 +5984,13 @@
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 111
"__id__": 125
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 113
"__id__": 127
}
],
"_prefab": null,
......@@ -5456,7 +6046,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 112
"__id__": 126
},
"_enabled": true,
"_materials": [
......@@ -5489,7 +6079,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 111
"__id__": 125
},
"_enabled": true,
"_materials": [
......@@ -5521,7 +6111,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 111
"__id__": 125
},
"_enabled": true,
"alignMode": 0,
......@@ -5548,7 +6138,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
"__id__": 124
},
"_enabled": true,
"_normalMaterial": null,
......@@ -5621,7 +6211,7 @@
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 111
"__id__": 125
},
"_id": "49NDPbH/xBe5OuIIfr1l+x"
},
......@@ -5694,13 +6284,13 @@
"_active": true,
"_components": [
{
"__id__": 119
"__id__": 133
},
{
"__id__": 120
"__id__": 134
},
{
"__id__": 121
"__id__": 135
}
],
"_prefab": null,
......@@ -5756,7 +6346,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 118
"__id__": 132
},
"_enabled": true,
"_materials": [
......@@ -5786,7 +6376,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 118
"__id__": 132
},
"_enabled": true,
"_layoutSize": {
......@@ -5818,7 +6408,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 118
"__id__": 132
},
"_enabled": true,
"alignMode": 1,
......@@ -5903,22 +6493,22 @@
},
"_children": [
{
"__id__": 126
"__id__": 140
},
{
"__id__": 128
"__id__": 142
},
{
"__id__": 130
"__id__": 144
},
{
"__id__": 132
"__id__": 146
},
{
"__id__": 134
"__id__": 148
},
{
"__id__": 136
"__id__": 150
}
],
"_active": true,
......@@ -5976,13 +6566,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 125
"__id__": 139
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 127
"__id__": 141
}
],
"_prefab": null,
......@@ -6038,7 +6628,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 126
"__id__": 140
},
"_enabled": true,
"_materials": [
......@@ -6070,13 +6660,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 125
"__id__": 139
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 129
"__id__": 143
}
],
"_prefab": null,
......@@ -6132,7 +6722,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 128
"__id__": 142
},
"_enabled": true,
"_materials": [
......@@ -6164,13 +6754,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 125
"__id__": 139
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 131
"__id__": 145
}
],
"_prefab": null,
......@@ -6226,7 +6816,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 130
"__id__": 144
},
"_enabled": true,
"_materials": [
......@@ -6258,13 +6848,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 125
"__id__": 139
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 133
"__id__": 147
}
],
"_prefab": null,
......@@ -6320,7 +6910,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 132
"__id__": 146
},
"_enabled": true,
"_materials": [
......@@ -6352,13 +6942,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 125
"__id__": 139
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 135
"__id__": 149
}
],
"_prefab": null,
......@@ -6414,7 +7004,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 134
"__id__": 148
},
"_enabled": true,
"_materials": [
......@@ -6446,13 +7036,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 125
"__id__": 139
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 137
"__id__": 151
}
],
"_prefab": null,
......@@ -6508,7 +7098,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 136
"__id__": 150
},
"_enabled": true,
"_materials": [
......@@ -6544,13 +7134,13 @@
},
"_children": [
{
"__id__": 139
"__id__": 153
}
],
"_active": true,
"_components": [
{
"__id__": 143
"__id__": 157
}
],
"_prefab": null,
......@@ -6606,17 +7196,17 @@
"_name": "Star",
"_objFlags": 0,
"_parent": {
"__id__": 138
"__id__": 152
},
"_children": [
{
"__id__": 140
"__id__": 154
}
],
"_active": false,
"_components": [
{
"__id__": 142
"__id__": 156
}
],
"_prefab": null,
......@@ -6672,13 +7262,13 @@
"_name": "StarBig",
"_objFlags": 0,
"_parent": {
"__id__": 139
"__id__": 153
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 141
"__id__": 155
}
],
"_prefab": null,
......@@ -6734,7 +7324,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 140
"__id__": 154
},
"_enabled": true,
"_materials": [],
......@@ -6762,7 +7352,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
"__id__": 153
},
"_enabled": true,
"_materials": [
......@@ -6794,7 +7384,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 138
"__id__": 152
},
"_enabled": true,
"_materials": [
......@@ -6830,22 +7420,22 @@
},
"_children": [
{
"__id__": 145
"__id__": 159
},
{
"__id__": 147
"__id__": 161
},
{
"__id__": 151
"__id__": 165
},
{
"__id__": 153
"__id__": 167
}
],
"_active": true,
"_components": [
{
"__id__": 158
"__id__": 172
}
],
"_prefab": null,
......@@ -6901,13 +7491,13 @@
"_name": "bg_picture1-finish",
"_objFlags": 0,
"_parent": {
"__id__": 144
"__id__": 158
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 146
"__id__": 160
}
],
"_prefab": null,
......@@ -6963,7 +7553,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 145
"__id__": 159
},
"_enabled": true,
"_materials": [
......@@ -6995,17 +7585,17 @@
"_name": "bg_picture1",
"_objFlags": 0,
"_parent": {
"__id__": 144
"__id__": 158
},
"_children": [
{
"__id__": 148
"__id__": 162
}
],
"_active": true,
"_components": [
{
"__id__": 150
"__id__": 164
}
],
"_prefab": null,
......@@ -7061,13 +7651,13 @@
"_name": "pic",
"_objFlags": 0,
"_parent": {
"__id__": 147
"__id__": 161
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 149
"__id__": 163
}
],
"_prefab": null,
......@@ -7123,7 +7713,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 148
"__id__": 162
},
"_enabled": true,
"_materials": [
......@@ -7155,7 +7745,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 147
"__id__": 161
},
"_enabled": true,
"_materials": [
......@@ -7187,13 +7777,13 @@
"_name": "bg_word1-finish",
"_objFlags": 0,
"_parent": {
"__id__": 144
"__id__": 158
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 152
"__id__": 166
}
],
"_prefab": null,
......@@ -7249,7 +7839,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 151
"__id__": 165
},
"_enabled": true,
"_materials": [
......@@ -7281,17 +7871,17 @@
"_name": "bg_word1",
"_objFlags": 0,
"_parent": {
"__id__": 144
"__id__": 158
},
"_children": [
{
"__id__": 154
"__id__": 168
}
],
"_active": true,
"_components": [
{
"__id__": 157
"__id__": 171
}
],
"_prefab": null,
......@@ -7347,16 +7937,16 @@
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 153
"__id__": 167
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 155
"__id__": 169
},
{
"__id__": 156
"__id__": 170
}
],
"_prefab": null,
......@@ -7412,7 +8002,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 154
"__id__": 168
},
"_enabled": true,
"_materials": [
......@@ -7447,7 +8037,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 154
"__id__": 168
},
"_enabled": true,
"alignMode": 1,
......@@ -7474,7 +8064,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 153
"__id__": 167
},
"_enabled": true,
"_materials": [
......@@ -7506,26 +8096,26 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 144
"__id__": 158
},
"_enabled": true,
"pic_node": {
"__id__": 147
"__id__": 161
},
"pic_finish": {
"__id__": 145
"__id__": 159
},
"pic": {
"__id__": 149
"__id__": 163
},
"word_node": {
"__id__": 153
"__id__": 167
},
"word_finish": {
"__id__": 151
"__id__": 165
},
"word": {
"__id__": 155
"__id__": 169
},
"_id": "8dsxiyZ1dGt6uZJDUodj+3"
}
......
......@@ -148,11 +148,12 @@ cc.Class({
// let option = option_node.getComponent(cc.js.getClassByName('WordOption'));
this._test.on('click', ()=>{
option.initType(1);
option.setWord('hello');
});
cc.find('Canvas/add').on('click', ()=>{
if (this._btn_start.active == true || this._btn_restart.active == true)
return;
this.pageFinish();
});
......@@ -176,6 +177,7 @@ cc.Class({
let option_node = area.children[i];
let option = option_node.getComponent(cc.js.getClassByName('WordOption'));
if (this._touched != true && cc.rect(option_node.getBoundingBoxToWorld()).contains(event.touch._point)){
this.playAudioByName('tap');
this._moved = false;
this._touched = true;
selected.copyValues(option);
......@@ -223,12 +225,10 @@ cc.Class({
if (cc.rect(item.getBoundingBoxToWorld()).intersects(cc.rect(selected.node.getBoundingBoxToWorld()))){
let kind = item.getComponent(cc.js.getClassByName('WordKind'));
if (kind.kind_id != selected.kind_id){
console.log(kind.kind_id);
console.log(selected.kind_id);
this.playAudioByName('incorrect');
break;
}
this.playAudioByName('correct');
let node = cc.instantiate(cc.find('res/option_item'));
let ot = node.getComponent(cc.js.getClassByName('WordOption'));
ot.copyValues(selected);
......@@ -254,21 +254,25 @@ cc.Class({
initButton(){
this._btn_start = cc.find('Canvas/btn_start');
this._btn_start.on('click', ()=>{
this.playAudioByName('button');
this._btn_start.active = false;
this.updateData();
this.upForeground(()=>{
this._moved = true;
this.playAudioByName('up');
});
});
this._btn_start.active = true;
this._btn_restart = cc.find('Canvas/btn_restart');
this._btn_restart.on('click', ()=>{
this.playAudioByName('button');
this._btn_restart.active = false;
this.downForeground(()=>{
this._btn_start.active = true;
this.resetData();
});
// this.downForeground(()=>{
// this._btn_start.active = true;
// this.resetData();
// });
this.resetData();
});
},
......@@ -341,7 +345,7 @@ cc.Class({
},
currentStarIdx: null,
showStar() {
showStar(cb) {
if (!this.currentStarIdx) {
this.currentStarIdx = 0;
}
......@@ -386,7 +390,7 @@ cc.Class({
.delay(0.6)
.to(0.8, { scale: 0 }, { easing: 'quadOut' })
.call(() => {
// this.checkGameEnd();
cb && cb();
})
.start();
......@@ -525,21 +529,38 @@ cc.Class({
pageFinish(){
this._page_idx ++;
if (this._page_idx >= this._page_max){
this.showStar();
this._star_idx ++;
if (this._star_idx >= this.data.stars.length){
this.completeTest();
return;
this.downForeground(()=>{
if (this._page_idx >= this._page_max){
this.playAudioByName('star');
this.playAudioByName('complete');
this.showStar(()=>{
this._star_idx ++;
if (this._star_idx >= this.data.stars.length){
this.completeTest();
return;
}
this._page_max = this.data.stars[this._star_idx].length;
this._page_idx = 0;
this.upForeground(()=>{
this.updateData();
this.playAudioByName('up');
});
});
}
this._page_max = this.data.stars[this._star_idx].length;
this._page_idx = 0;
}
this.updateData();
else{
this.upForeground(()=>{
this.updateData();
this.playAudioByName('up');
});
}
});
},
completeTest(){
this.completeAnimation();
this.playAudioByName('sahua');
this.playAudioByName('button');
this.playAudioByName('up');
this._btn_restart.active = true;
this._moved = false;
//this.resetData();
......
......@@ -64,7 +64,7 @@ cc.Class({
this.btn_sound.node.active = true;
}
this.kind_id = data.kind;
//this.layout.node.removeAllChildren();
this.layout.node.removeAllChildren();
},
initData(){
......
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