Commit a65acba6 authored by 杨一航's avatar 杨一航

add

parent d839df51
{
"ver": "2.0.1",
"uuid": "27d2950b-be88-42a5-92ad-b052a8abe60d",
"downloadMode": 0,
"duration": 1.032,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.0.1",
"uuid": "cd0f3fe8-0035-4260-a348-7258fa68d0da",
"downloadMode": 0,
"duration": 0.984,
"subMetas": {}
}
\ No newline at end of file
......@@ -84,37 +84,40 @@
"__id__": 249
},
{
"__id__": 263
"__id__": 254
},
{
"__id__": 280
"__id__": 268
},
{
"__id__": 282
"__id__": 285
},
{
"__id__": 306
"__id__": 287
},
{
"__id__": 314
"__id__": 311
},
{
"__id__": 331
"__id__": 319
},
{
"__id__": 372
"__id__": 336
},
{
"__id__": 377
}
],
"_active": true,
"_components": [
{
"__id__": 377
"__id__": 382
},
{
"__id__": 378
"__id__": 383
},
{
"__id__": 379
"__id__": 384
}
],
"_prefab": null,
......@@ -11780,7 +11783,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 70.98,
"width": 0,
"height": 100.8
},
"_anchorPoint": {
......@@ -11981,7 +11984,7 @@
},
{
"__type__": "cc.Node",
"_name": "topRoot",
"_name": "btn_record",
"_objFlags": 0,
"_parent": {
"__id__": 2
......@@ -11989,15 +11992,15 @@
"_children": [
{
"__id__": 250
},
{
"__id__": 256
}
],
"_active": true,
"_components": [
{
"__id__": 262
"__id__": 252
},
{
"__id__": 253
}
],
"_prefab": null,
......@@ -12011,8 +12014,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 200,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -12023,8 +12026,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
910,
717.461,
-259.626,
0,
0,
0,
......@@ -12046,39 +12049,35 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "ebBfH8kMpMKL48BBs3t5sR"
"_id": "abWfztCXtOBI3Cpo82KyvL"
},
{
"__type__": "cc.Node",
"_name": "redHead",
"_name": "lb",
"_objFlags": 0,
"_parent": {
"__id__": 249
},
"_children": [
{
"__id__": 251
}
],
"_children": [],
"_active": true,
"_components": [
{
"__id__": 255
"__id__": 251
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 200,
"height": 200
"width": 180,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -12089,8 +12088,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
845.032,
-63.299,
0,
0,
0,
0,
0,
......@@ -12112,24 +12111,160 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "92CjySiMNN3bCgqymkhbWu"
"_id": "c7f4nISL9Gt6H7i2cXWADL"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 250
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "点击开始录音",
"_N$string": "点击开始录音",
"_fontSize": 30,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "8ddQ2luOpGoKa5yi91GG1N"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 249
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "56nQZizTFCtpvym5sIInQe"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 249
},
"_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": "c5NKFCEnlKNLDpELAAaWk8"
},
{
"__type__": "cc.Node",
"_name": "red",
"_name": "topRoot",
"_objFlags": 0,
"_parent": {
"__id__": 250
"__id__": 2
},
"_children": [
{
"__id__": 252
"__id__": 255
},
{
"__id__": 261
}
],
"_active": true,
"_components": [
{
"__id__": 254
"__id__": 267
}
],
"_prefab": null,
......@@ -12143,8 +12278,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 170,
"height": 170
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -12155,8 +12290,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-0.796,
-0.336,
0,
910,
0,
0,
0,
......@@ -12178,20 +12313,24 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "05f8/M9B5CEo3zsy4F3nPC"
"_id": "ebBfH8kMpMKL48BBs3t5sR"
},
{
"__type__": "cc.Node",
"_name": "headIcon",
"_name": "redHead",
"_objFlags": 0,
"_parent": {
"__id__": 251
"__id__": 254
},
"_children": [],
"_children": [
{
"__id__": 256
}
],
"_active": true,
"_components": [
{
"__id__": 253
"__id__": 260
}
],
"_prefab": null,
......@@ -12205,8 +12344,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"height": 180
"width": 200,
"height": 200
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -12217,8 +12356,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
845.032,
-63.299,
0,
0,
0,
......@@ -12240,36 +12379,164 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "29u7psF2dG7olsI5ubOpH9"
"_id": "92CjySiMNN3bCgqymkhbWu"
},
{
"__type__": "cc.Sprite",
"_name": "",
"__type__": "cc.Node",
"_name": "red",
"_objFlags": 0,
"node": {
"__id__": 252
"_parent": {
"__id__": 255
},
"_enabled": true,
"_materials": [
"_children": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"__id__": 257
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_active": true,
"_components": [
{
"__id__": 259
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 170,
"height": 170
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-0.796,
-0.336,
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": "05f8/M9B5CEo3zsy4F3nPC"
},
{
"__type__": "cc.Node",
"_name": "headIcon",
"_objFlags": 0,
"_parent": {
"__id__": 256
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 258
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"height": 180
},
"_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": "29u7psF2dG7olsI5ubOpH9"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 257
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "56ohGi3k9Eepc3Sfp7MTAx"
......@@ -12279,7 +12546,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 251
"__id__": 256
},
"_enabled": true,
"_materials": [
......@@ -12299,7 +12566,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 250
"__id__": 255
},
"_enabled": true,
"_materials": [
......@@ -12331,17 +12598,17 @@
"_name": "blueHead",
"_objFlags": 0,
"_parent": {
"__id__": 249
"__id__": 254
},
"_children": [
{
"__id__": 257
"__id__": 262
}
],
"_active": true,
"_components": [
{
"__id__": 261
"__id__": 266
}
],
"_prefab": null,
......@@ -12397,17 +12664,17 @@
"_name": "blue",
"_objFlags": 0,
"_parent": {
"__id__": 256
"__id__": 261
},
"_children": [
{
"__id__": 258
"__id__": 263
}
],
"_active": true,
"_components": [
{
"__id__": 260
"__id__": 265
}
],
"_prefab": null,
......@@ -12463,13 +12730,13 @@
"_name": "headIcon",
"_objFlags": 0,
"_parent": {
"__id__": 257
"__id__": 262
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 259
"__id__": 264
}
],
"_prefab": null,
......@@ -12525,7 +12792,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 258
"__id__": 263
},
"_enabled": true,
"_materials": [
......@@ -12557,7 +12824,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 257
"__id__": 262
},
"_enabled": true,
"_materials": [
......@@ -12577,7 +12844,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 256
"__id__": 261
},
"_enabled": true,
"_materials": [
......@@ -12609,7 +12876,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 249
"__id__": 254
},
"_enabled": true,
"alignMode": 1,
......@@ -12640,13 +12907,13 @@
},
"_children": [
{
"__id__": 264
"__id__": 269
}
],
"_active": true,
"_components": [
{
"__id__": 279
"__id__": 284
}
],
"_prefab": null,
......@@ -12702,26 +12969,26 @@
"_name": "catStand",
"_objFlags": 0,
"_parent": {
"__id__": 263
"__id__": 268
},
"_children": [
{
"__id__": 265
"__id__": 270
},
{
"__id__": 269
"__id__": 274
},
{
"__id__": 273
"__id__": 278
}
],
"_active": true,
"_components": [
{
"__id__": 277
"__id__": 282
},
{
"__id__": 278
"__id__": 283
}
],
"_prefab": null,
......@@ -12777,17 +13044,17 @@
"_name": "pp",
"_objFlags": 0,
"_parent": {
"__id__": 264
"__id__": 269
},
"_children": [
{
"__id__": 266
"__id__": 271
}
],
"_active": true,
"_components": [
{
"__id__": 268
"__id__": 273
}
],
"_prefab": null,
......@@ -12843,13 +13110,13 @@
"_name": "lb",
"_objFlags": 0,
"_parent": {
"__id__": 265
"__id__": 270
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 267
"__id__": 272
}
],
"_prefab": null,
......@@ -12863,8 +13130,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 390,
"height": 187.8
"width": 436.15,
"height": 210.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -12905,7 +13172,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 266
"__id__": 271
},
"_enabled": true,
"_materials": [
......@@ -12915,10 +13182,10 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "点击气泡框按照下列方式问:\nIs your word (正确单词)\nCan you eat it?\nIt is (颜色)?\nIt is a/an animal/fruit?\n",
"_N$string": "点击气泡框按照下列方式问:\nIs your word (正确单词)\nCan you eat it?\nIt is (颜色)?\nIt is a/an animal/fruit?\n",
"_fontSize": 30,
"_lineHeight": 30,
"_string": "Is your word (正确单词)\nCan you eat it?\nIt is (颜色)?\nIt is a/an animal/fruit?\n",
"_N$string": "Is your word (正确单词)\nCan you eat it?\nIt is (颜色)?\nIt is a/an animal/fruit?\n",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "5811d0aa-126e-4827-a2e1-3a4e79cb1488"
......@@ -12940,7 +13207,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 265
"__id__": 270
},
"_enabled": true,
"_materials": [
......@@ -12972,17 +13239,17 @@
"_name": "cat",
"_objFlags": 0,
"_parent": {
"__id__": 264
"__id__": 269
},
"_children": [
{
"__id__": 270
"__id__": 275
}
],
"_active": true,
"_components": [
{
"__id__": 272
"__id__": 277
}
],
"_prefab": null,
......@@ -13038,13 +13305,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 269
"__id__": 274
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 271
"__id__": 276
}
],
"_prefab": null,
......@@ -13100,7 +13367,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 270
"__id__": 275
},
"_enabled": true,
"_normalMaterial": null,
......@@ -13168,7 +13435,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 269
"__id__": 274
},
"_enabled": true,
"_materials": [
......@@ -13208,17 +13475,17 @@
"_name": "clock",
"_objFlags": 0,
"_parent": {
"__id__": 264
"__id__": 269
},
"_children": [
{
"__id__": 274
"__id__": 279
}
],
"_active": true,
"_components": [
{
"__id__": 276
"__id__": 281
}
],
"_prefab": null,
......@@ -13274,13 +13541,13 @@
"_name": "lb",
"_objFlags": 0,
"_parent": {
"__id__": 273
"__id__": 278
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 275
"__id__": 280
}
],
"_prefab": null,
......@@ -13336,7 +13603,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 274
"__id__": 279
},
"_enabled": true,
"_materials": [
......@@ -13371,7 +13638,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 273
"__id__": 278
},
"_enabled": true,
"_materials": [
......@@ -13403,7 +13670,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 264
"__id__": 269
},
"_enabled": true,
"_materials": [
......@@ -13435,7 +13702,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 264
"__id__": 269
},
"_enabled": true,
"alignMode": 1,
......@@ -13462,7 +13729,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 263
"__id__": 268
},
"_enabled": true,
"alignMode": 1,
......@@ -13497,7 +13764,7 @@
"_active": false,
"_components": [
{
"__id__": 281
"__id__": 286
}
],
"_prefab": null,
......@@ -13553,7 +13820,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 280
"__id__": 285
},
"_enabled": true,
"_materials": [
......@@ -13589,19 +13856,19 @@
},
"_children": [
{
"__id__": 283
"__id__": 288
},
{
"__id__": 299
"__id__": 304
},
{
"__id__": 302
"__id__": 307
}
],
"_active": false,
"_components": [
{
"__id__": 305
"__id__": 310
}
],
"_prefab": null,
......@@ -13657,26 +13924,26 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 282
"__id__": 287
},
"_children": [
{
"__id__": 284
"__id__": 289
},
{
"__id__": 286
"__id__": 291
},
{
"__id__": 288
"__id__": 293
},
{
"__id__": 290
"__id__": 295
},
{
"__id__": 292
"__id__": 297
},
{
"__id__": 294
"__id__": 299
}
],
"_active": true,
......@@ -13734,13 +14001,13 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 283
"__id__": 288
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 285
"__id__": 290
}
],
"_prefab": null,
......@@ -13796,7 +14063,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 284
"__id__": 289
},
"_enabled": true,
"_materials": [
......@@ -13826,13 +14093,13 @@
"_name": "bar",
"_objFlags": 0,
"_parent": {
"__id__": 283
"__id__": 288
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 287
"__id__": 292
}
],
"_prefab": null,
......@@ -13888,7 +14155,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 286
"__id__": 291
},
"_enabled": true,
"_materials": [
......@@ -13920,13 +14187,13 @@
"_name": "pass",
"_objFlags": 0,
"_parent": {
"__id__": 283
"__id__": 288
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 289
"__id__": 294
}
],
"_prefab": null,
......@@ -13982,7 +14249,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 288
"__id__": 293
},
"_enabled": true,
"_materials": [
......@@ -14014,13 +14281,13 @@
"_name": "loss",
"_objFlags": 0,
"_parent": {
"__id__": 283
"__id__": 288
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 291
"__id__": 296
}
],
"_prefab": null,
......@@ -14076,7 +14343,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 290
"__id__": 295
},
"_enabled": true,
"_materials": [
......@@ -14108,13 +14375,13 @@
"_name": "lb",
"_objFlags": 0,
"_parent": {
"__id__": 283
"__id__": 288
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 293
"__id__": 298
}
],
"_prefab": null,
......@@ -14170,7 +14437,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 292
"__id__": 297
},
"_enabled": true,
"_materials": [
......@@ -14203,20 +14470,20 @@
"_name": "probar",
"_objFlags": 0,
"_parent": {
"__id__": 283
"__id__": 288
},
"_children": [
{
"__id__": 295
"__id__": 300
}
],
"_active": true,
"_components": [
{
"__id__": 297
"__id__": 302
},
{
"__id__": 298
"__id__": 303
}
],
"_prefab": null,
......@@ -14272,13 +14539,13 @@
"_name": "bar",
"_objFlags": 0,
"_parent": {
"__id__": 294
"__id__": 299
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 296
"__id__": 301
}
],
"_prefab": null,
......@@ -14334,7 +14601,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 295
"__id__": 300
},
"_enabled": true,
"_materials": [
......@@ -14366,7 +14633,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 294
"__id__": 299
},
"_enabled": true,
"_materials": [
......@@ -14398,12 +14665,12 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 294
"__id__": 299
},
"_enabled": true,
"_N$totalLength": 1170,
"_N$barSprite": {
"__id__": 296
"__id__": 301
},
"_N$mode": 0,
"_N$progress": 1,
......@@ -14415,16 +14682,16 @@
"_name": "catold",
"_objFlags": 0,
"_parent": {
"__id__": 282
"__id__": 287
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 300
"__id__": 305
},
{
"__id__": 301
"__id__": 306
}
],
"_prefab": null,
......@@ -14480,7 +14747,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 299
"__id__": 304
},
"_enabled": false,
"_materials": [
......@@ -14520,7 +14787,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 299
"__id__": 304
},
"_enabled": false,
"alignMode": 1,
......@@ -14547,16 +14814,16 @@
"_name": "cat",
"_objFlags": 0,
"_parent": {
"__id__": 282
"__id__": 287
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 303
"__id__": 308
},
{
"__id__": 304
"__id__": 309
}
],
"_prefab": null,
......@@ -14612,7 +14879,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 302
"__id__": 307
},
"_enabled": true,
"_materials": [
......@@ -14652,7 +14919,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 302
"__id__": 307
},
"_enabled": true,
"alignMode": 1,
......@@ -14679,7 +14946,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 282
"__id__": 287
},
"_enabled": true,
"_id": "6d/SGQOnxBVJwDKGdtO3xg"
......@@ -14693,13 +14960,13 @@
},
"_children": [
{
"__id__": 307
"__id__": 312
},
{
"__id__": 310
"__id__": 315
},
{
"__id__": 312
"__id__": 317
}
],
"_active": false,
......@@ -14757,16 +15024,16 @@
"_name": "endbg",
"_objFlags": 0,
"_parent": {
"__id__": 306
"__id__": 311
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 308
"__id__": 313
},
{
"__id__": 309
"__id__": 314
}
],
"_prefab": null,
......@@ -14822,7 +15089,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 307
"__id__": 312
},
"_enabled": true,
"_materials": [
......@@ -14854,7 +15121,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 307
"__id__": 312
},
"_enabled": true,
"alignMode": 1,
......@@ -14881,13 +15148,13 @@
"_name": "loss",
"_objFlags": 0,
"_parent": {
"__id__": 306
"__id__": 311
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 311
"__id__": 316
}
],
"_prefab": null,
......@@ -14943,7 +15210,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 310
"__id__": 315
},
"_enabled": true,
"_materials": [
......@@ -14975,13 +15242,13 @@
"_name": "win",
"_objFlags": 0,
"_parent": {
"__id__": 306
"__id__": 311
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 313
"__id__": 318
}
],
"_prefab": null,
......@@ -15037,7 +15304,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 312
"__id__": 317
},
"_enabled": true,
"_materials": [
......@@ -15073,19 +15340,19 @@
},
"_children": [
{
"__id__": 315
"__id__": 320
},
{
"__id__": 319
"__id__": 324
}
],
"_active": false,
"_components": [
{
"__id__": 329
"__id__": 334
},
{
"__id__": 330
"__id__": 335
}
],
"_prefab": null,
......@@ -15141,19 +15408,19 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 314
"__id__": 319
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 316
"__id__": 321
},
{
"__id__": 317
"__id__": 322
},
{
"__id__": 318
"__id__": 323
}
],
"_prefab": null,
......@@ -15209,7 +15476,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 315
"__id__": 320
},
"_enabled": true,
"_materials": [
......@@ -15239,7 +15506,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 315
"__id__": 320
},
"_enabled": true,
"alignMode": 2,
......@@ -15266,7 +15533,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 315
"__id__": 320
},
"_enabled": true,
"_normalMaterial": null,
......@@ -15334,20 +15601,20 @@
"_name": "BtnFrame",
"_objFlags": 0,
"_parent": {
"__id__": 314
"__id__": 319
},
"_children": [
{
"__id__": 320
"__id__": 325
},
{
"__id__": 324
"__id__": 329
}
],
"_active": true,
"_components": [
{
"__id__": 328
"__id__": 333
}
],
"_prefab": null,
......@@ -15403,19 +15670,19 @@
"_name": "BtnExit",
"_objFlags": 0,
"_parent": {
"__id__": 319
"__id__": 324
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 321
"__id__": 326
},
{
"__id__": 322
"__id__": 327
},
{
"__id__": 323
"__id__": 328
}
],
"_prefab": null,
......@@ -15471,7 +15738,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 320
"__id__": 325
},
"_enabled": true,
"_materials": [
......@@ -15503,7 +15770,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 320
"__id__": 325
},
"_enabled": true,
"alignMode": 1,
......@@ -15530,7 +15797,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 320
"__id__": 325
},
"_enabled": true,
"_normalMaterial": null,
......@@ -15598,19 +15865,19 @@
"_name": "BtnPlayAgain",
"_objFlags": 0,
"_parent": {
"__id__": 319
"__id__": 324
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 325
"__id__": 330
},
{
"__id__": 326
"__id__": 331
},
{
"__id__": 327
"__id__": 332
}
],
"_prefab": null,
......@@ -15666,7 +15933,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 324
"__id__": 329
},
"_enabled": true,
"_materials": [
......@@ -15698,7 +15965,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 324
"__id__": 329
},
"_enabled": true,
"alignMode": 1,
......@@ -15725,7 +15992,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 324
"__id__": 329
},
"_enabled": true,
"_normalMaterial": null,
......@@ -15793,7 +16060,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 319
"__id__": 324
},
"_enabled": true,
"_materials": [
......@@ -15825,7 +16092,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 314
"__id__": 319
},
"_enabled": true,
"alignMode": 2,
......@@ -15852,7 +16119,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 314
"__id__": 319
},
"_enabled": true,
"_id": "09WU6NXc9OR4frB91TsN13"
......@@ -15866,64 +16133,64 @@
},
"_children": [
{
"__id__": 332
"__id__": 337
},
{
"__id__": 334
"__id__": 339
},
{
"__id__": 336
"__id__": 341
},
{
"__id__": 338
"__id__": 343
},
{
"__id__": 340
"__id__": 345
},
{
"__id__": 342
"__id__": 347
},
{
"__id__": 344
"__id__": 349
},
{
"__id__": 346
"__id__": 351
},
{
"__id__": 348
"__id__": 353
},
{
"__id__": 350
"__id__": 355
},
{
"__id__": 352
"__id__": 357
},
{
"__id__": 354
"__id__": 359
},
{
"__id__": 356
"__id__": 361
},
{
"__id__": 358
"__id__": 363
},
{
"__id__": 360
"__id__": 365
},
{
"__id__": 362
"__id__": 367
},
{
"__id__": 364
"__id__": 369
},
{
"__id__": 366
"__id__": 371
},
{
"__id__": 368
"__id__": 373
},
{
"__id__": 370
"__id__": 375
}
],
"_active": true,
......@@ -15981,13 +16248,13 @@
"_name": "gameLose",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 333
"__id__": 338
}
],
"_prefab": null,
......@@ -16043,7 +16310,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 332
"__id__": 337
},
"_enabled": true,
"_clip": {
......@@ -16062,13 +16329,13 @@
"_name": "gameStart",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 335
"__id__": 340
}
],
"_prefab": null,
......@@ -16124,7 +16391,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 334
"__id__": 339
},
"_enabled": true,
"_clip": {
......@@ -16143,13 +16410,13 @@
"_name": "gameStartTip",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 337
"__id__": 342
}
],
"_prefab": null,
......@@ -16205,7 +16472,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 336
"__id__": 341
},
"_enabled": true,
"_clip": {
......@@ -16224,13 +16491,13 @@
"_name": "gameTip1",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 339
"__id__": 344
}
],
"_prefab": null,
......@@ -16286,7 +16553,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 338
"__id__": 343
},
"_enabled": true,
"_clip": {
......@@ -16305,13 +16572,13 @@
"_name": "gameTip2",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 341
"__id__": 346
}
],
"_prefab": null,
......@@ -16367,7 +16634,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 340
"__id__": 345
},
"_enabled": true,
"_clip": {
......@@ -16386,13 +16653,13 @@
"_name": "gameWin",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 343
"__id__": 348
}
],
"_prefab": null,
......@@ -16448,7 +16715,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 342
"__id__": 347
},
"_enabled": true,
"_clip": {
......@@ -16467,13 +16734,13 @@
"_name": "catTip1",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 345
"__id__": 350
}
],
"_prefab": null,
......@@ -16529,7 +16796,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 344
"__id__": 349
},
"_enabled": true,
"_clip": {
......@@ -16548,13 +16815,13 @@
"_name": "catTip2",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 347
"__id__": 352
}
],
"_prefab": null,
......@@ -16610,7 +16877,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 346
"__id__": 351
},
"_enabled": true,
"_clip": {
......@@ -16629,13 +16896,13 @@
"_name": "catTip3",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 349
"__id__": 354
}
],
"_prefab": null,
......@@ -16691,7 +16958,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 348
"__id__": 353
},
"_enabled": true,
"_clip": {
......@@ -16710,13 +16977,13 @@
"_name": "wrong",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 351
"__id__": 356
}
],
"_prefab": null,
......@@ -16772,18 +17039,18 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 350
"__id__": 355
},
"_enabled": true,
"_clip": {
"__uuid__": "2634b981-e21c-4670-ba5f-096b815eb072"
"__uuid__": "cd0f3fe8-0035-4260-a348-7258fa68d0da"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"preload": true,
"_id": "0beLtu/7dNqYpXcpfVuGoZ"
},
{
......@@ -16791,13 +17058,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 353
"__id__": 358
}
],
"_prefab": null,
......@@ -16853,7 +17120,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 352
"__id__": 357
},
"_enabled": true,
"_clip": {
......@@ -16872,13 +17139,13 @@
"_name": "right",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 355
"__id__": 360
}
],
"_prefab": null,
......@@ -16934,18 +17201,18 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 354
"__id__": 359
},
"_enabled": true,
"_clip": {
"__uuid__": "cc6df8ec-94fa-43c7-99cf-3e6ca74283eb"
"__uuid__": "27d2950b-be88-42a5-92ad-b052a8abe60d"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"preload": true,
"_id": "dcIx+Mhk5PWIj3iTjP1Drv"
},
{
......@@ -16953,13 +17220,13 @@
"_name": "win",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 357
"__id__": 362
}
],
"_prefab": null,
......@@ -17015,7 +17282,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 356
"__id__": 361
},
"_enabled": true,
"_clip": {
......@@ -17034,13 +17301,13 @@
"_name": "loss",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 359
"__id__": 364
}
],
"_prefab": null,
......@@ -17096,7 +17363,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 358
"__id__": 363
},
"_enabled": true,
"_clip": {
......@@ -17115,13 +17382,13 @@
"_name": "piece",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 361
"__id__": 366
}
],
"_prefab": null,
......@@ -17177,7 +17444,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 360
"__id__": 365
},
"_enabled": true,
"_clip": {
......@@ -17196,13 +17463,13 @@
"_name": "match",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 363
"__id__": 368
}
],
"_prefab": null,
......@@ -17258,7 +17525,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 362
"__id__": 367
},
"_enabled": true,
"_clip": {
......@@ -17277,13 +17544,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 365
"__id__": 370
}
],
"_prefab": null,
......@@ -17339,7 +17606,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 364
"__id__": 369
},
"_enabled": true,
"_clip": {
......@@ -17358,13 +17625,13 @@
"_name": "grow",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 367
"__id__": 372
}
],
"_prefab": null,
......@@ -17420,7 +17687,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 366
"__id__": 371
},
"_enabled": true,
"_clip": {
......@@ -17439,13 +17706,13 @@
"_name": "youturnTip",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 369
"__id__": 374
}
],
"_prefab": null,
......@@ -17501,7 +17768,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 368
"__id__": 373
},
"_enabled": true,
"_clip": {
......@@ -17520,13 +17787,13 @@
"_name": "otherturn",
"_objFlags": 0,
"_parent": {
"__id__": 331
"__id__": 336
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 371
"__id__": 376
}
],
"_prefab": null,
......@@ -17582,7 +17849,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 370
"__id__": 375
},
"_enabled": true,
"_clip": {
......@@ -17605,10 +17872,10 @@
},
"_children": [
{
"__id__": 373
"__id__": 378
},
{
"__id__": 376
"__id__": 381
}
],
"_active": true,
......@@ -17666,11 +17933,11 @@
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 372
"__id__": 377
},
"_children": [
{
"__id__": 374
"__id__": 379
}
],
"_active": true,
......@@ -17728,13 +17995,13 @@
"_name": "BRLNSDB",
"_objFlags": 0,
"_parent": {
"__id__": 373
"__id__": 378
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 375
"__id__": 380
}
],
"_prefab": null,
......@@ -17790,7 +18057,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 374
"__id__": 379
},
"_enabled": true,
"_materials": [
......@@ -17825,7 +18092,7 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 372
"__id__": 377
},
"_children": [],
"_active": true,
......@@ -17940,16 +18207,19 @@
"__uuid__": "84b72720-2013-4f2b-b787-52900432f34f"
},
"cat": {
"__id__": 269
"__id__": 274
},
"pp": {
"__id__": 265
"__id__": 270
},
"btn_record": {
"__id__": 249
},
"cover": {
"__id__": 282
"__id__": 287
},
"recordCat": {
"__id__": 302
"__id__": 307
},
"cardRoot": {
"__id__": 11
......
......@@ -27,6 +27,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
@property(cc.Node)
pp = null
@property(cc.Node)
btn_record: cc.Node = null
@property(cc.Node)
cover = null
@property(cc.Node)
recordCat = null
......@@ -63,8 +65,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
private _catSpeaking: boolean;
private _audioNode: cc.Node;
private _canChosendCard: boolean = true;
_wordData: { monkey: string[]; tiger: string[]; pencil: string[]; music: string[]; honey: string[]; baby: string[]; };
_wordData: any;
private _otherWord: any;
private _isRecording: any;
onLoad() {
......@@ -108,7 +111,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
addPreloadAudio() {
// TODO 根据自己的配置预加载音频资源
// 猫咪读条音频(匹配界面开始匹配前): audioUrl_loading
// 猫咪读条音频(匹配界面开始匹配前): audioUrl_loading
// 猫咪选牌提示音频: audioUrl_start
// 猫咪选牌超时自动选择音频: audioUrl_waiting_firstRound
// 开始猜词提示音频: audioUrl_filled
......@@ -119,6 +123,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 猫咪胜利结束音频(两轮游戏都结束): audioUrl_win
// 猫咪失败结束音频(两轮游戏都结束): audioUrl_lose
this._audioResList.push({ url: this.data.audioUrl_loading });
this._audioResList.push({ url: this.data.audioUrl_start });
this._audioResList.push({ url: this.data.audioUrl_waiting_firstRound });
......@@ -189,7 +195,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.inputNode.on("click", this._reqestWord, this);
this.pp.active = false;
this.pp.on("click", this.openCoursView, this);
this.btn_record.active = false;
this.btn_record.on("click", this.openCoursView, this);
this.initwordAnswerData();
}
......@@ -259,7 +267,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.networkHelper = new NetworkHelper();
this.initNetworkListener();
do {
this.playerId = await this.networkHelper.init("op_L5_R1_bingo", 2);
this.playerId = await this.networkHelper.init("op_L5_R3_guessing", 2);
if (this.playerId === null) {
this.log("onDestroy");
this.networkHelper.onDestroy();
......@@ -392,9 +400,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
} else {
this.unschedule(this.longTimeNoAction)
this.schedule(this.longTimeNoAction, 15, 6, 15);
this.schedule(this.longTimeNoAction, 15, 6, 15)
console.log("===============");
console.log(data.list);
data.list.forEach((val) => {
if (val.uuid != this.playerId) {
this._otherWord = val.word;
}
})
console.log("other word= " + this._otherWord);
console.log("===============");
}
}
else if (type == MsgType.USER_REQ_EV) {
......@@ -490,8 +506,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this._sendMsg(MsgType.USER_PREPARE_REQ, {});
this._keyboard.showOut();
this.inputNode.active = true;
this.pp.addComponent(cc.Button);
this.btn_record.active = true;
}
let cards = this.cardRoot.children;
......@@ -644,108 +659,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
})
}
_updateProgrss(redScore, blueScore, round) {
let realRedScore = (Math.floor(redScore / 100) + redScore % 100);
let realBlueScore = (Math.floor(blueScore / 100) + blueScore % 100);
if (round == 1) {
this._redLightList.children.forEach((node) => {
node.active = +node.name <= redScore % 100
})
this._blueLightList.children.forEach((node) => {
node.active = +node.name <= blueScore % 100
})
} else {
this._redLightList.children.forEach((node) => {
node.active = +node.name <= Math.floor(redScore / 100)
})
this._blueLightList.children.forEach((node) => {
node.active = +node.name <= Math.floor(blueScore / 100)
})
}
}
async _updateCards(list, delay?) {
for (let i = 0; i < list.length; ++i) {
let data = list[i];
let word = data.word;
let uuid = data.uuid;
let cardBg = this._wordCardRoot.children[i];
if (cardBg.getChildByName("word")) {
continue;
} else {
if (delay) {
await asyncDelay(0.2)
}
let wordNode = this.getSprNode(word)
wordNode.parent = cardBg;
wordNode.name = "word";
wordNode.x = 0;
wordNode.y = 0;
wordNode.zIndex = 10;
let side = this._getSideByUuid(uuid);
if (side == "Red") {
let coverBg = this.getSprNode("RedBox");
coverBg.parent = cardBg;
coverBg.name = "cover"
coverBg.x = 0;
coverBg.y = 0;
} else if (side == "Blue") {
let coverBg = this.getSprNode("BlueBox");
coverBg.parent = cardBg;
coverBg.name = "cover"
coverBg.x = 0;
coverBg.y = 0;
}
}
}
}
async _reInitCards() {
for (let i = 0; i < 16; ++i) {
let cardBg = this._wordCardRoot.children[i];
let cover = cardBg.getChildByName("cover");
cover && (cover.parent = null);
}
}
async _updateRound2Cards(list) {
list.forEach((val) => {
let index = val.index;
let uuid = val.uuid;
let cardBg = this._wordCardRoot.children[index];
if (cardBg.getChildByName("cover1")) {
} else {
let side = this._getSideByUuid(uuid);
if (side == "Red") {
let coverBg = this.getSprNode("RedBox");
coverBg.parent = cardBg;
coverBg.name = "cover1"
coverBg.zIndex = 5;
coverBg.x = 0;
coverBg.y = 0;
} else if (side == "Blue") {
let coverBg = this.getSprNode("BlueBox");
coverBg.parent = cardBg;
coverBg.name = "cover1";
coverBg.zIndex = 5
coverBg.x = 0;
coverBg.y = 0;
}
}
})
}
_getSideByUuid(uuid) {
let side = "";
this._playerList.forEach((player) => {
......@@ -837,13 +751,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
async openCoursView(node, word) {
if (this._isRecording) return;
this._isRecording = true
this.btn_record.getChildByName("lb").getComponent(cc.Label).string = "录音中。。。";
this.unschedule(this.longTimeNoAction)
this.schedule(this.longTimeNoAction, 15, 6, 15)
this.cover.active = true;
this.recordCat.active = false;
// this.cat.active = false;
this._clockNode.active = false;
// this._clockNode.active = false;
let probar = this.cover.getChildByName("bg").getChildByName("probar");
let pass = this.cover.getChildByName("bg").getChildByName("pass");
let loss = this.cover.getChildByName("bg").getChildByName("loss");
......@@ -899,7 +816,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// await asyncDelay(0.5);
if (!cc.sys.isBrowser && window["courseware"]?.startRecord) {
window["courseware"]?.startRecord((res, b) => {
window["courseware"]?.stopRecord((res, b) => {
if (typeof res == "string") {
res = JSON.parse(res);
......@@ -919,24 +836,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
async _coursewareEnd(text: string) {
this._isRecording = false;
this.btn_record.getChildByName("lb").getComponent(cc.Label).string = "点击向我提问";
this.cover.active = false;
let strs: Array<string> = this._wordData[this._otherWord];
if (strs.indexOf(text)) {
this.pp.getChildByName("lb").getComponent(cc.Label).string = "Yes";
console.log("匹配问题?")
console.log(strs)
if (strs.indexOf(text) > -1) {
this.playLocalAudio("right")
} else {
this.pp.getChildByName("lb").getComponent(cc.Label).string = "No";
this.playLocalAudio("wrong")
}
let tips = `点击气泡框按照下列方式问:
Is your word (正确单词)
Can you eat it?
It is (颜色)?
It is a/an animal/fruit?`;
asyncDelay(2).then(() => {
this.pp.getChildByName("lb").getComponent(cc.Label).string = tips;
})
}
initwordAnswerData() {
......
......@@ -176,7 +176,11 @@ export class GameServer {
} else {
clearInterval(this._timer)
this._senMsg({
type: MsgType.ROUND_END_EV,
data: { round: 2, uuid: "none", isWin: false, list: this._gameData.getAnswerList() }
})
}
......@@ -225,7 +229,13 @@ export class GameServer {
this._userPrepareCount = 0;
this._lastTime = Date.now();
this._shecduleTimer();
this._timer = setInterval(this._shecduleTimer.bind(this), 1000)
this._timer = setInterval(this._shecduleTimer.bind(this), 1000);
this._senMsg({
type: MsgType.ROUND_START_EV,
data: { round: this._gameData.Round, list: this._gameData.getAnswerList() }
});
}
}
......
......@@ -11,7 +11,7 @@
"height": 151,
"platformSettings": {},
"subMetas": {
"notes": {
"music": {
"ver": "1.0.4",
"uuid": "6334925f-7619-4254-a1d1-0889d833499f",
"rawTextureUuid": "e4d8a837-6c88-45fa-96b9-e4cebcc01c76",
......
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