Commit 97b53cba authored by Li MingZhe's avatar Li MingZhe

feat: 音频

parent 075ed516
{
"ver": "2.0.1",
"uuid": "4343fc6d-0463-4a54-b33d-849f8c52e614",
"downloadMode": 0,
"duration": 0.130612,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "8be772e6-5d59-41fc-94dc-740b7886ed2a",
"downloadMode": 0,
"duration": 1.37425,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "cf4194d1-b3c9-4752-a688-ac743fd6dffb",
"downloadMode": 0,
"duration": 0.536,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "f4288d8f-0b1b-4351-80be-0ca27ff1cf8a",
"downloadMode": 0,
"duration": 2.35102,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "73c6427f-bac9-4ced-bfe8-1ea0628616eb",
"downloadMode": 0,
"duration": 1.056667,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "efd1cc04-9cf0-47d8-905c-229e476e8b59",
"downloadMode": 0,
"duration": 1.044898,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "fc63f540-c414-44f6-91bf-52fd6a0d919a",
"downloadMode": 0,
"duration": 1.750204,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "d56c6fa4-e16c-407e-ad99-4fdf2d3d6e22",
"downloadMode": 0,
"duration": 1.306122,
"subMetas": {}
}
\ No newline at end of file
......@@ -17,7 +17,7 @@
"__id__": 2
},
{
"__id__": 65
"__id__": 89
}
],
"_active": false,
......@@ -90,13 +90,13 @@
"_active": true,
"_components": [
{
"__id__": 62
"__id__": 86
},
{
"__id__": 63
"__id__": 87
},
{
"__id__": 64
"__id__": 88
}
],
"_prefab": null,
......@@ -723,13 +723,13 @@
"__id__": 16
},
{
"__id__": 49
"__id__": 57
},
{
"__id__": 54
"__id__": 62
},
{
"__id__": 61
"__id__": 69
}
],
"_active": false,
......@@ -837,6 +837,18 @@
},
{
"__id__": 47
},
{
"__id__": 49
},
{
"__id__": 51
},
{
"__id__": 53
},
{
"__id__": 55
}
],
"_active": true,
......@@ -2331,21 +2343,108 @@
},
{
"__type__": "cc.Node",
"_name": "font",
"_name": "icon_star",
"_objFlags": 0,
"_parent": {
"__id__": 15
"__id__": 16
},
"_children": [
"_children": [],
"_active": true,
"_components": [
{
"__id__": 50
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 79,
"height": 76
},
"_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": "b9BOJlf4dPQaIbLeuHdxz8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 49
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d1e68a76-85a2-4775-ae5d-c8288e37b7ce"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "f3WHYm88pN/5VfSfbYXGGV"
},
{
"__type__": "cc.Node",
"_name": "hand_arrow",
"_objFlags": 0,
"_parent": {
"__id__": 16
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 52
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -2357,8 +2456,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 69,
"height": 51
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2392,20 +2491,48 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "feQPrUp4hHIIF9kRjSFXiq"
"_id": "81FnuYAJ9Nm5FpDYtodr26"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "b9cfdde5-4965-4a04-8c3b-a05c72244c5f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "20aVDILEtEcoDQgqoeo1Pm"
},
{
"__type__": "cc.Node",
"_name": "MMTextBook-Bold",
"_name": "hand_star",
"_objFlags": 0,
"_parent": {
"__id__": 49
"__id__": 16
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 51
"__id__": 54
}
],
"_prefab": null,
......@@ -2419,8 +2546,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 79,
"height": 76
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2454,52 +2581,48 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "33W1TmRxdOvbKX2DAykTY6"
"_id": "38r0duFtBESaSEdx05X6n5"
},
{
"__type__": "cc.Label",
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
"__id__": 53
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_useOriginalSize": true,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "49273284-0741-4b5e-a5c4-216bfd454a10"
"_spriteFrame": {
"__uuid__": "eba57bd6-7868-4eac-9433-f0e3b640af9a"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "d9Q06c09ZLd7vkbkYsXSe3"
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "6dlZu2Fu5CvZ2NViL5CMPr"
},
{
"__type__": "cc.Node",
"_name": "aharoni",
"_name": "hand",
"_objFlags": 0,
"_parent": {
"__id__": 49
"__id__": 16
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 53
"__id__": 56
}
],
"_prefab": null,
......@@ -2513,8 +2636,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 91,
"height": 111
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2548,56 +2671,49 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "14bfhje8pNWbEvATB7/lVo"
"_id": "cbMK28Fi5ABqUDApWfCWgX"
},
{
"__type__": "cc.Label",
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 52
"__id__": 55
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_useOriginalSize": true,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "351a8920-0118-4f62-a97f-210c5372541f"
"_spriteFrame": {
"__uuid__": "c5908518-f47b-4d1d-9d66-0ed0290222c6"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "3feAb8QaBNrovbtqW1lEr0"
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "5e8htQNutM4qRXSp2IKDgi"
},
{
"__type__": "cc.Node",
"_name": "anima",
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 15
},
"_children": [
{
"__id__": 55
},
{
"__id__": 57
"__id__": 58
},
{
"__id__": 59
"__id__": 60
}
],
"_active": true,
......@@ -2648,20 +2764,20 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "89I0bgX15NYZgWEKKHbMbb"
"_id": "feQPrUp4hHIIF9kRjSFXiq"
},
{
"__type__": "cc.Node",
"_name": "wrongAndRight",
"_name": "MMTextBook-Bold",
"_objFlags": 0,
"_parent": {
"__id__": 54
"__id__": 57
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 56
"__id__": 59
}
],
"_prefab": null,
......@@ -2675,8 +2791,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 409.52181464491207,
"height": 351.0417933132469
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2710,60 +2826,919 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "9e2cpXWhlDNZSDqNRor6UQ"
"_id": "33W1TmRxdOvbKX2DAykTY6"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 55
"__id__": 58
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_useOriginalSize": true,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "49273284-0741-4b5e-a5c4-216bfd454a10"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "d9Q06c09ZLd7vkbkYsXSe3"
},
{
"__type__": "cc.Node",
"_name": "aharoni",
"_objFlags": 0,
"_parent": {
"__id__": 57
},
"_children": [],
"_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": 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": "14bfhje8pNWbEvATB7/lVo"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 60
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_useOriginalSize": true,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "351a8920-0118-4f62-a97f-210c5372541f"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "3feAb8QaBNrovbtqW1lEr0"
},
{
"__type__": "cc.Node",
"_name": "anima",
"_objFlags": 0,
"_parent": {
"__id__": 15
},
"_children": [
{
"__id__": 63
},
{
"__id__": 65
},
{
"__id__": 67
}
],
"_active": true,
"_components": [],
"_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": "89I0bgX15NYZgWEKKHbMbb"
},
{
"__type__": "cc.Node",
"_name": "wrongAndRight",
"_objFlags": 0,
"_parent": {
"__id__": 62
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 64
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 409.52181464491207,
"height": 351.0417933132469
},
"_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": "9e2cpXWhlDNZSDqNRor6UQ"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 63
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "normal",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "25b2a529-38d6-4f23-8d54-f1f43ea43dc6#bb269743-bd25-4f32-a8e9-61841c0ddc64",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "25b2a529-38d6-4f23-8d54-f1f43ea43dc6"
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "normal",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "25b2a529-38d6-4f23-8d54-f1f43ea43dc6#bb269743-bd25-4f32-a8e9-61841c0ddc64",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "25b2a529-38d6-4f23-8d54-f1f43ea43dc6"
},
"_N$dragonAtlasAsset": {
"__uuid__": "bb269743-bd25-4f32-a8e9-61841c0ddc64"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "60pYaqi6ZNV6l7yLublrFO"
},
{
"__type__": "cc.Node",
"_name": "speak",
"_objFlags": 0,
"_parent": {
"__id__": 62
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 66
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 339,
"height": 341
},
"_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": "e0fNd/M6lACZ0POF913dmt"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "newAnimation",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "f85e2670-38c5-422a-991b-a395282c91bc#0d596ab8-f263-4c4e-81f1-b85ac369a459",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "f85e2670-38c5-422a-991b-a395282c91bc"
},
"_N$dragonAtlasAsset": {
"__uuid__": "0d596ab8-f263-4c4e-81f1-b85ac369a459"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "39EdP9wtNMnYNIX3vE1zOQ"
},
{
"__type__": "cc.Node",
"_name": "role",
"_objFlags": 0,
"_parent": {
"__id__": 62
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 68
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 337.75,
"height": 270.80000000000007
},
"_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": "03KpzkYDVJmb1t8y+c5o0r"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 67
},
"_enabled": true,
"_materials": [],
"_armatureName": "normal",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "c8d41c1d-e3fc-4822-b0b0-c2a34e0a35ab#f67bfa59-5edf-4926-bb7d-35e3a117498e",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "c8d41c1d-e3fc-4822-b0b0-c2a34e0a35ab"
},
"_N$dragonAtlasAsset": {
"__uuid__": "f67bfa59-5edf-4926-bb7d-35e3a117498e"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "45CmKUVnhK8aQ3e+BOMHuc"
},
{
"__type__": "cc.Node",
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 15
},
"_children": [
{
"__id__": 70
},
{
"__id__": 72
},
{
"__id__": 74
},
{
"__id__": 76
},
{
"__id__": 78
},
{
"__id__": 80
},
{
"__id__": 82
},
{
"__id__": 84
}
],
"_active": true,
"_components": [],
"_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": "83D6cE4jlG0Iu6BGhwCCJJ"
},
{
"__type__": "cc.Node",
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 69
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 71
}
],
"_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": "0bu7YZQqhLLbqmbJn87N5I"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 70
},
"_enabled": true,
"_clip": {
"__uuid__": "4343fc6d-0463-4a54-b33d-849f8c52e614"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"playOnLoad": false,
"preload": false,
"_id": "b3OeHlzB5ANYYqR3wy3Xir"
},
{
"__type__": "cc.Node",
"_name": "cap",
"_objFlags": 0,
"_parent": {
"__id__": 69
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 73
}
],
"_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": "317tSzhthMG4pHoqUZ4FSA"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
},
"_enabled": true,
"_clip": {
"__uuid__": "8be772e6-5d59-41fc-94dc-740b7886ed2a"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"playOnLoad": false,
"preload": false,
"_id": "c2CEqAtsJLC4yqUI7q3KBE"
},
{
"__type__": "cc.Node",
"_name": "click",
"_objFlags": 0,
"_parent": {
"__id__": 69
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 75
}
],
"_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": "a3JhkpZ+9Fvbuy2Mi2TURu"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 74
},
"_enabled": true,
"_clip": {
"__uuid__": "cf4194d1-b3c9-4752-a688-ac743fd6dffb"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"playOnLoad": false,
"preload": false,
"_id": "1acOCk2pRLmJzRHTyAbABG"
},
{
"__type__": "cc.Node",
"_name": "star",
"_objFlags": 0,
"_parent": {
"__id__": 69
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 77
}
],
"_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": "31ZKX4tDRGNpMGmhj5cf4a"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 76
},
"_N$dragonAtlasAsset": {
"__uuid__": "bb269743-bd25-4f32-a8e9-61841c0ddc64"
"_enabled": true,
"_clip": {
"__uuid__": "fc63f540-c414-44f6-91bf-52fd6a0d919a"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "60pYaqi6ZNV6l7yLublrFO"
"_volume": 1,
"_mute": false,
"_loop": false,
"playOnLoad": false,
"preload": false,
"_id": "efsprJnI9J6pKYLzsqXvwG"
},
{
"__type__": "cc.Node",
"_name": "speak",
"_name": "right",
"_objFlags": 0,
"_parent": {
"__id__": 54
"__id__": 69
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 58
"__id__": 79
}
],
"_prefab": null,
......@@ -2777,8 +3752,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 339,
"height": 341
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2812,60 +3787,118 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e0fNd/M6lACZ0POF913dmt"
"_id": "40p9duJgdLWrO2MdpodMFZ"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
"__id__": 78
},
"_enabled": true,
"_materials": [
"_clip": {
"__uuid__": "f4288d8f-0b1b-4351-80be-0ca27ff1cf8a"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"playOnLoad": false,
"preload": false,
"_id": "95werjKapLi7T0DBB7LbEj"
},
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"__type__": "cc.Node",
"_name": "wrong",
"_objFlags": 0,
"_parent": {
"__id__": 69
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 81
}
],
"_armatureName": "Armature",
"_animationName": "newAnimation",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "f85e2670-38c5-422a-991b-a395282c91bc#0d596ab8-f263-4c4e-81f1-b85ac369a459",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "f85e2670-38c5-422a-991b-a395282c91bc"
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$dragonAtlasAsset": {
"__uuid__": "0d596ab8-f263-4c4e-81f1-b85ac369a459"
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "39EdP9wtNMnYNIX3vE1zOQ"
"_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": "95FGUMapBFep+IrQgcLbt1"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 80
},
"_enabled": true,
"_clip": {
"__uuid__": "d56c6fa4-e16c-407e-ad99-4fdf2d3d6e22"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"playOnLoad": false,
"preload": false,
"_id": "7edLFfFddF+JNtLgbhInb4"
},
{
"__type__": "cc.Node",
"_name": "role",
"_name": "speak",
"_objFlags": 0,
"_parent": {
"__id__": 54
"__id__": 69
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 60
"__id__": 83
}
],
"_prefab": null,
......@@ -2879,8 +3912,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 337.75,
"height": 270.80000000000007
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -2914,54 +3947,40 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "03KpzkYDVJmb1t8y+c5o0r"
"_id": "12mpA87UNPBYRPb2NKjQCo"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
"__id__": 82
},
"_enabled": true,
"_materials": [],
"_armatureName": "normal",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "c8d41c1d-e3fc-4822-b0b0-c2a34e0a35ab#f67bfa59-5edf-4926-bb7d-35e3a117498e",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "c8d41c1d-e3fc-4822-b0b0-c2a34e0a35ab"
},
"_N$dragonAtlasAsset": {
"__uuid__": "f67bfa59-5edf-4926-bb7d-35e3a117498e"
"_clip": {
"__uuid__": "efd1cc04-9cf0-47d8-905c-229e476e8b59"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "45CmKUVnhK8aQ3e+BOMHuc"
"_volume": 1,
"_mute": false,
"_loop": false,
"playOnLoad": false,
"preload": false,
"_id": "1f1sUIGilD0I4iMngGxKsf"
},
{
"__type__": "cc.Node",
"_name": "audio",
"_name": "show",
"_objFlags": 0,
"_parent": {
"__id__": 15
"__id__": 69
},
"_children": [],
"_active": true,
"_components": [],
"_components": [
{
"__id__": 85
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -3008,7 +4027,25 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "83D6cE4jlG0Iu6BGhwCCJJ"
"_id": "3070sbqqVDcrs8oQuQY3AP"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 84
},
"_enabled": true,
"_clip": {
"__uuid__": "73c6427f-bac9-4ced-bfe8-1ea0628616eb"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"playOnLoad": false,
"preload": false,
"_id": "a6x6xf5hdC+5roiJiAlIdZ"
},
{
"__type__": "cc.Canvas",
......@@ -3075,28 +4112,28 @@
},
"_children": [
{
"__id__": 66
"__id__": 90
},
{
"__id__": 68
"__id__": 92
},
{
"__id__": 70
"__id__": 94
},
{
"__id__": 72
"__id__": 96
},
{
"__id__": 74
"__id__": 98
},
{
"__id__": 76
"__id__": 100
},
{
"__id__": 78
"__id__": 102
},
{
"__id__": 80
"__id__": 104
}
],
"_active": false,
......@@ -3154,13 +4191,13 @@
"_name": "sahua",
"_objFlags": 0,
"_parent": {
"__id__": 65
"__id__": 89
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 67
"__id__": 91
}
],
"_prefab": null,
......@@ -3216,7 +4253,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 66
"__id__": 90
},
"_enabled": true,
"_materials": [
......@@ -3246,13 +4283,13 @@
"_name": "sahua",
"_objFlags": 0,
"_parent": {
"__id__": 65
"__id__": 89
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 69
"__id__": 93
}
],
"_prefab": null,
......@@ -3308,7 +4345,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 68
"__id__": 92
},
"_enabled": true,
"_materials": [
......@@ -3338,13 +4375,13 @@
"_name": "sahua",
"_objFlags": 0,
"_parent": {
"__id__": 65
"__id__": 89
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 71
"__id__": 95
}
],
"_prefab": null,
......@@ -3400,7 +4437,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 70
"__id__": 94
},
"_enabled": true,
"_materials": [
......@@ -3430,13 +4467,13 @@
"_name": "sahua",
"_objFlags": 0,
"_parent": {
"__id__": 65
"__id__": 89
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 73
"__id__": 97
}
],
"_prefab": null,
......@@ -3492,7 +4529,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 72
"__id__": 96
},
"_enabled": true,
"_materials": [
......@@ -3522,13 +4559,13 @@
"_name": "sahua",
"_objFlags": 0,
"_parent": {
"__id__": 65
"__id__": 89
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 75
"__id__": 99
}
],
"_prefab": null,
......@@ -3584,7 +4621,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 74
"__id__": 98
},
"_enabled": true,
"_materials": [
......@@ -3614,13 +4651,13 @@
"_name": "sahua",
"_objFlags": 0,
"_parent": {
"__id__": 65
"__id__": 89
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 77
"__id__": 101
}
],
"_prefab": null,
......@@ -3676,7 +4713,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 76
"__id__": 100
},
"_enabled": true,
"_materials": [
......@@ -3706,13 +4743,13 @@
"_name": "sahua",
"_objFlags": 0,
"_parent": {
"__id__": 65
"__id__": 89
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 79
"__id__": 103
}
],
"_prefab": null,
......@@ -3768,7 +4805,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 78
"__id__": 102
},
"_enabled": true,
"_materials": [
......@@ -3798,13 +4835,13 @@
"_name": "sahua",
"_objFlags": 0,
"_parent": {
"__id__": 65
"__id__": 89
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 81
"__id__": 105
}
],
"_prefab": null,
......@@ -3860,7 +4897,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 80
"__id__": 104
},
"_enabled": true,
"_materials": [
......
......@@ -249,7 +249,7 @@ cc.Class({
this.groupIndex = 0;
// this.initCurGroup();
// this.initAudioEffect();
this.initAudioEffect();
this.layer1 = cc.find('Canvas/layer_1');
this.layer2 = cc.find('Canvas/layer_2');
......@@ -272,11 +272,24 @@ cc.Class({
}
},
appearClip: null,
clickClip: null,
capClip: null,
btnClip: null,
speakClip: null,
rightClip: null,
wrongClip: null,
starClip: null,
showClip: null,
initAudioEffect() {
// this.appearClip = cc.find('Canvas/res/audio/appear').getComponent(cc.AudioSource).clip;
// this.starClip = cc.find('Canvas/res/audio/star').getComponent(cc.AudioSource).clip;
this.clickClip = cc.find('Canvas/res/audio/click').getComponent(cc.AudioSource).clip;
this.capClip = cc.find('Canvas/res/audio/cap').getComponent(cc.AudioSource).clip;
this.btnClip = cc.find('Canvas/res/audio/btn').getComponent(cc.AudioSource).clip;
this.speakClip = cc.find('Canvas/res/audio/speak').getComponent(cc.AudioSource).clip;
this.rightClip = cc.find('Canvas/res/audio/right').getComponent(cc.AudioSource).clip;
this.wrongClip = cc.find('Canvas/res/audio/wrong').getComponent(cc.AudioSource).clip;
this.starClip = cc.find('Canvas/res/audio/star').getComponent(cc.AudioSource).clip;
this.showClip = cc.find('Canvas/res/audio/show').getComponent(cc.AudioSource).clip;
},
curGroup: null,
......@@ -471,6 +484,7 @@ cc.Class({
this.initBottle();
this.initRole();
this.initHand();
},
bottleArr: null,
......@@ -515,11 +529,60 @@ cc.Class({
dragonDisplay.playAnimation('newAnimation', -1);
role.on(cc.Node.EventType.TOUCH_START, () => {
this._curShowItem = role;
this.role.hand.active = false;
playAudio(this.clickClip);
})
},
initHand() {
const node = new cc.Node();
this.role.addChild(node);
this.role.hand = node;
const handStar = getSprNode('hand_star');
this.addHandStarAnima(handStar);
const handArrow = getSprNode('hand_arrow');
handArrow.x = 200;
handArrow.baseX = handArrow.x;
this.addHandArrowAnima(handArrow);
const hand = getSprNode('hand');
hand.x = 5;
hand.anchorY = 1;
node.addChild(handStar)
node.addChild(hand)
node.addChild(handArrow)
},
addHandStarAnima(node) {
const time = 1
cc.tween(node)
.to(time, {scale: 0.8}, {easing: 'quadInOut'})
.to(time, {scale: 1}, {easing: 'quadInOut'})
.call(() => {
this.addHandStarAnima(node);
})
.start();
},
addHandArrowAnima(node) {
const time = 0.5
cc.tween(node)
.to(time, {x: node.baseX + 30}, {easing: 'quadIn'})
.to(time, {x: node.baseX}, {easing: 'quadOut'})
.call(() => {
this.addHandArrowAnima(node);
})
.start();
},
getBottle() {
......@@ -586,6 +649,7 @@ cc.Class({
})
this.curBottle = bottle;
playAudio(this.capClip);
},
delayCall(time, cb) {
......@@ -732,6 +796,7 @@ cc.Class({
.to(1, {opacity: 255}, {easing: 'quadOut'})
.start();
playAudio(this.showClip);
},
showStudentPanelLabel(isRight) {
......@@ -746,15 +811,48 @@ cc.Class({
this.hideSpeakIcon();
this.showWrongAndRightAnima(isRight);
if (isRight) {
this.isShowStarAnima = true;
this.showStarAnima();
playAudio(this.rightClip);
playAudio(this.starClip);
this.delayCall(1.7, () => {
this.isShowStarAnima = false;
})
} else {
playAudio(this.wrongClip);
}
playAudio(this.showClip);
},
showStarAnima() {
this.delayCall(0.005, () => {
if (!this.isShowStarAnima) {
return;
}
this.addOneStarAnima();
this.showStarAnima();
})
},
addOneStarAnima() {
const star = getSprNode('icon_star');
star.scale = (0.3 + Math.random() * 0.7) * this._mapScaleMin;
star.angle = Math.random() * 360;
star.x = -this.canvas.width / 2 + Math.random() * this.canvas.width;
star.y = this.canvas.height / 2 + 100 * this._mapScaleMin
this.layer2.addChild(star);
const time = 0.8 + Math.random() * 2;
cc.tween(star)
.to(time, {y: -this.canvas.height / 2 - 100 * this._mapScaleMin, angle: star.angle - 360 * Math.random() + 180})
.start();
},
showWrongAndRightAnima(isRight) {
this.wrongAndRightDisplay.node.active = true;
......@@ -770,6 +868,7 @@ cc.Class({
this.speakIcon.active = true;
this.appear(this.speakIcon, 0.5)
playAudio(this.speakClip);
},
hideSpeakIcon() {
......@@ -808,9 +907,9 @@ cc.Class({
this.initPic();
this.initTeacherPanel();
this.initStudentPanel();
if (this.isTeacher) {
// if (this.isTeacher) {
this.initTeacherBtn();
}
// }
this.initSpeakIcon();
this.initWrongAndRightAnima();
},
......@@ -820,6 +919,13 @@ cc.Class({
title.scale = this._mapScaleMin;
title.parent = this.layer2;
title.addComponent(cc.Button);
title.on('click', () => {
if (this.data.title_audio_url) {
playAudioByUrl(this.data.title_audio_url);
}
})
title.x = -this.canvas.width / 2 + title.width / 2 * title.scale + 20 * this._mapScaleMin;
title.y = this.canvas.height / 2 - title.height / 2 * title.scale - 20 * this._mapScaleMin;
......@@ -967,6 +1073,7 @@ cc.Class({
show.x = this.teacherPanel.width / 2 - show.width / 2 - 9;
show.y = this.teacherPanel.height / 2 - 10;
this.addBtnClickFunc(show, () => {
this.showBtnAnima(show);
this.showTeacherPanelLabel();
this.sendServerEvent('show_question', {})
})
......@@ -976,6 +1083,7 @@ cc.Class({
speak.x = -this.studentPanel.width / 2 + speak.width / 2 + 28;
speak.y = this.studentPanel.height / 2 + 2;
this.addBtnClickFunc(speak, () => {
this.showBtnAnima(speak);
this.showSpeakIcon();
this.sendServerEvent('show_speak', {})
})
......@@ -988,6 +1096,7 @@ cc.Class({
right.x = this.canvas.width / 2 - right.width / 2 * this._mapScaleMin + offX;
right.y = offY;
this.addBtnClickFunc(right, () => {
this.showBtnAnima(right);
this.showStudentPanelLabel(true);
this.sendServerEvent('show_answer', {isRight: true})
})
......@@ -998,6 +1107,7 @@ cc.Class({
wrong.x = right.x;
wrong.y = right.y - 100 * this._mapScaleMin;
this.addBtnClickFunc(wrong, () => {
this.showBtnAnima(wrong);
this.showStudentPanelLabel(false);
this.sendServerEvent('show_answer', {isRight: false})
})
......@@ -1008,15 +1118,16 @@ cc.Class({
next.x = wrong.x;
next.y = wrong.y - 170 * this._mapScaleMin;
this.addBtnClickFunc(next, () => {
this.showBtnAnima(next);
this.backLayer1();
sendServerEvent('back_layer', {});
this.sendServerEvent('back_layer', {});
})
},
addBtnClickFunc(node, cb) {
node.addComponent(cc.Button);
node.on('click', () => {
node.on(cc.Node.EventType.TOUCH_START, () => {
cb();
})
},
......@@ -1060,6 +1171,7 @@ cc.Class({
roleBack() {
this.role.x = this.role.baseX;
this.role.y = this.role.baseY;
this.role.hand.active = true;
},
wrongAndRightDisplay: null,
......@@ -1076,6 +1188,17 @@ cc.Class({
this.wrongAndRightDisplay = wrongAndRight.getComponent(dragonBones.ArmatureDisplay);
},
showBtnAnima(btn) {
playAudio(this.btnClip);
cc.tween(btn)
.to(0.05, {scale: 0.9 * this._mapScaleMin})
.to(0.05, {scale: 1 * this._mapScaleMin})
.call(() => {
})
.start();
},
......
{
"ver": "2.3.5",
"uuid": "d9d7d243-a5e0-4276-a436-4cb90da8f61d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 91,
"height": 111,
"platformSettings": {},
"subMetas": {
"hand": {
"ver": "1.0.4",
"uuid": "c5908518-f47b-4d1d-9d66-0ed0290222c6",
"rawTextureUuid": "d9d7d243-a5e0-4276-a436-4cb90da8f61d",
"trimType": "custom",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 91,
"height": 111,
"rawWidth": 91,
"rawHeight": 111,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "1487164c-d2e9-4e4f-af8c-c622fa6c53c1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 69,
"height": 51,
"platformSettings": {},
"subMetas": {
"hand_arrow": {
"ver": "1.0.4",
"uuid": "b9cfdde5-4965-4a04-8c3b-a05c72244c5f",
"rawTextureUuid": "1487164c-d2e9-4e4f-af8c-c622fa6c53c1",
"trimType": "custom",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 69,
"height": 51,
"rawWidth": 69,
"rawHeight": 51,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "d14fc90e-4569-449d-8145-b066bcbff4bd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 79,
"height": 76,
"platformSettings": {},
"subMetas": {
"hand_star": {
"ver": "1.0.4",
"uuid": "eba57bd6-7868-4eac-9433-f0e3b640af9a",
"rawTextureUuid": "d14fc90e-4569-449d-8145-b066bcbff4bd",
"trimType": "custom",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 79,
"height": 76,
"rawWidth": 79,
"rawHeight": 76,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "1ba6f340-64e0-4e61-8ce6-699385a7ab87",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 79,
"height": 76,
"platformSettings": {},
"subMetas": {
"icon_sahua": {
"ver": "1.0.4",
"uuid": "d1e68a76-85a2-4775-ae5d-c8288e37b7ce",
"rawTextureUuid": "1ba6f340-64e0-4e61-8ce6-699385a7ab87",
"trimType": "custom",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 79,
"height": 76,
"rawWidth": 79,
"rawHeight": 76,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment