Commit f1477097 authored by Tt's avatar Tt

文件名修改

parent 9d75b679
......@@ -17,10 +17,10 @@
"__id__": 2
},
{
"__id__": 50
"__id__": 58
},
{
"__id__": 52
"__id__": 60
}
],
"_active": false,
......@@ -84,13 +84,13 @@
"_active": true,
"_components": [
{
"__id__": 47
"__id__": 55
},
{
"__id__": 48
"__id__": 56
},
{
"__id__": 49
"__id__": 57
}
],
"_prefab": null,
......@@ -275,13 +275,19 @@
"__id__": 29
},
{
"__id__": 36
"__id__": 33
},
{
"__id__": 37
},
{
"__id__": 44
}
],
"_active": true,
"_components": [
{
"__id__": 46
"__id__": 54
}
],
"_prefab": null,
......@@ -798,7 +804,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 1300,
"height": 400
"height": 600
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -810,7 +816,7 @@
"ctor": "Float64Array",
"array": [
-16.074,
-390.472,
-446.267,
0,
0,
0,
......@@ -836,7 +842,7 @@
},
{
"__type__": "cc.Node",
"_name": "box_front",
"_name": "car_1",
"_objFlags": 0,
"_parent": {
"__id__": 5
......@@ -1034,6 +1040,406 @@
"_atlas": null,
"_id": "54p1hyplFB85K1OFE8clP5"
},
{
"__type__": "cc.Node",
"_name": "car_2",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [
{
"__id__": 22
}
],
"_active": true,
"_components": [
{
"__id__": 24
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1336,
"height": 614
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
2000,
-440,
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": "d9za1viXdCnaTR1gbJd+hS"
},
{
"__type__": "cc.Node",
"_name": "车尾气_ske",
"_objFlags": 0,
"_parent": {
"__id__": 21
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 145,
"height": 75
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
668.548,
-130.88,
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": "186zo6g8tAwKf2/ZygOMoE"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "normal",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "19545f35-d966-469d-b38d-7e7c259be583#9b3a5033-22d2-45da-adc1-72b4f923d49f",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "19545f35-d966-469d-b38d-7e7c259be583"
},
"_N$dragonAtlasAsset": {
"__uuid__": "9b3a5033-22d2-45da-adc1-72b4f923d49f"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "fdhAHAyu9GyrRYPdrx6rZT"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "33fc1308-9256-403d-a9fc-1567ef02f890"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "34Icsu0p9Dd5fBRvZ9Norx"
},
{
"__type__": "cc.Node",
"_name": "car_3",
"_objFlags": 0,
"_parent": {
"__id__": 5
},
"_children": [
{
"__id__": 26
}
],
"_active": true,
"_components": [
{
"__id__": 28
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1336,
"height": 614
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-2139.176,
-438.877,
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": "64MfxHfmJAI724WM+SSbpJ"
},
{
"__type__": "cc.Node",
"_name": "车尾气_ske",
"_objFlags": 0,
"_parent": {
"__id__": 25
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 27
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 145,
"height": 75
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
668.548,
-130.88,
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": "e8d1ZTn4tMfanXnNRTIQil"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 26
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "normal",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "19545f35-d966-469d-b38d-7e7c259be583#9b3a5033-22d2-45da-adc1-72b4f923d49f",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "19545f35-d966-469d-b38d-7e7c259be583"
},
"_N$dragonAtlasAsset": {
"__uuid__": "9b3a5033-22d2-45da-adc1-72b4f923d49f"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "20CQqbwRJJTLbCSJgU5q0T"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "33fc1308-9256-403d-a9fc-1567ef02f890"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "e4osGv37FA57GquLFVJtS6"
},
{
"__type__": "cc.Node",
"_name": "btnSubmit",
......@@ -1045,13 +1451,13 @@
"_active": true,
"_components": [
{
"__id__": 22
"__id__": 30
},
{
"__id__": 23
"__id__": 31
},
{
"__id__": 24
"__id__": 32
}
],
"_prefab": null,
......@@ -1107,7 +1513,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
"__id__": 29
},
"_enabled": true,
"_materials": [
......@@ -1139,7 +1545,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
"__id__": 29
},
"_enabled": true,
"alignMode": 1,
......@@ -1166,7 +1572,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
"__id__": 29
},
"_enabled": true,
"_normalMaterial": null,
......@@ -1240,13 +1646,13 @@
"_active": false,
"_components": [
{
"__id__": 26
"__id__": 34
},
{
"__id__": 27
"__id__": 35
},
{
"__id__": 28
"__id__": 36
}
],
"_prefab": null,
......@@ -1302,7 +1708,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
"__id__": 33
},
"_enabled": true,
"_materials": [
......@@ -1334,7 +1740,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
"__id__": 33
},
"_enabled": true,
"alignMode": 1,
......@@ -1361,7 +1767,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
"__id__": 33
},
"_enabled": true,
"_normalMaterial": null,
......@@ -1433,16 +1839,16 @@
},
"_children": [
{
"__id__": 30
"__id__": 38
},
{
"__id__": 32
"__id__": 40
}
],
"_active": true,
"_components": [
{
"__id__": 35
"__id__": 43
}
],
"_prefab": null,
......@@ -1498,13 +1904,13 @@
"_name": "CoolCat",
"_objFlags": 0,
"_parent": {
"__id__": 29
"__id__": 37
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 31
"__id__": 39
}
],
"_prefab": null,
......@@ -1560,7 +1966,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
"__id__": 38
},
"_enabled": true,
"_materials": [
......@@ -1600,16 +2006,16 @@
"_name": "BtnCoolCat",
"_objFlags": 0,
"_parent": {
"__id__": 29
"__id__": 37
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 33
"__id__": 41
},
{
"__id__": 34
"__id__": 42
}
],
"_prefab": null,
......@@ -1665,7 +2071,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
"__id__": 40
},
"_enabled": true,
"_normalMaterial": null,
......@@ -1733,7 +2139,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
"__id__": 40
},
"_enabled": true,
"alignMode": 1,
......@@ -1760,7 +2166,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
"__id__": 37
},
"_enabled": true,
"alignMode": 1,
......@@ -1791,25 +2197,25 @@
},
"_children": [
{
"__id__": 37
"__id__": 45
},
{
"__id__": 39
"__id__": 47
},
{
"__id__": 41
"__id__": 49
}
],
"_active": false,
"_components": [
{
"__id__": 43
"__id__": 51
},
{
"__id__": 44
"__id__": 52
},
{
"__id__": 45
"__id__": 53
}
],
"_prefab": null,
......@@ -1865,13 +2271,13 @@
"_name": "bg_circle2",
"_objFlags": 0,
"_parent": {
"__id__": 36
"__id__": 44
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 38
"__id__": 46
}
],
"_prefab": null,
......@@ -1927,7 +2333,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
"__id__": 45
},
"_enabled": true,
"_materials": [
......@@ -1959,13 +2365,13 @@
"_name": "bg_circle",
"_objFlags": 0,
"_parent": {
"__id__": 36
"__id__": 44
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 40
"__id__": 48
}
],
"_prefab": null,
......@@ -2021,7 +2427,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 39
"__id__": 47
},
"_enabled": true,
"_materials": [
......@@ -2053,13 +2459,13 @@
"_name": "btn_replay",
"_objFlags": 0,
"_parent": {
"__id__": 36
"__id__": 44
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 42
"__id__": 50
}
],
"_prefab": null,
......@@ -2115,7 +2521,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 41
"__id__": 49
},
"_enabled": true,
"_materials": [
......@@ -2147,7 +2553,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
"__id__": 44
},
"_enabled": true,
"_materials": [
......@@ -2179,7 +2585,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
"__id__": 44
},
"_enabled": true,
"_normalMaterial": null,
......@@ -2247,7 +2653,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
"__id__": 44
},
"_enabled": true,
"alignMode": 1,
......@@ -2361,7 +2767,7 @@
"_active": true,
"_components": [
{
"__id__": 51
"__id__": 59
}
],
"_prefab": null,
......@@ -2417,7 +2823,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
"__id__": 58
},
"_enabled": true,
"_materials": [
......@@ -2453,34 +2859,34 @@
},
"_children": [
{
"__id__": 53
"__id__": 61
},
{
"__id__": 55
"__id__": 63
},
{
"__id__": 57
"__id__": 65
},
{
"__id__": 59
"__id__": 67
},
{
"__id__": 61
"__id__": 69
},
{
"__id__": 63
"__id__": 71
},
{
"__id__": 65
"__id__": 73
},
{
"__id__": 67
"__id__": 75
},
{
"__id__": 69
"__id__": 77
},
{
"__id__": 71
"__id__": 79
}
],
"_active": true,
......@@ -2538,13 +2944,13 @@
"_name": "next",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 60
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 54
"__id__": 62
}
],
"_prefab": null,
......@@ -2600,7 +3006,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 53
"__id__": 61
},
"_enabled": true,
"_clip": {
......@@ -2619,13 +3025,13 @@
"_name": "boxJump",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 60
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 56
"__id__": 64
}
],
"_prefab": null,
......@@ -2681,7 +3087,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 55
"__id__": 63
},
"_enabled": true,
"_clip": {
......@@ -2700,13 +3106,13 @@
"_name": "jumpAll",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 60
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 58
"__id__": 66
}
],
"_prefab": null,
......@@ -2762,7 +3168,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 57
"__id__": 65
},
"_enabled": true,
"_clip": {
......@@ -2781,13 +3187,13 @@
"_name": "submit",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 60
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 60
"__id__": 68
}
],
"_prefab": null,
......@@ -2843,7 +3249,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 59
"__id__": 67
},
"_enabled": true,
"_clip": {
......@@ -2862,13 +3268,13 @@
"_name": "flyBack",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 60
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 62
"__id__": 70
}
],
"_prefab": null,
......@@ -2924,7 +3330,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 61
"__id__": 69
},
"_enabled": true,
"_clip": {
......@@ -2943,13 +3349,13 @@
"_name": "flyBackAll",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 60
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 64
"__id__": 72
}
],
"_prefab": null,
......@@ -3005,7 +3411,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 63
"__id__": 71
},
"_enabled": true,
"_clip": {
......@@ -3024,13 +3430,13 @@
"_name": "CoolCatRight",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 60
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 66
"__id__": 74
}
],
"_prefab": null,
......@@ -3086,7 +3492,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
"__id__": 73
},
"_enabled": true,
"_clip": {
......@@ -3105,13 +3511,13 @@
"_name": "CoolCatWrong",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 60
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 68
"__id__": 76
}
],
"_prefab": null,
......@@ -3167,7 +3573,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 67
"__id__": 75
},
"_enabled": true,
"_clip": {
......@@ -3186,13 +3592,13 @@
"_name": "CoolCatBegin",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 60
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 70
"__id__": 78
}
],
"_prefab": null,
......@@ -3248,7 +3654,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 69
"__id__": 77
},
"_enabled": true,
"_clip": {
......@@ -3267,13 +3673,13 @@
"_name": "CoolCatFinish",
"_objFlags": 0,
"_parent": {
"__id__": 52
"__id__": 60
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 72
"__id__": 80
}
],
"_prefab": null,
......@@ -3329,7 +3735,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 71
"__id__": 79
},
"_enabled": true,
"_clip": {
......
......@@ -169,6 +169,7 @@ cc.Class({
//TODO:copy
this.hideFlower();
this.firstCar();
this.coolCatSpeakStart(() => {
this.showSubmitBtn();
......@@ -193,6 +194,8 @@ cc.Class({
//TODO:copy---start
const maxOptionHeight = 400;
const maxOptionWidth = (canvasWidth * 0.8) / optionNum;
this.hideFlower();
this.optionNodes = [];
//TODO:copy---end
const arr = randomSortByArr(this.data.question_arr[questionIdx].option_arr);
......@@ -203,10 +206,13 @@ cc.Class({
optionNode.y = canvasHeight / 2 - box.y - 300;
optionNode.scale = 0;
optionNode.parent = box;
//TODO:copy---start
this.optionNodes.push(optionNode);
cc.tween(optionNode)
.to(0.1, { scale: Math.min((maxOptionWidth * 0.80) / optionNode.width, maxOptionHeight / optionNode.height) })
.to(0.2, { scale: Math.min((maxOptionWidth * 0.80) / optionNode.width * 1.05, maxOptionHeight / optionNode.height) * 1.05 })
.to(0.2, { scale: Math.min((maxOptionWidth * 0.80) / optionNode.width, maxOptionHeight / optionNode.height) })
.start();
//TODO:copy---end
});
},
......@@ -300,6 +306,13 @@ cc.Class({
if (box.children.every(child => child.optionData.selected == child.optionData.is_right)) {
this.onAnswerRight();
} else {
//TODO:copy--start
const car1 = cc.find('Canvas/bg/car_1');
car1.scale = 1;
cc.tween(car1).to(0.3, { scale: 0.9 }).to(0.3, { scale: 1.05 }).to(0.3, { scale: 1 }).start();
//TODO:copy--end
this.coolCatSpeakWrong(() => {
this.status.wrongTime++;
if (this.status.wrongTime < this.data.maxWrongNumber) {
......@@ -338,13 +351,69 @@ cc.Class({
},
//TODO:copy---start
firstCar() {
let pos1 = cc.v2(-30, -440);
let pos2 = cc.v2(2200, -440);
let pos3 = cc.v2(-2200, -440);
const car1 = cc.find('Canvas/bg/car_1');
const car2 = cc.find('Canvas/bg/car_2');
const car3 = cc.find('Canvas/bg/car_3');
car1.x = pos2.x;
car1.y = pos2.y;
car2.x = pos2.x;
car2.y = pos2.y;
cc.tween(car1).to(1, { x: pos1.x }).start();
},
showFlower() {
const flower = cc.find('Canvas/bg/烟花_ske');
flower.active = true;
for (let i = 1; i <= 3; i++) {
const flower = cc.find(`Canvas/bg/car_${i}/车尾气_ske`);
flower.active = true;
}
let pos1 = cc.v2(-30, -440);
let pos2 = cc.v2(2200, -440);
let pos3 = cc.v2(-2200, -440);
const car1 = cc.find('Canvas/bg/car_1');
const car2 = cc.find('Canvas/bg/car_2');
const car3 = cc.find('Canvas/bg/car_3');
car1.x = pos1.x;
car1.y = pos2.y;
cc.tween(car1).to(1, { x: pos3.x }).start();
if (this.status.currentQuestionIdx + 1 < this.data.question_arr.length) {
car2.x = pos2.x;
car2.y = pos2.y;
cc.tween(car2).to(1, { x: pos1.x }).start();
}
this.optionNodes.forEach(optionNode => {
if (optionNode.optionData.selected) {
optionNode.active = false;
}
})
setTimeout(() => {
this.optionNodes.forEach(optionNode => {
optionNode.active = false;
})
}, 500);
},
hideFlower() {
const flower = cc.find('Canvas/bg/烟花_ske');
flower.active = false;
for (let i = 1; i <= 3; i++) {
const flower = cc.find(`Canvas/bg/car_${i}/车尾气_ske`);
flower.active = false;
}
let pos1 = cc.v2(-30, -440);
let pos2 = cc.v2(2200, -440);
let pos3 = cc.v2(-2200, -440);
const car1 = cc.find('Canvas/bg/car_1');
const car2 = cc.find('Canvas/bg/car_2');
const car3 = cc.find('Canvas/bg/car_3');
car1.x = pos1.x;
car1.y = pos2.y;
car2.x = pos2.x;
car2.y = pos2.y;
},
//TODO:copy---end
......
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