Commit 67ed2671 authored by Tt's avatar Tt

游戏基础完成

parent 09e8fc29
{
"ver": "1.1.0",
"uuid": "8554a69c-42b9-426d-8b48-727195509b39",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "4b91d1cc-8fb5-4acd-bc75-6fed2f9e5636",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "2b11885a-0cc4-48d2-9e8d-58be5f769274",
"subMetas": {}
}
\ No newline at end of file
......@@ -108,31 +108,28 @@
"__id__": 141
},
{
"__id__": 163
},
{
"__id__": 169
"__id__": 181
},
{
"__id__": 190
"__id__": 187
},
{
"__id__": 206
"__id__": 203
},
{
"__id__": 216
"__id__": 213
}
],
"_active": true,
"_components": [
{
"__id__": 229
"__id__": 226
},
{
"__id__": 230
"__id__": 227
},
{
"__id__": 231
"__id__": 228
}
],
"_prefab": null,
......@@ -6324,7 +6321,7 @@
"__id__": 106
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 135
......@@ -6523,8 +6520,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
150.742,
-345.659,
2.136,
-232.019,
0,
0,
0,
......@@ -6639,34 +6636,34 @@
"__id__": 144
},
{
"__id__": 146
"__id__": 151
},
{
"__id__": 149
"__id__": 158
},
{
"__id__": 151
"__id__": 161
},
{
"__id__": 153
"__id__": 163
},
{
"__id__": 155
"__id__": 165
},
{
"__id__": 157
"__id__": 171
},
{
"__id__": 159
"__id__": 177
}
],
"_active": true,
"_components": [
{
"__id__": 161
"__id__": 179
},
{
"__id__": 162
"__id__": 180
}
],
"_prefab": null,
......@@ -6719,31 +6716,31 @@
},
{
"__type__": "cc.Node",
"_name": "text_tip",
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 141
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 143
}
],
"_prefab": null,
"_opacity": 255,
"_opacity": 155,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 590,
"height": 390
"width": 10000,
"height": 10099
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -6777,7 +6774,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "4eZJ7j1oNKxa08se425/kC"
"_id": "8fOel4YA9MeIkpQ4WTOLLn"
},
{
"__type__": "cc.Sprite",
......@@ -6795,10 +6792,10 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d75fbd23-9dcb-4c3f-8b16-d2558c5accc5"
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -6809,22 +6806,28 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e8GIqWc7NP/5+gOcS+W859"
"_id": "64Mja9SDlJFK7IjGljX7GK"
},
{
"__type__": "cc.Node",
"_name": "btn_audio_clock",
"_name": "text_tip",
"_objFlags": 0,
"_parent": {
"__id__": 141
},
"_children": [],
"_active": false,
"_components": [
"_children": [
{
"__id__": 145
},
{
"__id__": 147
},
{
"__id__": 149
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -6836,8 +6839,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 106,
"height": 88
"width": 590,
"height": 390
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -6848,8 +6851,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
482.701,
-257.813,
12.487,
73.06,
0,
0,
0,
......@@ -6871,55 +6874,20 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "397YSEpmpPZa+tVH8smkkh"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 144
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "9122355e-5464-4c2b-b880-0b6a6eb117ef"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "9eEmJ2G6JODY+DxoAQgxvy"
"_id": "4eZJ7j1oNKxa08se425/kC"
},
{
"__type__": "cc.Node",
"_name": "btn_audio_start",
"_name": "text_tip",
"_objFlags": 0,
"_parent": {
"__id__": 141
"__id__": 144
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 147
},
{
"__id__": 148
"__id__": 146
}
],
"_prefab": null,
......@@ -6933,8 +6901,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 279,
"height": 101
"width": 590,
"height": 390
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -6945,8 +6913,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
300.18,
-258.149,
0,
0,
0,
0,
0,
......@@ -6968,14 +6936,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "7aSs4KaHZAqKnqygL8dXOr"
"_id": "774KtyxqZAxbARc00vcf4S"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 146
"__id__": 145
},
"_enabled": true,
"_materials": [
......@@ -6986,7 +6954,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "fa42d46c-df55-42c9-a024-f7aa098f83ba"
"__uuid__": "d75fbd23-9dcb-4c3f-8b16-d2558c5accc5"
},
"_type": 0,
"_sizeMode": 1,
......@@ -7000,103 +6968,35 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "cbRj8ldWtLrYS1H37xco9+"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 146
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "6dBG1J3plOLr5X7rZpJM2x"
"_id": "a8MrJmzGlK3oRv1EFJ4JsP"
},
{
"__type__": "cc.Node",
"_name": "btn_audio_stop",
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 141
"__id__": 144
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 150
"__id__": 148
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"r": 175,
"g": 121,
"b": 224,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 279,
"height": 101
"width": 580,
"height": 63
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -7107,8 +7007,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
301.492,
-258.277,
0,
143.206,
0,
0,
0,
......@@ -7130,14 +7030,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "3cYDLSTBtKYIfWdOqjxnjA"
"_id": "2bfHeo2c1ALYNjanKOanGd"
},
{
"__type__": "cc.Sprite",
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 149
"__id__": 147
},
"_enabled": true,
"_materials": [
......@@ -7147,35 +7047,38 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "b9c72757-521a-44ca-a9bd-83ca4980cc97"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
"_string": "There is the classroom",
"_N$string": "There is the classroom",
"_fontSize": 50,
"_lineHeight": 50,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "4b91d1cc-8fb5-4acd-bc75-6fed2f9e5636"
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "84XV8LFG9DoaiuHkz90f01"
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$cacheMode": 0,
"_id": "918NUQMldPQq6pX9QNGrys"
},
{
"__type__": "cc.Node",
"_name": "speak_ske",
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 141
"__id__": 144
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 152
"__id__": 150
}
],
"_prefab": null,
......@@ -7189,8 +7092,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 275,
"height": 278
"width": 550,
"height": 270
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -7201,15 +7104,15 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
20.376,
-252.261,
0,
-37.29,
0,
0,
0,
0,
1,
0.75,
0.75,
1,
1,
1
]
},
......@@ -7224,14 +7127,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "244GUUQgVOu7MCPpzgLudH"
"_id": "92cx5gLhZAjbcG6N8i9zCA"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 151
"__id__": 149
},
"_enabled": true,
"_materials": [
......@@ -7239,47 +7142,46 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "2d206cd0-cb89-49dd-883f-d1fcfde71db2#30ea8b2d-195a-4771-9473-8473e978e6ac",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "2d206cd0-cb89-49dd-883f-d1fcfde71db2"
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
},
"_N$dragonAtlasAsset": {
"__uuid__": "30ea8b2d-195a-4771-9473-8473e978e6ac"
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "a0zRE6TENECL/ci24VzPub"
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d4FrpEjWtAbJ8dogX17NzP"
},
{
"__type__": "cc.Node",
"_name": "bg_light-small",
"_name": "btn_audio_clock",
"_objFlags": 0,
"_parent": {
"__id__": 141
},
"_children": [],
"_active": false,
"_components": [
"_children": [
{
"__id__": 152
},
{
"__id__": 154
}
],
"_active": true,
"_components": [
{
"__id__": 157
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -7291,8 +7193,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 317,
"height": 315
"width": 106,
"height": 88
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -7303,8 +7205,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
482.701,
-257.813,
0,
0,
0,
......@@ -7326,52 +7228,20 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "25JBQfYtRDMK+Pu7LuEmsQ"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 153
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "438dc353-627d-4f18-8a5c-131e8366357e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "765JDeJxZMg6k3LuQSiGBe"
"_id": "397YSEpmpPZa+tVH8smkkh"
},
{
"__type__": "cc.Node",
"_name": "bg_light-big",
"_name": "time_0",
"_objFlags": 0,
"_parent": {
"__id__": 141
"__id__": 151
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 156
"__id__": 153
}
],
"_prefab": null,
......@@ -7385,8 +7255,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 697,
"height": 691
"width": 45.9,
"height": 63
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -7397,8 +7267,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
16.673,
-0.219,
0,
0,
0,
......@@ -7420,14 +7290,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "76m0cbHolOD7lKO+/pvGe6"
"_id": "b9zeL5QS5OSrWESFQdDKmR"
},
{
"__type__": "cc.Sprite",
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 155
"__id__": 152
},
"_enabled": true,
"_materials": [
......@@ -7437,35 +7307,41 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "feeff13e-b8ce-4a99-aa2b-8641d75f010b"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
"_string": "20",
"_N$string": "20",
"_fontSize": 50,
"_lineHeight": 50,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "8554a69c-42b9-426d-8b48-727195509b39"
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "94vjanAl9EQZT+x7InZdSu"
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "a0wrxKgJdJBKSKZ9wbW838"
},
{
"__type__": "cc.Node",
"_name": "bg_goodjob",
"_name": "time_1",
"_objFlags": 0,
"_parent": {
"__id__": 141
"__id__": 151
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 158
"__id__": 155
},
{
"__id__": 156
}
],
"_prefab": null,
......@@ -7473,14 +7349,14 @@
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"g": 145,
"b": 145,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 443,
"height": 332
"width": 33.379999999999995,
"height": 84.64
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -7491,8 +7367,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
47.449,
16.673,
1.515,
0,
0,
0,
......@@ -7514,14 +7390,67 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "b7QdEgOPJGbZo3NHAPRlII"
"_id": "eahHPKkxNPmL1tBocCxoWp"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 154
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "5",
"_N$string": "5",
"_fontSize": 64,
"_lineHeight": 64,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "8554a69c-42b9-426d-8b48-727195509b39"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "2ahl36Kh9GrpYaIvRTIT5m"
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 154
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 175,
"g": 7,
"b": 7,
"a": 255
},
"_width": 2,
"_id": "62xNSA5H9DIK3maSLmI1n4"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 157
"__id__": 151
},
"_enabled": true,
"_materials": [
......@@ -7532,7 +7461,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "cdcc23e2-2871-4058-9cc0-c4214b80ebcd"
"__uuid__": "9122355e-5464-4c2b-b880-0b6a6eb117ef"
},
"_type": 0,
"_sizeMode": 1,
......@@ -7546,18 +7475,21 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "adE3/iezJMZYrN2VY5xs6h"
"_id": "9eEmJ2G6JODY+DxoAQgxvy"
},
{
"__type__": "cc.Node",
"_name": "bg_tryagain",
"_name": "btn_audio_start",
"_objFlags": 0,
"_parent": {
"__id__": 141
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 159
},
{
"__id__": 160
}
......@@ -7573,8 +7505,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 345,
"height": 287
"width": 279,
"height": 101
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -7585,8 +7517,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
3.963,
11.842,
300.18,
-258.149,
0,
0,
0,
......@@ -7608,14 +7540,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "f0ebgWkk5DSaEWxorpU+QC"
"_id": "7aSs4KaHZAqKnqygL8dXOr"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 159
"__id__": 158
},
"_enabled": true,
"_materials": [
......@@ -7626,7 +7558,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3a265934-0558-4845-909a-a7c0558dc098"
"__uuid__": "fa42d46c-df55-42c9-a024-f7aa098f83ba"
},
"_type": 0,
"_sizeMode": 1,
......@@ -7640,128 +7572,88 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "02rcU8zKFPy57cgmZE0S8F"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 141
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 40,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1920,
"_originalHeight": 0,
"_id": "b3t+vjZSVAtJnwC6Vx0tm9"
"_id": "cbRj8ldWtLrYS1H37xco9+"
},
{
"__type__": "33705ydyx5Lkoj/0Ven15z4",
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 141
"__id__": 158
},
"_enabled": true,
"label": null,
"text": "hello",
"_id": "07WGuxiBdKeK96O8y958/7"
},
{
"__type__": "cc.Node",
"_name": "state",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 164
},
{
"__id__": 166
}
],
"_active": true,
"_components": [
{
"__id__": 168
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1334,
"height": 0
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "285OS5bVJNy6eAlPaYgCy8"
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "6dBG1J3plOLr5X7rZpJM2x"
},
{
"__type__": "cc.Node",
"_name": "bg_win",
"_name": "btn_audio_stop",
"_objFlags": 0,
"_parent": {
"__id__": 163
"__id__": 141
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 165
"__id__": 162
}
],
"_prefab": null,
......@@ -7775,8 +7667,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 815,
"height": 488
"width": 279,
"height": 101
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -7787,8 +7679,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
23.134,
58.165,
301.492,
-258.277,
0,
0,
0,
......@@ -7810,14 +7702,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "5e6UglIVZPmoD8U5FYr89U"
"_id": "3cYDLSTBtKYIfWdOqjxnjA"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 164
"__id__": 161
},
"_enabled": true,
"_materials": [
......@@ -7828,7 +7720,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "677e271f-5c8c-407a-b434-6c13aa1ab8d0"
"__uuid__": "b9c72757-521a-44ca-a9bd-83ca4980cc97"
},
"_type": 0,
"_sizeMode": 1,
......@@ -7842,20 +7734,20 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "5bB6WwSWxMnr/HpdTXNJdd"
"_id": "84XV8LFG9DoaiuHkz90f01"
},
{
"__type__": "cc.Node",
"_name": "bg_lose",
"_name": "speak_ske",
"_objFlags": 0,
"_parent": {
"__id__": 163
"__id__": 141
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 167
"__id__": 164
}
],
"_prefab": null,
......@@ -7869,8 +7761,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 803,
"height": 333
"width": 275,
"height": 278
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -7881,15 +7773,15 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
12.487,
20.376,
-252.261,
0,
0,
0,
0,
1,
1,
1,
0.75,
0.75,
1
]
},
......@@ -7904,14 +7796,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "9a6oFNCeJAgLa35Xo1g1vG"
"_id": "244GUUQgVOu7MCPpzgLudH"
},
{
"__type__": "cc.Sprite",
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 166
"__id__": 163
},
"_enabled": true,
"_materials": [
......@@ -7919,80 +7811,52 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "615c6080-6d29-49cb-8604-18c096288d0b"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
"_armatureName": "Armature",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "2d206cd0-cb89-49dd-883f-d1fcfde71db2#30ea8b2d-195a-4771-9473-8473e978e6ac",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "2d206cd0-cb89-49dd-883f-d1fcfde71db2"
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "0ebkLYhRRNVrKE4UYOZKDR"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 163
"_N$dragonAtlasAsset": {
"__uuid__": "30ea8b2d-195a-4771-9473-8473e978e6ac"
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 40,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1920,
"_originalHeight": 0,
"_id": "7bhiYCuAxM+IaAW1+6NxKU"
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "a0zRE6TENECL/ci24VzPub"
},
{
"__type__": "cc.Node",
"_name": "start",
"_name": "bg_goodjob",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 141
},
"_children": [
{
"__id__": 170
},
{
"__id__": 173
},
{
"__id__": 176
"__id__": 166
},
{
"__id__": 179
"__id__": 168
}
],
"_active": false,
"_components": [
{
"__id__": 188
},
{
"__id__": 189
"__id__": 170
}
],
"_prefab": null,
......@@ -8006,8 +7870,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1334,
"height": 1200
"width": 443,
"height": 332
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -8019,7 +7883,7 @@
"ctor": "Float64Array",
"array": [
0,
0,
47.449,
0,
0,
0,
......@@ -8041,38 +7905,35 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "capIEZg3tOpaW4vA7AEYlv"
"_id": "b7QdEgOPJGbZo3NHAPRlII"
},
{
"__type__": "cc.Node",
"_name": "panel_gray",
"_name": "bg_light-big",
"_objFlags": 0,
"_parent": {
"__id__": 169
"__id__": 165
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 171
},
{
"__id__": 172
"__id__": 167
}
],
"_prefab": null,
"_opacity": 150,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 5500,
"height": 5500
"width": 697,
"height": 691
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -8084,7 +7945,7 @@
"ctor": "Float64Array",
"array": [
0,
0,
-47.449,
0,
0,
0,
......@@ -8106,14 +7967,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "5a2OBbK01CUZsTnI8JWNok"
"_id": "76m0cbHolOD7lKO+/pvGe6"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 170
"__id__": 166
},
"_enabled": true,
"_materials": [
......@@ -8124,10 +7985,10 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
"__uuid__": "feeff13e-b8ce-4a99-aa2b-8641d75f010b"
},
"_type": 0,
"_sizeMode": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -8138,33 +7999,20 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "dd8pYopU9GH6Wc1HVg+W0B"
},
{
"__type__": "cc.BlockInputEvents",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 170
},
"_enabled": true,
"_id": "e4yCZbisZBGZqMqHEXBseL"
"_id": "94vjanAl9EQZT+x7InZdSu"
},
{
"__type__": "cc.Node",
"_name": "btn_start",
"_name": "bg_goodjob",
"_objFlags": 0,
"_parent": {
"__id__": 169
"__id__": 165
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 174
},
{
"__id__": 175
"__id__": 169
}
],
"_prefab": null,
......@@ -8178,8 +8026,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 407,
"height": 243
"width": 443,
"height": 332
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -8190,8 +8038,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
14.984,
39.957,
0,
0,
0,
0,
0,
......@@ -8213,14 +8061,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e5KnaxdR1K45k64E80HnsW"
"_id": "2fg1lliINBTYjVGznsgIfU"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 173
"__id__": 168
},
"_enabled": true,
"_materials": [
......@@ -8231,7 +8079,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "af364807-6c17-45d5-b6c5-f7f6ae29e830"
"__uuid__": "cdcc23e2-2871-4058-9cc0-c4214b80ebcd"
},
"_type": 0,
"_sizeMode": 1,
......@@ -8245,93 +8093,121 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b9WEtnIEJN36uERRc0wHll"
"_id": "8a9ZF4H+VFsZOaxpeHwuT1"
},
{
"__type__": "cc.Button",
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 173
"__id__": 165
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
"_enabled": false,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "cdcc23e2-2871-4058-9cc0-c4214b80ebcd"
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "adE3/iezJMZYrN2VY5xs6h"
},
{
"__type__": "cc.Node",
"_name": "bg_tryagain",
"_objFlags": 0,
"_parent": {
"__id__": 141
},
"_N$hoverColor": {
"_children": [
{
"__id__": 172
},
{
"__id__": 174
}
],
"_active": false,
"_components": [
{
"__id__": 176
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
"_contentSize": {
"__type__": "cc.Size",
"width": 345,
"height": 287
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 173
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
3.963,
11.842,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "57btGK5ftHapBJVGaJiIv5"
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "f0ebgWkk5DSaEWxorpU+QC"
},
{
"__type__": "cc.Node",
"_name": "btn_restart",
"_name": "bg_light-small",
"_objFlags": 0,
"_parent": {
"__id__": 169
"__id__": 171
},
"_children": [],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 177
},
{
"__id__": 178
"__id__": 173
}
],
"_prefab": null,
......@@ -8345,8 +8221,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 485,
"height": 243
"width": 317,
"height": 315
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -8357,8 +8233,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
7.492,
42.454,
78.999,
78.37,
0,
0,
0,
......@@ -8380,14 +8256,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "0cu71AiPBLq6+Rh99Of84+"
"_id": "25JBQfYtRDMK+Pu7LuEmsQ"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 176
"__id__": 172
},
"_enabled": true,
"_materials": [
......@@ -8398,7 +8274,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "2534f01e-9d4d-4f96-9974-0b6b8c10f5bb"
"__uuid__": "438dc353-627d-4f18-8a5c-131e8366357e"
},
"_type": 0,
"_sizeMode": 1,
......@@ -8412,103 +8288,146 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "fdkHScWapBfomnHs9j6bCX"
"_id": "765JDeJxZMg6k3LuQSiGBe"
},
{
"__type__": "cc.Button",
"_name": "",
"__type__": "cc.Node",
"_name": "bg_tryagain",
"_objFlags": 0,
"node": {
"__id__": 176
"_parent": {
"__id__": 171
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"_children": [],
"_active": true,
"_components": [
{
"__id__": 175
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
"_contentSize": {
"__type__": "cc.Size",
"width": 345,
"height": 287
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "57JQQ+fPFKCYenDf00sujO"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 174
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 176
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3a265934-0558-4845-909a-a7c0558dc098"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_id": "b3sVKz5e1PN4fADR0phF4M"
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "045s/3TmtJaayUEVl0+G3G"
},
{
"__type__": "cc.Node",
"_name": "bg_vs",
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"_parent": {
"__id__": 169
"node": {
"__id__": 171
},
"_children": [
{
"__id__": 180
},
{
"__id__": 182
},
"_enabled": true,
"_materials": [
{
"__id__": 184
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3a265934-0558-4845-909a-a7c0558dc098"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "02rcU8zKFPy57cgmZE0S8F"
},
{
"__type__": "cc.Node",
"_name": "bg_comeon",
"_objFlags": 0,
"_parent": {
"__id__": 141
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 186
},
{
"__id__": 187
"__id__": 178
}
],
"_prefab": null,
......@@ -8522,8 +8441,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1334,
"height": 415
"width": 405,
"height": 222
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -8535,7 +8454,7 @@
"ctor": "Float64Array",
"array": [
0,
17.912,
0,
0,
0,
0,
......@@ -8557,20 +8476,98 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "55U+QuPn5Ploql0HcomwoA"
"_id": "40KsKtO+9CEpD+i10P78QY"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 177
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "72241610-59a2-4499-a509-dfa3f818f2ce"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e2ae3OfvFDObOZCeiFUvDq"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 141
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 40,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1920,
"_originalHeight": 0,
"_id": "b3t+vjZSVAtJnwC6Vx0tm9"
},
{
"__type__": "33705ydyx5Lkoj/0Ven15z4",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 141
},
"_enabled": true,
"label": null,
"text": "hello",
"_id": "07WGuxiBdKeK96O8y958/7"
},
{
"__type__": "cc.Node",
"_name": "text_vs",
"_name": "state",
"_objFlags": 0,
"_parent": {
"__id__": 179
"__id__": 2
},
"_children": [],
"_children": [
{
"__id__": 182
},
{
"__id__": 184
}
],
"_active": true,
"_components": [
{
"__id__": 181
"__id__": 186
}
],
"_prefab": null,
......@@ -8584,8 +8581,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 197,
"height": 127
"width": 1334,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -8597,7 +8594,7 @@
"ctor": "Float64Array",
"array": [
0,
-17.912,
0,
0,
0,
0,
......@@ -8619,49 +8616,17 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "18qj54d4dODZMP43xxId8B"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 180
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "40e6fc10-67a1-452d-992d-265d08a73736"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a9tRfeoUZMVbTHDklDo/34"
"_id": "285OS5bVJNy6eAlPaYgCy8"
},
{
"__type__": "cc.Node",
"_name": "icon_player2",
"_name": "bg_win",
"_objFlags": 0,
"_parent": {
"__id__": 179
"__id__": 181
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 183
......@@ -8678,8 +8643,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 295,
"height": 295
"width": 815,
"height": 488
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -8690,8 +8655,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
279.687,
-16.638,
23.134,
58.165,
0,
0,
0,
......@@ -8713,7 +8678,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "3cKJbrgmtJv4LRFstDon42"
"_id": "5e6UglIVZPmoD8U5FYr89U"
},
{
"__type__": "cc.Sprite",
......@@ -8731,7 +8696,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "5616bbdc-b6e3-4810-933a-cd71066d9ac6"
"__uuid__": "677e271f-5c8c-407a-b434-6c13aa1ab8d0"
},
"_type": 0,
"_sizeMode": 1,
......@@ -8745,17 +8710,17 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "314oySgmlENq/C9LS1j4ul"
"_id": "5bB6WwSWxMnr/HpdTXNJdd"
},
{
"__type__": "cc.Node",
"_name": "icon_player1",
"_name": "bg_lose",
"_objFlags": 0,
"_parent": {
"__id__": 179
"__id__": 181
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 185
......@@ -8772,8 +8737,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 295,
"height": 295
"width": 803,
"height": 333
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -8784,8 +8749,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-278.179,
-10.131,
0,
12.487,
0,
0,
0,
......@@ -8807,7 +8772,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "6bbqvhk4RCiZU0EgaqIZy0"
"_id": "9a6oFNCeJAgLa35Xo1g1vG"
},
{
"__type__": "cc.Sprite",
......@@ -8825,7 +8790,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "25e1db33-a9ac-41b5-9dcb-13ead12acddb"
"__uuid__": "615c6080-6d29-49cb-8604-18c096288d0b"
},
"_type": 0,
"_sizeMode": 1,
......@@ -8839,85 +8804,14 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "dbMU9lt09BMrJabaRfilgt"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 179
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "15931dc2-2400-4794-9b4b-629eb9087922"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c33aspZFNLd6nz+HFR6RlP"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 179
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 40,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1920,
"_originalHeight": 0,
"_id": "ef7iEBNjpI4psJufcjxxB5"
},
{
"__type__": "13dcbpvyHZOHKj1s6BUfMsR",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 169
},
"_enabled": true,
"label": null,
"text": "hello",
"_id": "0cNADZZ0FC3IMfX69rJ+ZM"
"_id": "0ebkLYhRRNVrKE4UYOZKDR"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 169
"__id__": 181
},
"_enabled": true,
"alignMode": 1,
......@@ -8937,7 +8831,7 @@
"_isAbsVerticalCenter": true,
"_originalWidth": 1920,
"_originalHeight": 0,
"_id": "b0pI3w6clDcrsq0Xtd2dtj"
"_id": "7bhiYCuAxM+IaAW1+6NxKU"
},
{
"__type__": "cc.Node",
......@@ -8947,6 +8841,9 @@
"__id__": 2
},
"_children": [
{
"__id__": 188
},
{
"__id__": 191
},
......@@ -8958,15 +8855,12 @@
},
{
"__id__": 200
},
{
"__id__": 203
}
],
"_active": false,
"_components": [
{
"__id__": 205
"__id__": 202
}
],
"_prefab": null,
......@@ -9022,16 +8916,16 @@
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_parent": {
"__id__": 190
"__id__": 187
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 192
"__id__": 189
},
{
"__id__": 193
"__id__": 190
}
],
"_prefab": null,
......@@ -9087,7 +8981,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 191
"__id__": 188
},
"_enabled": true,
"_materials": [
......@@ -9119,7 +9013,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 191
"__id__": 188
},
"_enabled": true,
"alignMode": 1,
......@@ -9146,16 +9040,16 @@
"_name": "bg_vs",
"_objFlags": 0,
"_parent": {
"__id__": 190
"__id__": 187
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 195
"__id__": 192
},
{
"__id__": 196
"__id__": 193
}
],
"_prefab": null,
......@@ -9211,7 +9105,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 194
"__id__": 191
},
"_enabled": true,
"_materials": [
......@@ -9243,7 +9137,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 194
"__id__": 191
},
"_enabled": true,
"alignMode": 1,
......@@ -9270,16 +9164,16 @@
"_name": "player1",
"_objFlags": 0,
"_parent": {
"__id__": 190
"__id__": 187
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 198
"__id__": 195
},
{
"__id__": 199
"__id__": 196
}
],
"_prefab": null,
......@@ -9335,7 +9229,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 197
"__id__": 194
},
"_enabled": true,
"_materials": [
......@@ -9367,7 +9261,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 197
"__id__": 194
},
"_enabled": false,
"alignMode": 1,
......@@ -9394,16 +9288,16 @@
"_name": "player2",
"_objFlags": 0,
"_parent": {
"__id__": 190
"__id__": 187
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 201
"__id__": 198
},
{
"__id__": 202
"__id__": 199
}
],
"_prefab": null,
......@@ -9459,7 +9353,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 200
"__id__": 197
},
"_enabled": true,
"_materials": [
......@@ -9491,7 +9385,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 200
"__id__": 197
},
"_enabled": false,
"alignMode": 1,
......@@ -9518,13 +9412,13 @@
"_name": "icon_vs",
"_objFlags": 0,
"_parent": {
"__id__": 190
"__id__": 187
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 204
"__id__": 201
}
],
"_prefab": null,
......@@ -9580,7 +9474,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 203
"__id__": 200
},
"_enabled": true,
"_materials": [
......@@ -9612,7 +9506,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 190
"__id__": 187
},
"_enabled": true,
"alignMode": 1,
......@@ -9643,16 +9537,16 @@
},
"_children": [
{
"__id__": 207
"__id__": 204
},
{
"__id__": 209
"__id__": 206
},
{
"__id__": 211
"__id__": 208
},
{
"__id__": 213
"__id__": 210
}
],
"_active": false,
......@@ -9710,13 +9604,13 @@
"_name": "New Sprite(Splash)",
"_objFlags": 0,
"_parent": {
"__id__": 206
"__id__": 203
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 208
"__id__": 205
}
],
"_prefab": null,
......@@ -9772,7 +9666,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 207
"__id__": 204
},
"_enabled": true,
"_materials": [
......@@ -9804,13 +9698,13 @@
"_name": "bg_di",
"_objFlags": 0,
"_parent": {
"__id__": 206
"__id__": 203
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 210
"__id__": 207
}
],
"_prefab": null,
......@@ -9866,7 +9760,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 209
"__id__": 206
},
"_enabled": true,
"_materials": [
......@@ -9898,13 +9792,13 @@
"_name": "desc",
"_objFlags": 0,
"_parent": {
"__id__": 206
"__id__": 203
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 212
"__id__": 209
}
],
"_prefab": null,
......@@ -9919,7 +9813,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 800,
"height": 304.92
"height": 262.92
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -9931,7 +9825,7 @@
"ctor": "Float64Array",
"array": [
7.706,
50.337,
62.695,
0,
0,
0,
......@@ -9960,7 +9854,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 211
"__id__": 208
},
"_enabled": true,
"_materials": [
......@@ -9972,10 +9866,12 @@
"_dstBlendFactor": 771,
"_string": "调皮的地鼠偷走了魔法卡牌,亲爱的小玩家,请仔细听游戏指令,快速找到藏着正确魔法卡牌的地鼠,用锤子敲打它,就能夺回魔法卡牌。在本次的游戏中,你将和其他玩家进行PK,游戏结束,获得魔法卡牌数量最多的玩家,将获得胜利。最后根据获得的魔法卡牌数量,你将获得相应的能量石奖励!开始挑战吧!",
"_N$string": "调皮的地鼠偷走了魔法卡牌,亲爱的小玩家,请仔细听游戏指令,快速找到藏着正确魔法卡牌的地鼠,用锤子敲打它,就能夺回魔法卡牌。在本次的游戏中,你将和其他玩家进行PK,游戏结束,获得魔法卡牌数量最多的玩家,将获得胜利。最后根据获得的魔法卡牌数量,你将获得相应的能量石奖励!开始挑战吧!",
"_fontSize": 35,
"_fontSize": 30,
"_lineHeight": 42,
"_enableWrapText": true,
"_N$file": null,
"_N$file": {
"__uuid__": "2b11885a-0cc4-48d2-9e8d-58be5f769274"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
......@@ -9993,16 +9889,16 @@
"_name": "btn_start",
"_objFlags": 0,
"_parent": {
"__id__": 206
"__id__": 203
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 214
"__id__": 211
},
{
"__id__": 215
"__id__": 212
}
],
"_prefab": null,
......@@ -10058,7 +9954,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 213
"__id__": 210
},
"_enabled": true,
"_materials": [
......@@ -10090,7 +9986,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 213
"__id__": 210
},
"_enabled": true,
"_normalMaterial": null,
......@@ -10162,22 +10058,22 @@
},
"_children": [
{
"__id__": 217
"__id__": 214
},
{
"__id__": 219
"__id__": 216
},
{
"__id__": 221
"__id__": 218
},
{
"__id__": 223
"__id__": 220
},
{
"__id__": 225
"__id__": 222
},
{
"__id__": 227
"__id__": 224
}
],
"_active": true,
......@@ -10235,13 +10131,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 216
"__id__": 213
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 218
"__id__": 215
}
],
"_prefab": null,
......@@ -10297,7 +10193,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 217
"__id__": 214
},
"_enabled": true,
"_materials": [
......@@ -10329,13 +10225,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 216
"__id__": 213
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 220
"__id__": 217
}
],
"_prefab": null,
......@@ -10391,7 +10287,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 219
"__id__": 216
},
"_enabled": true,
"_materials": [
......@@ -10423,13 +10319,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 216
"__id__": 213
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 222
"__id__": 219
}
],
"_prefab": null,
......@@ -10485,7 +10381,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 221
"__id__": 218
},
"_enabled": true,
"_materials": [
......@@ -10517,13 +10413,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 216
"__id__": 213
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 224
"__id__": 221
}
],
"_prefab": null,
......@@ -10579,7 +10475,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 223
"__id__": 220
},
"_enabled": true,
"_materials": [
......@@ -10611,13 +10507,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 216
"__id__": 213
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 226
"__id__": 223
}
],
"_prefab": null,
......@@ -10673,7 +10569,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 225
"__id__": 222
},
"_enabled": true,
"_materials": [
......@@ -10705,13 +10601,13 @@
"_name": "bg_sahua",
"_objFlags": 0,
"_parent": {
"__id__": 216
"__id__": 213
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 228
"__id__": 225
}
],
"_prefab": null,
......@@ -10767,7 +10663,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 227
"__id__": 224
},
"_enabled": true,
"_materials": [
......
......@@ -67,7 +67,6 @@ export default class NewClass extends MyCocosSceneComponent {
this.layout_start.active = true;
pg.audio.playAudioByUrl(Game.getIns().question.audio);
// this.log("test initView")
}
initEvent() {
pg.view.touchOn(pg.view.find(this.layout_start, 'btn_start'), this.onTouchStart, this);
......@@ -79,8 +78,17 @@ export default class NewClass extends MyCocosSceneComponent {
pg.event.on("speak_fail", () => { this.onSpeakFail() });
}
onTouchStart() {
this.layout_start.active = false;
cc.audioEngine.stopAllEffects();
this.playLocalAudio('btn');
this.showVs();
}
private showVs() {
setTimeout(() => {
pg.event.emit("game_start");
}, 100);
if(1)return;
let vs = cc.find("vs", this.node);
vs.active = true;
let player1 = cc.find("player1", vs);
......@@ -101,12 +109,6 @@ export default class NewClass extends MyCocosSceneComponent {
vs.active = false;
}).start();
}
onTouchStart() {
this.layout_start.active = false;
cc.audioEngine.stopAllEffects();
this.playLocalAudio('btn');
this.showVs();
}
//-----------------------------流程------------------------------
......@@ -115,7 +117,6 @@ export default class NewClass extends MyCocosSceneComponent {
private turnRobot: boolean;//当前是谁操作
private robotLevel: number;
onGameStart() {
this.initTouzi();
this.log("test onGameStart")
this.playerPoint = 0;
this.robotPoint = 0;
......@@ -129,7 +130,8 @@ export default class NewClass extends MyCocosSceneComponent {
this.robotLevel = 2;//0 1 2 三个级别 0 最高
}
this.initChess();
this.scheduleOnce(this.startTouzi, 2.1);
this.initTouzi();
this.scheduleOnce(this.startTouzi, 1.1);
}
onSpeakScueess() {
//执行后续的动作。
......
import pg from '"./tool/pg"'
// [
// {
// "id": 1,
......
......@@ -10,7 +10,7 @@ import pg from "./tool/pg";
const { ccclass, property } = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
export default class SpeakRecord extends cc.Component {
@property(cc.Label)
label: cc.Label = null;
......@@ -19,26 +19,35 @@ export default class NewClass extends cc.Component {
text: string = 'hello';
// LIFE-CYCLE CALLBACKS:
private bg: cc.Node;
private text_tip: cc.Node;
private btn_audio_start: cc.Node;
private btn_audio_stop: cc.Node;
private btn_audio_clock: cc.Node;
private speak_ske: cc.Node;
private bg_goodjob: cc.Node;
private bg_tryagain: cc.Node;
private bg_comeon: cc.Node;
onLoad() {
this.bg = pg.view.find(this, "bg");
this.text_tip = pg.view.find(this, "text_tip");
this.btn_audio_start = pg.view.find(this, "btn_audio_start");
this.btn_audio_stop = pg.view.find(this, "btn_audio_stop");
this.btn_audio_clock = pg.view.find(this, "btn_audio_clock");
this.speak_ske = pg.view.find(this, "speak_ske");
this.bg_goodjob = pg.view.find(this, "bg_goodjob");
this.bg_tryagain = pg.view.find(this, "bg_tryagain");
this.bg_comeon = pg.view.find(this, "bg_comeon");
pg.view.visible(this.btn_audio_clock, false);
pg.view.visible(this.bg, false);
pg.view.visible(this.text_tip, false);
pg.view.visible(this.btn_audio_start, false);
pg.view.visible(this.btn_audio_stop, false);
pg.view.visible(this.speak_ske, false);
pg.view.visible(this.bg_goodjob, false);
pg.view.visible(this.bg_tryagain, false);
pg.view.visible(this.bg_comeon, false);
pg.view.touchOn(this.btn_audio_start, this.onTouchStart, this);
pg.view.touchOn(this.btn_audio_stop, this.onTouchStop, this);
......@@ -58,35 +67,95 @@ export default class NewClass extends cc.Component {
}
private tryCount: number;
private val: string;
private data: any;
open(cell) {
if (cell) {
this.data = cell;
this.val = cell.value;
}
pg.view.visible(this.bg, true);
pg.view.visible(this.text_tip, true);
pg.view.visible(this.btn_audio_start, true);
pg.view.visible(this.btn_audio_stop, false);
pg.view.visible(this.speak_ske, true);
pg.view.visible(this.bg_goodjob, false);
pg.view.visible(this.bg_tryagain, false);
pg.view.visible(this.bg_comeon, false);
this.updateBoard();
}
close() {
pg.view.visible(this.bg, false);
pg.view.visible(this.text_tip, false);
pg.view.visible(this.btn_audio_start, false);
pg.view.visible(this.btn_audio_stop, false);
pg.view.visible(this.speak_ske, false);
pg.view.visible(this.bg_goodjob, false);
pg.view.visible(this.bg_tryagain, false);
pg.view.visible(this.bg_comeon, false);
}
updateBoard() {
let text = pg.view.find(this.text_tip, "text");
let img = pg.view.find(this.text_tip, "img");
let ext = this.data.ext;
pg.view.setNetImg(img, ext.img, { w: 550, h: 270 })
pg.view.setString(text, ext.text);
this.onTouchVoice();
pg.view.touchOn(img, this.onTouchVoice, this);
}
private audioId;
onTouchVoice() {
this.audioId = null;
if (this.data.ext.audio) {
pg.audio.playAudioByUrl(this.data.ext.audio).then(audioId => {
this.audioId = audioId;
})
}
}
private time: number;
openClock() {
pg.view.visible(this.btn_audio_clock, true);
this.unschedule(this.updateClock);
this.time = Number(this.data.ext.time) || 20;
this.schedule(this.updateClock, 0.03);
}
updateClock() {
this.time -= 0.03;
let time_0 = pg.view.find(this.btn_audio_clock, 'time_0');
let time_1 = pg.view.find(this.btn_audio_clock, 'time_1');
let showTime = Math.ceil(this.time);
pg.view.setString(time_0, showTime);
pg.view.setString(time_1, showTime);
time_0.active = showTime > 5;
time_1.active = showTime <= 5;
if (showTime == 0) {
this.unschedule(this.updateClock);
this.scheduleOnce(() => {
pg.view.visible(this.btn_audio_clock, false);
this.onTouchStop();
}, .2)
}
}
closeClock() {
pg.view.visible(this.btn_audio_clock, false);
this.unschedule(this.updateClock);
}
onTouchStart() {
if (this.audioId) {
cc.audioEngine.stopEffect(this.audioId);
this.audioId = null;
}
pg.view.playDBAnimation(this.speak_ske, "newAnimation", 0);
pg.view.visible(this.btn_audio_start, false);
pg.view.visible(this.btn_audio_stop, true);
this.openClock();
let win: any = window;
win.courseware && win.courseware.startTest(this.val); //开始录音
}
onTouchStop() {
this.closeClock();
pg.view.visible(this.btn_audio_start, false);
pg.view.visible(this.btn_audio_stop, false);
let win: any = window;
......@@ -103,7 +172,7 @@ export default class NewClass extends cc.Component {
"fluency": 60,
"rhythm": 90,
"kernel_version": "5.2.4",
"overall": 75,
"overall": 35,//75
"integrity": 100,
"duration": "6.779",
"rear_tone": "fall",
......@@ -131,7 +200,8 @@ export default class NewClass extends cc.Component {
pg.view.visible(this.speak_ske, false);
pg.view.visible(this.bg_goodjob, false);
pg.view.visible(this.bg_tryagain, false);
if (score > 50) {
pg.view.visible(this.bg_comeon, false);
if (score > 40) {
pg.hw.playLocalAudio("goodjob");
pg.view.visible(this.bg_goodjob, true);
this.scheduleOnce(() => {
......@@ -140,8 +210,8 @@ export default class NewClass extends cc.Component {
}, 2.5)
} else {
if (this.tryCount >= 1) {
pg.view.visible(this.bg_tryagain, true);
pg.hw.playLocalAudio("tryagain");
pg.view.visible(this.bg_comeon, true);
pg.hw.playLocalAudio("comeon");
this.tryCount++;
//需要处理提供两次机会。重置一次到open状态
this.scheduleOnce(() => {
......
import pg from "./tool/pg";
const { ccclass, property } = cc._decorator;
@ccclass
export default class NewClass extends cc.Component {
@property(cc.Label)
label: cc.Label = null;
@property
text: string = 'hello';
// LIFE-CYCLE CALLBACKS:
onLoad() {
this.initView();
let panel_gray = pg.view.find(this, "panel_gray");
let btn_start = pg.view.find(this, "btn_start");
let btn_restart = pg.view.find(this, "btn_restart");
let bg_vs = pg.view.find(this, "bg_vs");
pg.view.touchOn(btn_start, this.onTouchStart, this);
pg.view.touchOn(btn_restart, this.onTouchRestart, this);
pg.event.on("game_over", () => {
this.onGameOver();
})
}
protected onDestroy(): void {
pg.event.off("game_over");
cc.Tween.stopAll();
this.unscheduleAllCallbacks();
}
initView() {
let panel_gray = pg.view.find(this, "panel_gray");
let btn_start = pg.view.find(this, "btn_start");
let btn_restart = pg.view.find(this, "btn_restart");
let bg_vs = pg.view.find(this, "bg_vs");
pg.view.visible(panel_gray, true);
pg.view.visible(btn_start, true);
}
onTouchStart() {
pg.hw.playLocalAudio("vs");
let panel_gray = pg.view.find(this, "panel_gray");
let btn_start = pg.view.find(this, "btn_start");
let btn_restart = pg.view.find(this, "btn_restart");
let bg_vs = pg.view.find(this, "bg_vs");
pg.view.visible(panel_gray, true);
pg.view.visible(btn_start, false);
pg.view.visible(bg_vs, true);
if (bg_vs) {
bg_vs.y = 1000;
cc.tween(bg_vs).to(0.2, { y: 0 }).start();
}
pg.event.emit("game_start");
this.scheduleOnce(() => {
pg.view.visible(bg_vs, false);
pg.view.visible(panel_gray, false);
}, 2)
}
onTouchRestart() {
pg.hw.playLocalAudio("vs");
let panel_gray = pg.view.find(this, "panel_gray");
let btn_start = pg.view.find(this, "btn_start");
let btn_restart = pg.view.find(this, "btn_restart");
let bg_vs = pg.view.find(this, "bg_vs");
pg.view.visible(panel_gray, true);
pg.view.visible(btn_start, false);
pg.view.visible(btn_restart, false);
pg.view.visible(bg_vs, true);
this.scheduleOnce(() => {
pg.view.visible(bg_vs, false);
pg.view.visible(panel_gray, false);
pg.view.visible(btn_restart, false);
pg.event.emit("game_start");
}, 2)
}
onGameOver() {
let panel_gray = pg.view.find(this, "panel_gray");
let btn_restart = pg.view.find(this, "btn_restart");
let bg_vs = pg.view.find(this, "bg_vs");
pg.view.visible(panel_gray, true);
pg.view.visible(btn_restart, true);
}
update(dt) { }
}
{
"ver": "1.0.8",
"uuid": "13dcba6f-c876-4e1c-a8f5-b3a0547ccb11",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
......@@ -72,6 +72,7 @@ export default class Game {
public singleGame: boolean;
public question: { text, audio };
public title: string;
public map: any;
public init(data) {
this.singleGame = !data.onlineFlg;
this.question = { text: data.questionText, audio: data.questionTextAudio };
......@@ -80,6 +81,7 @@ export default class Game {
this.lists = [];
this.bgm = data.bgAudio;
this.data = data.options;
this.map = map
}
public start: boolean;
public page: number;
......@@ -93,11 +95,29 @@ export default class Game {
let data = this.data[i];
this.lists.push(new Item(data, i + 1));
}
this.lists.forEach((item) => {
let arr = this.map.filter(m => {
if (m.type === '1') {
m.value = null;
return true;
}
return false;
})
while (arr.length > 0) {
this.lists.forEach((item) => {
if (arr.length == 0) return;
let i = Math.floor(Math.random() * arr.length);
let datas = arr.splice(i, 1)
datas[0].value = item.text;
datas[0].ext = item;
})
}
}
mapFull() {
}
getMap() {
return map;
// 针对map进行一次加工
return this.map;
}
}
\ No newline at end of file
export const defaultData = { "onlineFlg": false, "title": "急速前进", "questionText": "亲爱的小玩家,在本次的游戏中,你将和其他玩家进行PK。每人拥有一颗棋子,放置在地图起点位置。两位玩家轮流扔骰子,根据骰子的点数,在地图上移动相应的步数,每到达一个地点,将要完成相应的任务。任务完成,棋子可以停留,否则,棋子需要退回上一个地点。最后,最先到达终点的玩家,获得胜利。\n 游戏结束,根据你的表现,你将获得相应的能量石奖励!开始挑战吧!", "questionTextAudio": "http://staging-teach.cdn.ireadabc.com/e976f22632fea6f542ea3cf611e43ff9_l.mp3", "options": [{ "image": "http://staging-teach.cdn.ireadabc.com/d74029cc48f4312ed2df9e92fa3059cf.png", "audio": "http://staging-teach.cdn.ireadabc.com/227c25a67e1398026bd6185bf9a6e87c_l.mp3", "audioName": "ta.mp3", "text": "come", "time": "10", "tip": "this is tip " }, { "image": "http://staging-teach.cdn.ireadabc.com/d267295e48026fb74bcf2424cd626c77.png", "audio": "http://staging-teach.cdn.ireadabc.com/0913981cdeb2c6bc785de1054e80a500_l.mp3", "audioName": "co.mp3", "text": "good", "time": "10", "tip": "" }, { "image": "http://staging-teach.cdn.ireadabc.com/37071997ef50fd979843c9719c26176f.png", "audio": "", "audioName": "", "text": "player", "time": "20", "tip": "player" }, { "image": "http://staging-teach.cdn.ireadabc.com/fecbb8471427a38d68486ae1bbc6c25c.png", "audio": "", "audioName": "", "text": "robot", "time": "15", "tip": "" }], "bgAudio": "", "audioBgName": "", "audioName": "急速前进" }
\ No newline at end of file
export const defaultData = {
"onlineFlg": false,
"title": "急速前进",
"questionText": "亲爱的小玩家,在本次的游戏中,你将和其他玩家进行PK。每人拥有一颗棋子,放置在地图起点位置。两位玩家轮流扔骰子,根据骰子的点数,在地图上移动相应的步数,每到达一个地点,将要完成相应的任务。任务完成,棋子可以停留,否则,棋子需要退回上一个地点。最后,最先到达终点的玩家,获得胜利。\n 游戏结束,根据你的表现,你将获得相应的能量石奖励!开始挑战吧!", "questionTextAudio": "http://staging-teach.cdn.ireadabc.com/e976f22632fea6f542ea3cf611e43ff9_l.mp3",
"options": [{
"image": "http://staging-teach.cdn.ireadabc.com/d74029cc48f4312ed2df9e92fa3059cf.png", "audio": "http://staging-teach.cdn.ireadabc.com/227c25a67e1398026bd6185bf9a6e87c_l.mp3", "audioName": "ta.mp3", "text": "come", "time": "10", "tip": "this is tip "
},
{
"image": "http://staging-teach.cdn.ireadabc.com/d267295e48026fb74bcf2424cd626c77.png", "audio": "http://staging-teach.cdn.ireadabc.com/0913981cdeb2c6bc785de1054e80a500_l.mp3", "audioName": "co.mp3", "text": "good", "time": "10", "tip": ""
},
{
"image": "http://staging-teach.cdn.ireadabc.com/37071997ef50fd979843c9719c26176f.png", "audio": "http://staging-teach.cdn.ireadabc.com/227c25a67e1398026bd6185bf9a6e87c_l.mp3", "audioName": "", "text": "player", "time": "20", "tip": "player"
}
, {
"image": "http://staging-teach.cdn.ireadabc.com/fecbb8471427a38d68486ae1bbc6c25c.png", "audio": "http://staging-teach.cdn.ireadabc.com/227c25a67e1398026bd6185bf9a6e87c_l.mp3", "audioName": "", "text": "robot", "time": "15", "tip": ""
}],
"bgAudio": "", "audioBgName": "", "audioName": "急速前进"
}
\ 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