Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg18_tianci
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
dg18_tianci
Commits
c11f5126
Commit
c11f5126
authored
Dec 18, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成
parent
828ebdc3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
269 additions
and
126 deletions
+269
-126
dg28_drag.fire
assets/dg18_danci/scene/dg28_drag.fire
+237
-123
dg28_drag.ts
assets/dg18_danci/scene/dg28_drag.ts
+32
-3
No files found.
assets/dg18_danci/scene/dg28_drag.fire
View file @
c11f5126
...
...
@@ -96,31 +96,34 @@
"__id__": 65
},
{
"__id__":
73
"__id__":
67
},
{
"__id__":
91
"__id__":
75
},
{
"__id__": 9
7
"__id__": 9
3
},
{
"__id__":
103
"__id__":
99
},
{
"__id__": 111
"__id__": 105
},
{
"__id__": 113
}
],
"_active": true,
"_components": [
{
"__id__": 1
29
"__id__": 1
31
},
{
"__id__": 13
0
"__id__": 13
2
},
{
"__id__": 13
1
"__id__": 13
3
}
],
"_prefab": null,
...
...
@@ -2781,6 +2784,108 @@
"_originalHeight": 0,
"_id": "a2jfsVgYxNuLfbGl4yEA9T"
},
{
"__type__": "cc.Node",
"_name": "ani_star",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 66
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 830,
"height": 306
},
"_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": "5cBEQQA0lP65Uv0y2t6Wcy"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 65
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "b4ea1c34-24c5-4cf3-9552-77fd1e0f7370#f6e28700-0fcf-46f4-9b2e-41eda646b221",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "b4ea1c34-24c5-4cf3-9552-77fd1e0f7370"
},
"_N$dragonAtlasAsset": {
"__uuid__": "f6e28700-0fcf-46f4-9b2e-41eda646b221"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "a4cfXJD0FLqJaxzgJqfW0x"
},
{
"__type__": "cc.Node",
"_name": "item_battery_img",
...
...
@@ -2790,10 +2895,10 @@
},
"_children": [
{
"__id__": 6
6
"__id__": 6
8
},
{
"__id__":
69
"__id__":
71
}
],
"_active": false,
...
...
@@ -2851,11 +2956,11 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 6
5
"__id__": 6
7
},
"_children": [
{
"__id__": 6
7
"__id__": 6
9
}
],
"_active": true,
...
...
@@ -2913,13 +3018,13 @@
"_name": "img_ battery001",
"_objFlags": 0,
"_parent": {
"__id__": 6
6
"__id__": 6
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
68
"__id__":
70
}
],
"_prefab": null,
...
...
@@ -2975,7 +3080,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
7
"__id__": 6
9
},
"_enabled": true,
"_materials": [
...
...
@@ -3007,17 +3112,17 @@
"_name": "item_img",
"_objFlags": 0,
"_parent": {
"__id__": 6
5
"__id__": 6
7
},
"_children": [
{
"__id__": 7
0
"__id__": 7
2
}
],
"_active": true,
"_components": [
{
"__id__": 7
2
"__id__": 7
4
}
],
"_prefab": null,
...
...
@@ -3073,13 +3178,13 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__":
69
"__id__":
71
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 7
1
"__id__": 7
3
}
],
"_prefab": null,
...
...
@@ -3135,7 +3240,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
0
"__id__": 7
2
},
"_enabled": true,
"_materials": [
...
...
@@ -3167,7 +3272,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
69
"__id__":
71
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -3239,10 +3344,10 @@
},
"_children": [
{
"__id__": 7
4
"__id__": 7
6
},
{
"__id__": 8
7
"__id__": 8
9
}
],
"_active": false,
...
...
@@ -3300,12 +3405,9 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 7
3
"__id__": 7
5
},
"_children": [
{
"__id__": 75
},
{
"__id__": 77
},
...
...
@@ -3320,6 +3422,9 @@
},
{
"__id__": 85
},
{
"__id__": 87
}
],
"_active": true,
...
...
@@ -3377,13 +3482,13 @@
"_name": "img_battery6",
"_objFlags": 0,
"_parent": {
"__id__": 7
4
"__id__": 7
6
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 7
6
"__id__": 7
8
}
],
"_prefab": null,
...
...
@@ -3439,7 +3544,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
5
"__id__": 7
7
},
"_enabled": true,
"_materials": [
...
...
@@ -3471,13 +3576,13 @@
"_name": "img_battery4",
"_objFlags": 0,
"_parent": {
"__id__": 7
4
"__id__": 7
6
},
"_children": [],
"_active": false,
"_components": [
{
"__id__":
78
"__id__":
80
}
],
"_prefab": null,
...
...
@@ -3533,7 +3638,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
7
"__id__": 7
9
},
"_enabled": true,
"_materials": [
...
...
@@ -3565,13 +3670,13 @@
"_name": "img_battery5",
"_objFlags": 0,
"_parent": {
"__id__": 7
4
"__id__": 7
6
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 8
0
"__id__": 8
2
}
],
"_prefab": null,
...
...
@@ -3627,7 +3732,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
79
"__id__":
81
},
"_enabled": true,
"_materials": [
...
...
@@ -3659,13 +3764,13 @@
"_name": "img_battery3",
"_objFlags": 0,
"_parent": {
"__id__": 7
4
"__id__": 7
6
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 8
2
"__id__": 8
4
}
],
"_prefab": null,
...
...
@@ -3721,7 +3826,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
1
"__id__": 8
3
},
"_enabled": true,
"_materials": [
...
...
@@ -3753,13 +3858,13 @@
"_name": "img_battery2",
"_objFlags": 0,
"_parent": {
"__id__": 7
4
"__id__": 7
6
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 8
4
"__id__": 8
6
}
],
"_prefab": null,
...
...
@@ -3815,7 +3920,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
3
"__id__": 8
5
},
"_enabled": true,
"_materials": [
...
...
@@ -3847,13 +3952,13 @@
"_name": "img_battery1",
"_objFlags": 0,
"_parent": {
"__id__": 7
4
"__id__": 7
6
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 8
6
"__id__": 8
8
}
],
"_prefab": null,
...
...
@@ -3909,7 +4014,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
5
"__id__": 8
7
},
"_enabled": true,
"_materials": [
...
...
@@ -3941,17 +4046,17 @@
"_name": "item_text",
"_objFlags": 0,
"_parent": {
"__id__": 7
3
"__id__": 7
5
},
"_children": [
{
"__id__":
88
"__id__":
90
}
],
"_active": true,
"_components": [
{
"__id__": 9
0
"__id__": 9
2
}
],
"_prefab": null,
...
...
@@ -4007,13 +4112,13 @@
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 8
7
"__id__": 8
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
89
"__id__":
91
}
],
"_prefab": null,
...
...
@@ -4069,7 +4174,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
88
"__id__":
90
},
"_enabled": true,
"_materials": [
...
...
@@ -4102,7 +4207,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
7
"__id__": 8
9
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -4174,16 +4279,16 @@
},
"_children": [
{
"__id__": 9
2
"__id__": 9
4
},
{
"__id__": 9
4
"__id__": 9
6
}
],
"_active": false,
"_components": [
{
"__id__": 9
6
"__id__": 9
8
}
],
"_prefab": null,
...
...
@@ -4239,13 +4344,13 @@
"_name": "img_1",
"_objFlags": 0,
"_parent": {
"__id__": 9
1
"__id__": 9
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
3
"__id__": 9
5
}
],
"_prefab": null,
...
...
@@ -4301,7 +4406,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
2
"__id__": 9
4
},
"_enabled": true,
"_materials": [
...
...
@@ -4333,13 +4438,13 @@
"_name": "img_2",
"_objFlags": 0,
"_parent": {
"__id__": 9
1
"__id__": 9
3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
5
"__id__": 9
7
}
],
"_prefab": null,
...
...
@@ -4395,7 +4500,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
4
"__id__": 9
6
},
"_enabled": true,
"_materials": [
...
...
@@ -4427,7 +4532,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
1
"__id__": 9
3
},
"_enabled": true,
"_id": "22vw/sJf1FcqZqummVQC8S"
...
...
@@ -4441,16 +4546,16 @@
},
"_children": [
{
"__id__":
98
"__id__":
100
},
{
"__id__": 10
0
"__id__": 10
2
}
],
"_active": false,
"_components": [
{
"__id__": 10
2
"__id__": 10
4
}
],
"_prefab": null,
...
...
@@ -4506,13 +4611,13 @@
"_name": "img_1",
"_objFlags": 0,
"_parent": {
"__id__": 9
7
"__id__": 9
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__":
99
"__id__":
101
}
],
"_prefab": null,
...
...
@@ -4568,7 +4673,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
98
"__id__":
100
},
"_enabled": true,
"_materials": [
...
...
@@ -4600,13 +4705,13 @@
"_name": "img_2",
"_objFlags": 0,
"_parent": {
"__id__": 9
7
"__id__": 9
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
1
"__id__": 10
3
}
],
"_prefab": null,
...
...
@@ -4662,7 +4767,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
0
"__id__": 10
2
},
"_enabled": true,
"_materials": [
...
...
@@ -4694,7 +4799,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
7
"__id__": 9
9
},
"_enabled": true,
"_id": "99+apunKpKbK8WdfjFGb2F"
...
...
@@ -4708,16 +4813,16 @@
},
"_children": [
{
"__id__": 10
4
"__id__": 10
6
},
{
"__id__": 10
6
"__id__": 10
8
}
],
"_active": true,
"_components": [
{
"__id__": 11
0
"__id__": 11
2
}
],
"_prefab": null,
...
...
@@ -4773,13 +4878,13 @@
"_name": "ani",
"_objFlags": 0,
"_parent": {
"__id__": 10
3
"__id__": 10
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
5
"__id__": 10
7
}
],
"_prefab": null,
...
...
@@ -4835,7 +4940,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
4
"__id__": 10
6
},
"_enabled": true,
"_materials": [
...
...
@@ -4875,17 +4980,17 @@
"_name": "btn_go",
"_objFlags": 0,
"_parent": {
"__id__": 10
3
"__id__": 10
5
},
"_children": [
{
"__id__": 10
7
"__id__": 10
9
}
],
"_active": false,
"_components": [
{
"__id__": 1
09
"__id__": 1
11
}
],
"_prefab": null,
...
...
@@ -4941,13 +5046,13 @@
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 10
6
"__id__": 10
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
08
"__id__": 1
10
}
],
"_prefab": null,
...
...
@@ -5003,7 +5108,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
7
"__id__": 10
9
},
"_enabled": true,
"_materials": [
...
...
@@ -5036,7 +5141,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
6
"__id__": 10
8
},
"_enabled": true,
"_materials": [
...
...
@@ -5068,11 +5173,11 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 10
3
"__id__": 10
5
},
"_enabled": true,
"aniRole": {
"__id__": 10
4
"__id__": 10
6
},
"moveX": 500,
"_id": "e4RrOXSNJGd68Mq3UTYY0p"
...
...
@@ -5086,13 +5191,13 @@
},
"_children": [
{
"__id__": 11
2
"__id__": 11
4
},
{
"__id__": 11
5
"__id__": 11
7
},
{
"__id__": 11
6
"__id__": 11
8
}
],
"_active": true,
...
...
@@ -5150,11 +5255,11 @@
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 11
1
"__id__": 11
3
},
"_children": [
{
"__id__": 11
3
"__id__": 11
5
}
],
"_active": true,
...
...
@@ -5212,13 +5317,13 @@
"_name": "BRLNSDB",
"_objFlags": 0,
"_parent": {
"__id__": 11
2
"__id__": 11
4
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
4
"__id__": 11
6
}
],
"_prefab": null,
...
...
@@ -5274,7 +5379,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
3
"__id__": 11
5
},
"_enabled": true,
"_materials": [
...
...
@@ -5309,7 +5414,7 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 11
1
"__id__": 11
3
},
"_children": [],
"_active": true,
...
...
@@ -5367,12 +5472,9 @@
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 11
1
"__id__": 11
3
},
"_children": [
{
"__id__": 117
},
{
"__id__": 119
},
...
...
@@ -5387,6 +5489,9 @@
},
{
"__id__": 127
},
{
"__id__": 129
}
],
"_active": true,
...
...
@@ -5444,13 +5549,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 11
6
"__id__": 11
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
18
"__id__": 1
20
}
],
"_prefab": null,
...
...
@@ -5506,7 +5611,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
7
"__id__": 11
9
},
"_enabled": true,
"_clip": {
...
...
@@ -5525,13 +5630,13 @@
"_name": "right",
"_objFlags": 0,
"_parent": {
"__id__": 11
6
"__id__": 11
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
0
"__id__": 12
2
}
],
"_prefab": null,
...
...
@@ -5587,7 +5692,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
19
"__id__": 1
21
},
"_enabled": true,
"_clip": {
...
...
@@ -5606,13 +5711,13 @@
"_name": "bettery",
"_objFlags": 0,
"_parent": {
"__id__": 11
6
"__id__": 11
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
2
"__id__": 12
4
}
],
"_prefab": null,
...
...
@@ -5668,7 +5773,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
1
"__id__": 12
3
},
"_enabled": true,
"_clip": {
...
...
@@ -5687,13 +5792,13 @@
"_name": "error",
"_objFlags": 0,
"_parent": {
"__id__": 11
6
"__id__": 11
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
4
"__id__": 12
6
}
],
"_prefab": null,
...
...
@@ -5749,7 +5854,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
3
"__id__": 12
5
},
"_enabled": true,
"_clip": {
...
...
@@ -5768,13 +5873,13 @@
"_name": "bgm",
"_objFlags": 0,
"_parent": {
"__id__": 11
6
"__id__": 11
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
6
"__id__": 12
8
}
],
"_prefab": null,
...
...
@@ -5830,7 +5935,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
5
"__id__": 12
7
},
"_enabled": true,
"_clip": {
...
...
@@ -5849,13 +5954,13 @@
"_name": "opendoor",
"_objFlags": 0,
"_parent": {
"__id__": 11
6
"__id__": 11
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
28
"__id__": 1
30
}
],
"_prefab": null,
...
...
@@ -5911,7 +6016,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
7
"__id__": 12
9
},
"_enabled": true,
"_clip": {
...
...
@@ -5993,16 +6098,25 @@
"__id__": 63
},
"item_battery_text": {
"__id__": 7
3
"__id__": 7
5
},
"item_battery_img": {
"__id__": 6
5
"__id__": 6
7
},
"img_left": {
"__id__": 9
1
"__id__": 9
3
},
"img_right": {
"__id__": 97
"__id__": 99
},
"ani_star": {
"__id__": 65
},
"img_dengpao": {
"__id__": 52
},
"img_dengdai": {
"__id__": 50
},
"_id": "5b78aJTZFGI79ubV+y7E/s"
}
...
...
assets/dg18_danci/scene/dg28_drag.ts
View file @
c11f5126
...
...
@@ -56,7 +56,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 初始化页面
initView
()
{
this
.
img_dengdai
.
opacity
=
100
;
this
.
img_dengpao
.
opacity
=
100
;
}
// 事件监听
initEvent
()
{
...
...
@@ -76,7 +77,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
@
property
(
cc
.
Node
)
item_battery_img
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
img_left
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
img_right
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
ani_star
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
img_dengpao
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
img_dengdai
:
cc
.
Node
=
null
;
initCanvas
()
{
this
.
img_dengdai
.
opacity
=
100
;
this
.
img_dengpao
.
opacity
=
100
;
let
img
=
pg
.
view
.
find
(
this
.
layout_canvas
,
'
img
'
);
pg
.
view
.
setNetImg
(
img
,
this
.
currentQuestion
.
bgItem
.
url
,
{
w
:
1220
,
h
:
790
},
false
)
...
...
@@ -125,7 +132,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
delayTime
=
1.5
;
if
(
this
.
current
==
0
)
{
this
.
scheduleOnce
(()
=>
{
this
.
playLocalAudio
(
'
bettery
'
)
this
.
playLocalAudio
(
'
bettery
'
).
then
(()
=>
{
pg
.
audio
.
playLocalBgm
(
pg
.
view
.
find
(
this
,
'
res/audio/bgm
'
))
})
},
delayTime
)
}
else
{
this
.
playLocalAudio
(
'
bettery
'
)
...
...
@@ -298,21 +307,41 @@ export default class SceneComponent extends MyCocosSceneComponent {
onMeetSuccess
(
node
,
targetData
)
{
this
.
playLocalAudio
(
'
right
'
)
node
.
off
(
cc
.
Node
.
EventType
.
TOUCH_START
,
this
.
onTouchStart
,
this
);
node
.
off
(
cc
.
Node
.
EventType
.
TOUCH_MOVE
,
this
.
onTouchMove
,
this
);
node
.
off
(
cc
.
Node
.
EventType
.
TOUCH_END
,
this
.
onTouchEnd
,
this
);
node
.
off
(
cc
.
Node
.
EventType
.
TOUCH_CANCEL
,
this
.
onTouchEnd
,
this
);
node
.
x
=
targetData
.
pos
.
x
;
node
.
y
=
targetData
.
pos
.
y
;
pg
.
view
.
setColor
(
pg
.
view
.
find
(
node
,
'
text
'
),
'
#1D8B38
'
)
let
item
=
pg
.
view
.
clone
(
this
.
ani_star
);
node
.
addChild
(
item
);
item
.
x
=
-
15
;
item
.
y
=
-
15
;
item
.
active
=
true
;
pg
.
view
.
playDBAnimation
(
item
,
'
normal
'
,
1
)
node
.
parent
=
this
.
layout_items
;
// 处理完成就结束了
this
.
successArr
.
push
(
targetData
);
// 处理完成
if
(
this
.
successArr
.
length
==
this
.
currentQuestion
.
hotZoneItemArr
.
length
)
{
this
.
nextStage
();
cc
.
tween
(
this
.
img_dengdai
).
repeat
(
2
,
cc
.
tween
().
to
(
0.2
,
{
opacity
:
255
}).
to
(
0.2
,
{
opacity
:
50
})).
to
(
0.2
,
{
opacity
:
255
}).
start
();
cc
.
tween
(
this
.
img_dengpao
).
repeatForever
(
cc
.
tween
().
to
(
0.2
,
{
opacity
:
255
}).
to
(
0.2
,
{
opacity
:
50
})).
start
();
this
.
scheduleOnce
(()
=>
{
cc
.
Tween
.
stopAllByTarget
(
this
.
img_dengdai
)
cc
.
Tween
.
stopAllByTarget
(
this
.
img_dengpao
)
this
.
img_dengdai
.
opacity
=
100
;
this
.
img_dengpao
.
opacity
=
100
;
this
.
nextStage
();
},
2
)
}
}
onMeetFail
(
node
)
{
this
.
playLocalAudio
(
'
error
'
)
node
.
x
=
node
.
cPos
.
x
;
node
.
y
=
node
.
cPos
.
y
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment