Commit 18bffb4e authored by linzhiguo's avatar linzhiguo

+ 增加扔病毒动画

# 连打加速通关
parent 12cb4fae
......@@ -17,7 +17,7 @@
"__id__": 2
},
{
"__id__": 122
"__id__": 132
}
],
"_active": false,
......@@ -78,31 +78,31 @@
"__id__": 5
},
{
"__id__": 98
"__id__": 108
},
{
"__id__": 101
"__id__": 111
},
{
"__id__": 104
"__id__": 114
},
{
"__id__": 110
"__id__": 120
},
{
"__id__": 117
"__id__": 127
}
],
"_active": true,
"_components": [
{
"__id__": 119
"__id__": 129
},
{
"__id__": 120
"__id__": 130
},
{
"__id__": 121
"__id__": 131
}
],
"_prefab": null,
......@@ -279,15 +279,21 @@
},
{
"__id__": 90
},
{
"__id__": 96
},
{
"__id__": 101
}
],
"_active": true,
"_components": [
{
"__id__": 96
"__id__": 106
},
{
"__id__": 97
"__id__": 107
}
],
"_prefab": null,
......@@ -4831,79 +4837,24 @@
"_originalHeight": 0,
"_id": "1fZkwO1d5CS4nhyh558l2M"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a0e475f7-598e-4937-85e9-71026b619bbf"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d6gvPbNAlAPJvskyB4DCCL"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_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": 1280,
"_originalHeight": 720,
"_id": "46l4XJkwRHX73tprIFwvCN"
},
{
"__type__": "cc.Node",
"_name": "flyswatter",
"_name": "virus_fall_0",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 5
},
"_children": [
{
"__id__": 99
"__id__": 97
}
],
"_active": true,
"_components": [],
"_components": [
{
"__id__": 100
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -4915,8 +4866,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 302,
"height": 176
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -4927,8 +4878,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
379.412,
-756.431,
-170.245,
-131.88,
0,
0,
0,
......@@ -4950,20 +4901,23 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "63MvQICYVITZclz7gH3MOA"
"_id": "57LI6w6+tIi6buCTuJIcQT"
},
{
"__type__": "cc.Node",
"_name": "New Node",
"_name": "word",
"_objFlags": 0,
"_parent": {
"__id__": 98
"__id__": 96
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 100
"__id__": 98
},
{
"__id__": 99
}
],
"_prefab": null,
......@@ -4977,8 +4931,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 568,
"height": 441.83
"width": 117.91,
"height": 95.64
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -4989,8 +4943,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
3.5,
9,
0,
0,
0,
......@@ -5012,14 +4966,14 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "68D1DMHQpGE6STNPPGpL+t"
"_id": "7auWscdlJK9ZPRduOdQ7gM"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 99
"__id__": 97
},
"_enabled": true,
"_materials": [
......@@ -5027,48 +4981,94 @@
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "normal",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": true,
"_armatureKey": "6d78146c-bb3d-4a77-9af6-1cdca5b015ae#135511a5-8a89-4b35-bd9c-53b001b7fb59",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "6d78146c-bb3d-4a77-9af6-1cdca5b015ae"
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "the",
"_N$string": "the",
"_fontSize": 64,
"_lineHeight": 64,
"_enableWrapText": false,
"_N$file": {
"__uuid__": "954a1831-f11e-4448-b641-0e4a2d830e57"
},
"_N$dragonAtlasAsset": {
"__uuid__": "135511a5-8a89-4b35-bd9c-53b001b7fb59"
"_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": "22cFgRP6tGvLydoc+PXy4F"
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 97
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "2dfQvqitZBLYG2lhoGkRLD"
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 22,
"g": 117,
"b": 87,
"a": 255
},
"_width": 7.5,
"_id": "07mOm9rf1DVoAEt4H0yeRT"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 96
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d175e9c9-f9de-4dbc-8759-652357567489"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "459wHdUw1IUZxILcasmPra"
},
{
"__type__": "cc.Node",
"_name": "flower",
"_name": "virus_fall_1",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 5
},
"_children": [],
"_active": false,
"_components": [
"_children": [
{
"__id__": 102
},
}
],
"_active": true,
"_components": [
{
"__id__": 103
"__id__": 105
}
],
"_prefab": null,
......@@ -5082,8 +5082,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1156,
"height": 652
"width": 302,
"height": 176
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -5094,8 +5094,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-34,
187.841,
-102.838,
0,
0,
0,
......@@ -5117,29 +5117,467 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "df713pY6xDhbbwpcIfBPTW"
"_id": "a6ZNcJ88BNmr3Z8v25MuV0"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"__type__": "cc.Node",
"_name": "word",
"_objFlags": 0,
"node": {
"_parent": {
"__id__": 101
},
"_enabled": true,
"_materials": [
"_children": [],
"_active": true,
"_components": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
"__id__": 103
},
{
"__id__": 104
}
],
"_armatureName": "Armature",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "69844312-80d0-4de7-9098-b587a41dce64#8db93b59-84b6-460e-918b-5e68695ec600",
"_accTime": 0,
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 249.81,
"height": 95.64
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
3.5,
9,
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": "12LPl0CWlJjpqszERbsqCq"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 102
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "eeeeeeeeeeee",
"_N$string": "eeeeeeeeeeee",
"_fontSize": 35,
"_lineHeight": 64,
"_enableWrapText": false,
"_N$file": {
"__uuid__": "954a1831-f11e-4448-b641-0e4a2d830e57"
},
"_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": "ce59+27wBMZIjnZcbNeJ62"
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 102
},
"_enabled": true,
"_color": {
"__type__": "cc.Color",
"r": 22,
"g": 117,
"b": 87,
"a": 255
},
"_width": 7.5,
"_id": "4dK9Bz629FhIMC4Odn7ngD"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 101
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d175e9c9-f9de-4dbc-8759-652357567489"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "67Cl3iiVtO/71VxRKGDTmr"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a0e475f7-598e-4937-85e9-71026b619bbf"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "d6gvPbNAlAPJvskyB4DCCL"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_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": 1280,
"_originalHeight": 720,
"_id": "46l4XJkwRHX73tprIFwvCN"
},
{
"__type__": "cc.Node",
"_name": "flyswatter",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 109
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
379.412,
-756.431,
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": "63MvQICYVITZclz7gH3MOA"
},
{
"__type__": "cc.Node",
"_name": "New Node",
"_objFlags": 0,
"_parent": {
"__id__": 108
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 110
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 568,
"height": 441.83
},
"_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": "68D1DMHQpGE6STNPPGpL+t"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 109
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "normal",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": true,
"_armatureKey": "6d78146c-bb3d-4a77-9af6-1cdca5b015ae#135511a5-8a89-4b35-bd9c-53b001b7fb59",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "6d78146c-bb3d-4a77-9af6-1cdca5b015ae"
},
"_N$dragonAtlasAsset": {
"__uuid__": "135511a5-8a89-4b35-bd9c-53b001b7fb59"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "2dfQvqitZBLYG2lhoGkRLD"
},
{
"__type__": "cc.Node",
"_name": "flower",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 112
},
{
"__id__": 113
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1156,
"height": 652
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-34,
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": "df713pY6xDhbbwpcIfBPTW"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 111
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "69844312-80d0-4de7-9098-b587a41dce64#8db93b59-84b6-460e-918b-5e68695ec600",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
......@@ -5164,7 +5602,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 101
"__id__": 111
},
"_enabled": true,
"alignMode": 1,
......@@ -5195,16 +5633,16 @@
},
"_children": [
{
"__id__": 105
"__id__": 115
}
],
"_active": false,
"_components": [
{
"__id__": 108
"__id__": 118
},
{
"__id__": 109
"__id__": 119
}
],
"_prefab": null,
......@@ -5260,16 +5698,16 @@
"_name": "New Label copy",
"_objFlags": 0,
"_parent": {
"__id__": 104
"__id__": 114
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 106
"__id__": 116
},
{
"__id__": 107
"__id__": 117
}
],
"_prefab": null,
......@@ -5325,7 +5763,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 105
"__id__": 115
},
"_enabled": true,
"_materials": [
......@@ -5360,7 +5798,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 105
"__id__": 115
},
"_enabled": true,
"_color": {
......@@ -5378,7 +5816,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 104
"__id__": 114
},
"_enabled": true,
"_materials": [
......@@ -5413,7 +5851,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 104
"__id__": 114
},
"_enabled": true,
"_color": {
......@@ -5435,19 +5873,19 @@
},
"_children": [
{
"__id__": 111
"__id__": 121
}
],
"_active": true,
"_components": [
{
"__id__": 114
"__id__": 124
},
{
"__id__": 115
"__id__": 125
},
{
"__id__": 116
"__id__": 126
}
],
"_prefab": null,
......@@ -5503,16 +5941,16 @@
"_name": "start",
"_objFlags": 0,
"_parent": {
"__id__": 110
"__id__": 120
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 112
"__id__": 122
},
{
"__id__": 113
"__id__": 123
}
],
"_prefab": null,
......@@ -5568,7 +6006,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 111
"__id__": 121
},
"_enabled": true,
"_materials": [
......@@ -5600,7 +6038,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 111
"__id__": 121
},
"_enabled": true,
"alignMode": 1,
......@@ -5627,7 +6065,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
"__id__": 120
},
"_enabled": true,
"alignMode": 1,
......@@ -5654,7 +6092,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
"__id__": 120
},
"_enabled": true,
"_normalMaterial": null,
......@@ -5722,7 +6160,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
"__id__": 120
},
"_enabled": true,
"_materials": [
......@@ -5760,7 +6198,7 @@
"_active": false,
"_components": [
{
"__id__": 118
"__id__": 128
}
],
"_prefab": null,
......@@ -5816,7 +6254,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 117
"__id__": 127
},
"_enabled": true,
"_materials": [
......@@ -5935,6 +6373,14 @@
"__id__": 57
}
],
"fallVirus": [
{
"__id__": 96
},
{
"__id__": 101
}
],
"titleText": {
"__id__": 92
},
......@@ -5949,13 +6395,13 @@
},
"_children": [
{
"__id__": 123
"__id__": 133
},
{
"__id__": 128
"__id__": 138
},
{
"__id__": 143
"__id__": 153
}
],
"_active": true,
......@@ -6013,11 +6459,11 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 122
"__id__": 132
},
"_children": [
{
"__id__": 124
"__id__": 134
}
],
"_active": true,
......@@ -6075,17 +6521,17 @@
"_name": "flyswatter",
"_objFlags": 0,
"_parent": {
"__id__": 123
"__id__": 133
},
"_children": [
{
"__id__": 125
"__id__": 135
}
],
"_active": true,
"_components": [
{
"__id__": 127
"__id__": 137
}
],
"_prefab": null,
......@@ -6141,13 +6587,13 @@
"_name": "icon_1",
"_objFlags": 0,
"_parent": {
"__id__": 124
"__id__": 134
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 126
"__id__": 136
}
],
"_prefab": null,
......@@ -6203,7 +6649,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 125
"__id__": 135
},
"_enabled": true,
"_materials": [
......@@ -6235,7 +6681,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 124
"__id__": 134
},
"_enabled": true,
"_materials": [
......@@ -6267,29 +6713,29 @@
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 122
"__id__": 132
},
"_children": [
{
"__id__": 129
"__id__": 139
},
{
"__id__": 131
"__id__": 141
},
{
"__id__": 133
"__id__": 143
},
{
"__id__": 135
"__id__": 145
},
{
"__id__": 137
"__id__": 147
},
{
"__id__": 139
"__id__": 149
},
{
"__id__": 141
"__id__": 151
}
],
"_active": true,
......@@ -6347,13 +6793,13 @@
"_name": "correct",
"_objFlags": 0,
"_parent": {
"__id__": 128
"__id__": 138
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 130
"__id__": 140
}
],
"_prefab": null,
......@@ -6409,7 +6855,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 129
"__id__": 139
},
"_enabled": true,
"_clip": {
......@@ -6428,13 +6874,13 @@
"_name": "dizzy",
"_objFlags": 0,
"_parent": {
"__id__": 128
"__id__": 138
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 132
"__id__": 142
}
],
"_prefab": null,
......@@ -6490,7 +6936,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 131
"__id__": 141
},
"_enabled": true,
"_clip": {
......@@ -6509,13 +6955,13 @@
"_name": "incorrect",
"_objFlags": 0,
"_parent": {
"__id__": 128
"__id__": 138
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 134
"__id__": 144
}
],
"_prefab": null,
......@@ -6571,7 +7017,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 133
"__id__": 143
},
"_enabled": true,
"_clip": {
......@@ -6590,13 +7036,13 @@
"_name": "time321",
"_objFlags": 0,
"_parent": {
"__id__": 128
"__id__": 138
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 136
"__id__": 146
}
],
"_prefab": null,
......@@ -6652,7 +7098,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 135
"__id__": 145
},
"_enabled": true,
"_clip": {
......@@ -6671,13 +7117,13 @@
"_name": "victory",
"_objFlags": 0,
"_parent": {
"__id__": 128
"__id__": 138
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 138
"__id__": 148
}
],
"_prefab": null,
......@@ -6733,7 +7179,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 137
"__id__": 147
},
"_enabled": true,
"_clip": {
......@@ -6752,13 +7198,13 @@
"_name": "lose",
"_objFlags": 0,
"_parent": {
"__id__": 128
"__id__": 138
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 140
"__id__": 150
}
],
"_prefab": null,
......@@ -6814,7 +7260,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 139
"__id__": 149
},
"_enabled": true,
"_clip": {
......@@ -6833,13 +7279,13 @@
"_name": "fall",
"_objFlags": 0,
"_parent": {
"__id__": 128
"__id__": 138
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 142
"__id__": 152
}
],
"_prefab": null,
......@@ -6895,7 +7341,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 141
"__id__": 151
},
"_enabled": true,
"_clip": {
......@@ -6914,7 +7360,7 @@
"_name": "time",
"_objFlags": 0,
"_parent": {
"__id__": 122
"__id__": 132
},
"_children": [],
"_active": true,
......
......@@ -26,6 +26,11 @@ cc.Class({
type: cc.Node
},
fallVirus:{
default:[],
type: cc.Node
},
titleText:{
default:null,
type: cc.Label
......@@ -98,6 +103,7 @@ cc.Class({
for(let i = 0; i < 2; i ++){
this.setTextVar(this.flyVirus[i]);
this.setTextVar(this.virusOks[i]);
this.setTextVar(this.fallVirus[i]);
}
this._area = cc.find('Canvas/bg/flag_area');
......@@ -260,6 +266,9 @@ cc.Class({
this.node.on(cc.Node.EventType.TOUCH_START, (event)=>{
if (this._touched == true)
return;
if (this._can_hitted == false)
return;
let canvas = cc.find('Canvas');
let pos = canvas.convertToNodeSpaceAR(cc.v2(event.touch._point.x, event.touch._point.y))
......@@ -275,19 +284,23 @@ cc.Class({
this._flyswatter.y = pos.y;
this._touched = false;
playDragonBoneAnimation(this._flyswatter.children[0], 'normal');
cc.tween(this._flyswatter)
item._dizzy_ani = cc.tween(this._flyswatter)
.delay(0.2)
.call(()=>{
if (i != this._correct_index){
playDragonBoneAnimation(item, 'dizzy', 1, ()=>{
this.setTimer();
playDragonBoneAnimation(item, 'normal', -1);
});
// cc.tween(this._time_node)
// .delay(1)
// .call(()=>{
// })
// .start();
if (item._recount_timer){
item._recount_timer.stop();
item._recount_timer = null;
}
item._recount_timer = cc.tween(this._time_node)
.delay(1)
.call(()=>{
this.setTimer();
})
.start();
}
else{
this.fallCare();
......@@ -363,6 +376,9 @@ cc.Class({
},
setTimer(){
console.log('time');
this._can_hitted = true;
this._current_time = this._time_node.x;
this._timer_ani = cc.tween(this._time_node)
.to(this._current_time, {x: 0})
......@@ -379,6 +395,8 @@ cc.Class({
},
cleanTimer(){
console.log('clean');
if (this._timer_ani){
this._timer_ani.stop();
this._timer_ani = null;
......@@ -432,6 +450,8 @@ cc.Class({
this.flyVirus[i]._text.fontSize = 64;
this.virusOks[i]._text.string = idxs[i];
this.virusOks[i]._text.fontSize = 64;
this.fallVirus[i]._text.string = idxs[i];
this.fallVirus[i]._text.fontSize = 64;
}
},
......@@ -481,6 +501,8 @@ cc.Class({
}
this._index ++;
console.log(this._index,'try');
if (this._index >= this.data.length){
this._finished = true;
......@@ -513,6 +535,9 @@ cc.Class({
this.virusOks[i].active = true;
this.unitedFontSize(this.virusOks, 240, 64);
this.virusOks[i].active = false;
this.fallVirus[i].active = true;
this.unitedFontSize(this.fallVirus, 240, 64);
this.fallVirus[i].active = false;
}
cc.tween(this.flys[0])
......@@ -530,9 +555,33 @@ cc.Class({
flyOut(){
this._sound_button._sprite.active = false;
this._can_hitted = false;
for(let i = 0; i < 2; i++){
this.flyVirus[i].active = false;
this.fallVirus[i].active = true;
let pos = this.flyVirus[i].convertToWorldSpaceAR(cc.v2(0,0));
pos.y = pos.y - 23;
let pos1 = this.fallVirus[i].parent.convertToNodeSpaceAR(cc.v2(pos.x, pos.y));
this.fallVirus[i].x = pos1.x;
this.fallVirus[i].y = pos1.y;
this.fallVirus[i].opacity = 255;
pos = this.virusOks[i].convertToWorldSpaceAR(cc.v2(0,0));
pos1 = this.fallVirus[i].parent.convertToNodeSpaceAR(cc.v2(pos.x, pos.y));
cc.tween(this.fallVirus[i])
.to(0.2, {x: pos1.x, y: pos1.y, scaleX: 0.811, scaleY: 0.8})
.to(0.1, {opacity:53.55})
.call(()=>{
this.virusOks[i].active = true;
this.fallVirus[i].active = false;
})
.start();
//y-23
//move oks scale opacity
playDragonBoneAnimation(this.flys[i], 'laugh', 1, ()=>{
playDragonBoneAnimation(this.flys[i], 'normal', -1);
cc.tween(this.flys[i])
......@@ -541,12 +590,12 @@ cc.Class({
});
}
cc.tween(this.node)
this._bad_water.active = true;
this._bad_water.opacity = 0;
cc.tween(this._bad_water)
.delay(0.2)
.to(0.1, {opacity: 255})
.call(()=>{
this.virusOks[0].active = true;
this.virusOks[1].active = true;
this._bad_water.active = true;
})
.delay(0.5)
.call(()=>{
......@@ -557,6 +606,7 @@ cc.Class({
},
fallCare(){
this._can_hitted = false;
this.updateFlag();
let fly;
for(let i = 0; i < 2; i++){
......
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