Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DG22
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
DG22
Commits
8d8b6143
Commit
8d8b6143
authored
Nov 28, 2023
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 流程调整
parent
0243e50c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
275 additions
and
81 deletions
+275
-81
DG22.fire
assets/DG22/scene/DG22.fire
+249
-78
DG22.ts
assets/DG22/scene/DG22.ts
+26
-3
No files found.
assets/DG22/scene/DG22.fire
View file @
8d8b6143
...
@@ -78,25 +78,25 @@
...
@@ -78,25 +78,25 @@
"__id__": 7
"__id__": 7
},
},
{
{
"__id__": 11
4
"__id__": 11
7
},
},
{
{
"__id__": 13
0
"__id__": 13
3
},
},
{
{
"__id__": 13
2
"__id__": 13
5
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 13
4
"__id__": 13
7
},
},
{
{
"__id__": 13
5
"__id__": 13
8
},
},
{
{
"__id__": 13
6
"__id__": 13
9
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -375,16 +375,19 @@
...
@@ -375,16 +375,19 @@
"__id__": 94
"__id__": 94
},
},
{
{
"__id__":
100
"__id__":
97
},
},
{
{
"__id__": 107
"__id__": 103
},
{
"__id__": 110
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 11
3
"__id__": 11
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4598,6 +4601,171 @@
...
@@ -4598,6 +4601,171 @@
"_N$target": null,
"_N$target": null,
"_id": "b62XfVsnRCVrgTnxhcewWu"
"_id": "b62XfVsnRCVrgTnxhcewWu"
},
},
{
"__type__": "cc.Node",
"_name": "restart",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 95
},
{
"__id__": 96
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 489,
"height": 167
},
"_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": "70Jrj02MFHMKV4bUvLckoQ"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 94
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "749796f2-aa4f-4286-a0b2-a5d951bd9084"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "7ebVMU0PlGxI5xGCcoLLQV"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 94
},
"_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": "0f1+6iBs1OLbieUt0c3hLQ"
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "btn_go",
"_name": "btn_go",
...
@@ -4607,19 +4775,19 @@
...
@@ -4607,19 +4775,19 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 9
5
"__id__": 9
8
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
97
"__id__":
100
},
},
{
{
"__id__":
98
"__id__":
101
},
},
{
{
"__id__":
99
"__id__":
102
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4675,13 +4843,13 @@
...
@@ -4675,13 +4843,13 @@
"_name": "lb",
"_name": "lb",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 9
4
"__id__": 9
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 9
6
"__id__": 9
9
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4737,7 +4905,7 @@
...
@@ -4737,7 +4905,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 9
5
"__id__": 9
8
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4770,7 +4938,7 @@
...
@@ -4770,7 +4938,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 9
4
"__id__": 9
7
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4802,7 +4970,7 @@
...
@@ -4802,7 +4970,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 9
4
"__id__": 9
7
},
},
"_enabled": true,
"_enabled": true,
"_normalMaterial": null,
"_normalMaterial": null,
...
@@ -4870,7 +5038,7 @@
...
@@ -4870,7 +5038,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 9
4
"__id__": 9
7
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
...
@@ -4901,13 +5069,13 @@
...
@@ -4901,13 +5069,13 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 10
1
"__id__": 10
4
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 10
6
"__id__": 10
9
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4963,20 +5131,20 @@
...
@@ -4963,20 +5131,20 @@
"_name": "lb",
"_name": "lb",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 10
0
"__id__": 10
3
},
},
"_children": [
"_children": [
{
{
"__id__": 10
2
"__id__": 10
5
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 10
4
"__id__": 10
7
},
},
{
{
"__id__": 10
5
"__id__": 10
8
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5032,13 +5200,13 @@
...
@@ -5032,13 +5200,13 @@
"_name": "right_ske",
"_name": "right_ske",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 10
1
"__id__": 10
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 10
3
"__id__": 10
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5094,7 +5262,7 @@
...
@@ -5094,7 +5262,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 10
2
"__id__": 10
5
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5134,7 +5302,7 @@
...
@@ -5134,7 +5302,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 10
1
"__id__": 10
4
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5169,7 +5337,7 @@
...
@@ -5169,7 +5337,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 10
1
"__id__": 10
4
},
},
"_enabled": true,
"_enabled": true,
"_color": {
"_color": {
...
@@ -5192,7 +5360,7 @@
...
@@ -5192,7 +5360,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 10
0
"__id__": 10
3
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5228,16 +5396,16 @@
...
@@ -5228,16 +5396,16 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 1
08
"__id__": 1
11
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 11
1
"__id__": 11
4
},
},
{
{
"__id__": 11
2
"__id__": 11
5
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5293,16 +5461,16 @@
...
@@ -5293,16 +5461,16 @@
"_name": "lb",
"_name": "lb",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
07
"__id__": 1
10
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
09
"__id__": 1
12
},
},
{
{
"__id__": 11
0
"__id__": 11
3
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5358,7 +5526,7 @@
...
@@ -5358,7 +5526,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
08
"__id__": 1
11
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5393,7 +5561,7 @@
...
@@ -5393,7 +5561,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
08
"__id__": 1
11
},
},
"_enabled": true,
"_enabled": true,
"_color": {
"_color": {
...
@@ -5416,7 +5584,7 @@
...
@@ -5416,7 +5584,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
07
"__id__": 1
10
},
},
"_enabled": true,
"_enabled": true,
"_layoutSize": {
"_layoutSize": {
...
@@ -5448,7 +5616,7 @@
...
@@ -5448,7 +5616,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
07
"__id__": 1
10
},
},
"_enabled": true,
"_enabled": true,
"_id": "d3jhg8+Y5Nm6MliA6sDChp"
"_id": "d3jhg8+Y5Nm6MliA6sDChp"
...
@@ -5489,13 +5657,13 @@
...
@@ -5489,13 +5657,13 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 11
5
"__id__": 11
8
},
},
{
{
"__id__": 1
18
"__id__": 1
21
},
},
{
{
"__id__": 1
19
"__id__": 1
22
}
}
],
],
"_active": true,
"_active": true,
...
@@ -5553,11 +5721,11 @@
...
@@ -5553,11 +5721,11 @@
"_name": "font",
"_name": "font",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 11
4
"__id__": 11
7
},
},
"_children": [
"_children": [
{
{
"__id__": 11
6
"__id__": 11
9
}
}
],
],
"_active": true,
"_active": true,
...
@@ -5615,13 +5783,13 @@
...
@@ -5615,13 +5783,13 @@
"_name": "BRLNSDB",
"_name": "BRLNSDB",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 11
5
"__id__": 11
8
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
17
"__id__": 1
20
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5677,7 +5845,7 @@
...
@@ -5677,7 +5845,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 11
6
"__id__": 11
9
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5712,7 +5880,7 @@
...
@@ -5712,7 +5880,7 @@
"_name": "img",
"_name": "img",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 11
4
"__id__": 11
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
...
@@ -5770,23 +5938,23 @@
...
@@ -5770,23 +5938,23 @@
"_name": "audio",
"_name": "audio",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 11
4
"__id__": 11
7
},
},
"_children": [
"_children": [
{
{
"__id__": 12
0
"__id__": 12
3
},
},
{
{
"__id__": 12
2
"__id__": 12
5
},
},
{
{
"__id__": 12
4
"__id__": 12
7
},
},
{
{
"__id__": 12
6
"__id__": 12
9
},
},
{
{
"__id__": 1
28
"__id__": 1
31
}
}
],
],
"_active": true,
"_active": true,
...
@@ -5844,13 +6012,13 @@
...
@@ -5844,13 +6012,13 @@
"_name": "btn",
"_name": "btn",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
19
"__id__": 1
22
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 12
1
"__id__": 12
4
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5906,7 +6074,7 @@
...
@@ -5906,7 +6074,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 12
0
"__id__": 12
3
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -5925,13 +6093,13 @@
...
@@ -5925,13 +6093,13 @@
"_name": "right",
"_name": "right",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
19
"__id__": 1
22
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 12
3
"__id__": 12
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5987,7 +6155,7 @@
...
@@ -5987,7 +6155,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 12
2
"__id__": 12
5
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -6006,13 +6174,13 @@
...
@@ -6006,13 +6174,13 @@
"_name": "jump",
"_name": "jump",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
19
"__id__": 1
22
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 12
5
"__id__": 12
8
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -6068,7 +6236,7 @@
...
@@ -6068,7 +6236,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 12
4
"__id__": 12
7
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -6087,13 +6255,13 @@
...
@@ -6087,13 +6255,13 @@
"_name": "wrong",
"_name": "wrong",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
19
"__id__": 1
22
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
27
"__id__": 1
30
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -6149,7 +6317,7 @@
...
@@ -6149,7 +6317,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 12
6
"__id__": 12
9
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -6168,13 +6336,13 @@
...
@@ -6168,13 +6336,13 @@
"_name": "yeah",
"_name": "yeah",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
19
"__id__": 1
22
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
29
"__id__": 1
32
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -6230,7 +6398,7 @@
...
@@ -6230,7 +6398,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
28
"__id__": 1
31
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -6255,7 +6423,7 @@
...
@@ -6255,7 +6423,7 @@
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 13
1
"__id__": 13
4
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -6311,7 +6479,7 @@
...
@@ -6311,7 +6479,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 13
0
"__id__": 13
3
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -6336,7 +6504,7 @@
...
@@ -6336,7 +6504,7 @@
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 13
3
"__id__": 13
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -6392,7 +6560,7 @@
...
@@ -6392,7 +6560,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 13
2
"__id__": 13
5
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -6478,7 +6646,7 @@
...
@@ -6478,7 +6646,7 @@
"__id__": 78
"__id__": 78
},
},
"dragObj": {
"dragObj": {
"__id__": 1
07
"__id__": 1
10
},
},
"itemBg": {
"itemBg": {
"__id__": 44
"__id__": 44
...
@@ -6487,7 +6655,7 @@
...
@@ -6487,7 +6655,7 @@
"__id__": 45
"__id__": 45
},
},
"box": {
"box": {
"__id__": 10
0
"__id__": 10
3
},
},
"dragRoot": {
"dragRoot": {
"__id__": 49
"__id__": 49
...
@@ -6495,9 +6663,12 @@
...
@@ -6495,9 +6663,12 @@
"btn_start": {
"btn_start": {
"__id__": 91
"__id__": 91
},
},
"btn_
end
": {
"btn_
restart
": {
"__id__": 94
"__id__": 94
},
},
"btn_end": {
"__id__": 97
},
"cover": {
"cover": {
"__id__": 84
"__id__": 84
},
},
...
...
assets/DG22/scene/DG22.ts
View file @
8d8b6143
...
@@ -20,7 +20,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -20,7 +20,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
itemBg
=
null
;
itemBg
=
null
;
@
property
(
cc
.
Node
)
@
property
(
cc
.
Node
)
rect
=
null
;
rect
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
@
property
(
cc
.
Node
)
box
=
null
;
box
=
null
;
...
@@ -30,6 +30,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -30,6 +30,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
@
property
(
cc
.
Node
)
@
property
(
cc
.
Node
)
btn_start
:
cc
.
Node
=
null
;
btn_start
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
btn_restart
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
@
property
(
cc
.
Node
)
btn_end
:
cc
.
Node
=
null
;
btn_end
:
cc
.
Node
=
null
;
...
@@ -99,7 +102,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -99,7 +102,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
startPage
()
{
startPage
()
{
this
.
btn_start
.
active
=
false
;
this
.
btn_start
.
active
=
false
;
this
.
cover
.
active
=
false
;
this
.
cover
.
active
=
false
;
this
.
btn_restart
.
active
=
false
;
this
.
boyNode
.
getComponent
(
Boy
).
playRun
(
-
1
);
this
.
boyNode
.
getComponent
(
Boy
).
playRun
(
-
1
);
this
.
boyNode
.
scaleX
=
-
0.5
;
this
.
boyNode
.
scaleX
=
-
0.5
;
...
@@ -109,13 +112,32 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -109,13 +112,32 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
initPageView
();
this
.
initPageView
();
}
restartPage
()
{
this
.
btn_start
.
active
=
false
;
this
.
btn_restart
.
active
=
false
;
this
.
cover
.
active
=
false
;
this
.
btn_end
.
active
=
false
;
this
.
dragRoot
.
children
.
forEach
((
val
)
=>
{
val
.
removeAllChildren
();
});
this
.
rect
.
removeAllChildren
();
this
.
boyNode
.
getComponent
(
Boy
).
playtalk
(
-
1
);
this
.
playAudioByUrl
(
this
.
data
.
start_audio_url
,
()
=>
{
this
.
boyNode
.
getComponent
(
Boy
).
playNormal
();
this
.
initPageView
();
})
}
}
initBg
()
{
initBg
()
{
const
bgNode
=
cc
.
find
(
'
Canvas/bg
'
);
const
bgNode
=
cc
.
find
(
'
Canvas/bg
'
);
bgNode
.
scale
=
this
.
_mapScaleMax
;
bgNode
.
scale
=
this
.
_mapScaleMax
;
cc
.
tween
(
this
.
btn_start
).
to
(
0.3
,
{
scale
:
1.1
}).
to
(
0.2
,
{
scale
:
1
}).
delay
(
1
).
union
().
repeatForever
().
start
();
cc
.
tween
(
this
.
btn_start
).
to
(
0.3
,
{
scale
:
1.1
}).
to
(
0.2
,
{
scale
:
1
}).
delay
(
1
).
union
().
repeatForever
().
start
();
cc
.
tween
(
this
.
btn_restart
).
to
(
0.3
,
{
scale
:
1.1
}).
to
(
0.2
,
{
scale
:
1
}).
delay
(
1
).
union
().
repeatForever
().
start
();
this
.
btn_restart
.
active
=
false
;
this
.
cover
.
active
=
true
;
this
.
cover
.
active
=
true
;
this
.
btn_start
.
on
(
"
click
"
,
this
.
startPage
,
this
)
this
.
btn_start
.
on
(
"
click
"
,
this
.
startPage
,
this
)
this
.
btn_restart
.
on
(
"
click
"
,
this
.
restartPage
,
this
)
this
.
btn_start
.
active
=
false
;
this
.
btn_start
.
active
=
false
;
this
.
btn_end
.
active
=
false
;
this
.
btn_end
.
active
=
false
;
...
@@ -177,7 +199,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -177,7 +199,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc
.
log
(
keyMap
)
cc
.
log
(
keyMap
)
for
(
let
i
=
0
;
i
<
this
.
dragData
.
length
;
++
i
)
{
for
(
let
i
=
0
;
i
<
this
.
dragData
.
length
;
++
i
)
{
list
[
i
].
removeAllChildren
();
let
itemInfo
=
this
.
dragData
[
i
];
let
itemInfo
=
this
.
dragData
[
i
];
let
key
=
itemInfo
.
text
let
key
=
itemInfo
.
text
let
dragNode
=
cc
.
instantiate
(
this
.
dragObj
);
let
dragNode
=
cc
.
instantiate
(
this
.
dragObj
);
...
@@ -219,6 +241,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -219,6 +241,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
playAudioByUrl
(
this
.
data
.
end_audio_url
,
()
=>
{
this
.
playAudioByUrl
(
this
.
data
.
end_audio_url
,
()
=>
{
this
.
boyNode
.
getComponent
(
Boy
).
playNormal
();
this
.
boyNode
.
getComponent
(
Boy
).
playNormal
();
this
.
btn_end
.
active
=
true
;
this
.
btn_end
.
active
=
true
;
this
.
btn_restart
.
active
=
true
;
})
})
...
...
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