Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
boardgame_yyh
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
boardgame_yyh
Commits
912f59e5
Commit
912f59e5
authored
Jul 29, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3d24d5ed
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
204 additions
and
185 deletions
+204
-185
boardgame_yyh.fire
assets/boardgame_yyh/scene/boardgame_yyh.fire
+182
-182
boardgame_yyh.ts
assets/boardgame_yyh/scene/boardgame_yyh.ts
+18
-0
Server.ts
assets/boardgame_yyh/script/Server.ts
+4
-3
No files found.
assets/boardgame_yyh/scene/boardgame_yyh.fire
View file @
912f59e5
...
@@ -378,7 +378,7 @@
...
@@ -378,7 +378,7 @@
"__id__": 47
"__id__": 47
},
},
{
{
"__id__": 6
5
"__id__": 6
3
}
}
],
],
"_active": true,
"_active": true,
...
@@ -2386,15 +2386,12 @@
...
@@ -2386,15 +2386,12 @@
},
},
{
{
"__id__": 60
"__id__": 60
},
{
"__id__": 62
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 6
4
"__id__": 6
2
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3103,100 +3100,6 @@
...
@@ -3103,100 +3100,6 @@
"_atlas": null,
"_atlas": null,
"_id": "07QG3MCMBB8LHPdSqJgjS3"
"_id": "07QG3MCMBB8LHPdSqJgjS3"
},
},
{
"__type__": "cc.Node",
"_name": "END",
"_objFlags": 0,
"_parent": {
"__id__": 47
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 63
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 151,
"height": 84
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-146.349,
-346.819,
0,
0,
0,
0,
1,
0.5,
0.5,
0.5
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "43pYokD/tIIaj4+t5D9qdD"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 62
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d167eca7-14b3-407d-9fbf-bc10cc29682f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b2b8xCOPdOAoKnxrX0keW8"
},
{
{
"__type__": "cc.Widget",
"__type__": "cc.Widget",
"_name": "",
"_name": "",
...
@@ -3233,7 +3136,10 @@
...
@@ -3233,7 +3136,10 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 66
"__id__": 64
},
{
"__id__": 113
},
},
{
{
"__id__": 115
"__id__": 115
...
@@ -3297,9 +3203,12 @@
...
@@ -3297,9 +3203,12 @@
"_name": "wordCards",
"_name": "wordCards",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
5
"__id__": 6
3
},
},
"_children": [
"_children": [
{
"__id__": 65
},
{
{
"__id__": 67
"__id__": 67
},
},
...
@@ -3368,9 +3277,6 @@
...
@@ -3368,9 +3277,6 @@
},
},
{
{
"__id__": 111
"__id__": 111
},
{
"__id__": 113
}
}
],
],
"_active": true,
"_active": true,
...
@@ -3428,13 +3334,13 @@
...
@@ -3428,13 +3334,13 @@
"_name": "1",
"_name": "1",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 6
8
"__id__": 6
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3490,7 +3396,7 @@
...
@@ -3490,7 +3396,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
7
"__id__": 6
5
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3522,13 +3428,13 @@
...
@@ -3522,13 +3428,13 @@
"_name": "2",
"_name": "2",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
70
"__id__":
68
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3584,7 +3490,7 @@
...
@@ -3584,7 +3490,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
9
"__id__": 6
7
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3616,13 +3522,13 @@
...
@@ -3616,13 +3522,13 @@
"_name": "3",
"_name": "3",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 7
2
"__id__": 7
0
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3678,7 +3584,7 @@
...
@@ -3678,7 +3584,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
71
"__id__":
69
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3710,13 +3616,13 @@
...
@@ -3710,13 +3616,13 @@
"_name": "4",
"_name": "4",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 7
4
"__id__": 7
2
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3772,7 +3678,7 @@
...
@@ -3772,7 +3678,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 7
3
"__id__": 7
1
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3804,13 +3710,13 @@
...
@@ -3804,13 +3710,13 @@
"_name": "5",
"_name": "5",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 7
6
"__id__": 7
4
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3866,7 +3772,7 @@
...
@@ -3866,7 +3772,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 7
5
"__id__": 7
3
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3898,13 +3804,13 @@
...
@@ -3898,13 +3804,13 @@
"_name": "6",
"_name": "6",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 7
8
"__id__": 7
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -3960,7 +3866,7 @@
...
@@ -3960,7 +3866,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 7
7
"__id__": 7
5
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -3992,13 +3898,13 @@
...
@@ -3992,13 +3898,13 @@
"_name": "7",
"_name": "7",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
80
"__id__":
78
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4054,7 +3960,7 @@
...
@@ -4054,7 +3960,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 7
9
"__id__": 7
7
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4086,13 +3992,13 @@
...
@@ -4086,13 +3992,13 @@
"_name": "8",
"_name": "8",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 8
2
"__id__": 8
0
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4148,7 +4054,7 @@
...
@@ -4148,7 +4054,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
81
"__id__":
79
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4180,13 +4086,13 @@
...
@@ -4180,13 +4086,13 @@
"_name": "9",
"_name": "9",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 8
4
"__id__": 8
2
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4242,7 +4148,7 @@
...
@@ -4242,7 +4148,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 8
3
"__id__": 8
1
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4274,13 +4180,13 @@
...
@@ -4274,13 +4180,13 @@
"_name": "10",
"_name": "10",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 8
6
"__id__": 8
4
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4336,7 +4242,7 @@
...
@@ -4336,7 +4242,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 8
5
"__id__": 8
3
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4368,13 +4274,13 @@
...
@@ -4368,13 +4274,13 @@
"_name": "11",
"_name": "11",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 8
8
"__id__": 8
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4430,7 +4336,7 @@
...
@@ -4430,7 +4336,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 8
7
"__id__": 8
5
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4462,13 +4368,13 @@
...
@@ -4462,13 +4368,13 @@
"_name": "12",
"_name": "12",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
90
"__id__":
88
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4524,7 +4430,7 @@
...
@@ -4524,7 +4430,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 8
9
"__id__": 8
7
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4556,13 +4462,13 @@
...
@@ -4556,13 +4462,13 @@
"_name": "13",
"_name": "13",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 9
2
"__id__": 9
0
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4618,7 +4524,7 @@
...
@@ -4618,7 +4524,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
91
"__id__":
89
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4650,13 +4556,13 @@
...
@@ -4650,13 +4556,13 @@
"_name": "14",
"_name": "14",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 9
4
"__id__": 9
2
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4712,7 +4618,7 @@
...
@@ -4712,7 +4618,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 9
3
"__id__": 9
1
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4744,13 +4650,13 @@
...
@@ -4744,13 +4650,13 @@
"_name": "15",
"_name": "15",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 9
6
"__id__": 9
4
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4806,7 +4712,7 @@
...
@@ -4806,7 +4712,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 9
5
"__id__": 9
3
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4838,13 +4744,13 @@
...
@@ -4838,13 +4744,13 @@
"_name": "16",
"_name": "16",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 9
8
"__id__": 9
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4900,7 +4806,7 @@
...
@@ -4900,7 +4806,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 9
7
"__id__": 9
5
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -4932,13 +4838,13 @@
...
@@ -4932,13 +4838,13 @@
"_name": "17",
"_name": "17",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
100
"__id__":
98
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -4994,7 +4900,7 @@
...
@@ -4994,7 +4900,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 9
9
"__id__": 9
7
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5026,13 +4932,13 @@
...
@@ -5026,13 +4932,13 @@
"_name": "18",
"_name": "18",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 10
2
"__id__": 10
0
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5088,7 +4994,7 @@
...
@@ -5088,7 +4994,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
101
"__id__":
99
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5120,13 +5026,13 @@
...
@@ -5120,13 +5026,13 @@
"_name": "19",
"_name": "19",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 10
4
"__id__": 10
2
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5182,7 +5088,7 @@
...
@@ -5182,7 +5088,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 10
3
"__id__": 10
1
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5214,13 +5120,13 @@
...
@@ -5214,13 +5120,13 @@
"_name": "20",
"_name": "20",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 10
6
"__id__": 10
4
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5276,7 +5182,7 @@
...
@@ -5276,7 +5182,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 10
5
"__id__": 10
3
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5308,13 +5214,13 @@
...
@@ -5308,13 +5214,13 @@
"_name": "21",
"_name": "21",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 10
8
"__id__": 10
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5370,7 +5276,7 @@
...
@@ -5370,7 +5276,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 10
7
"__id__": 10
5
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5402,13 +5308,13 @@
...
@@ -5402,13 +5308,13 @@
"_name": "22",
"_name": "22",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
10
"__id__": 1
08
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5464,7 +5370,7 @@
...
@@ -5464,7 +5370,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 10
9
"__id__": 10
7
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5496,13 +5402,13 @@
...
@@ -5496,13 +5402,13 @@
"_name": "23",
"_name": "23",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 11
2
"__id__": 11
0
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5558,7 +5464,7 @@
...
@@ -5558,7 +5464,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
11
"__id__": 1
09
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5590,13 +5496,13 @@
...
@@ -5590,13 +5496,13 @@
"_name": "24",
"_name": "24",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
6
"__id__": 6
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 11
4
"__id__": 11
2
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5652,7 +5558,7 @@
...
@@ -5652,7 +5558,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 11
3
"__id__": 11
1
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5684,13 +5590,13 @@
...
@@ -5684,13 +5590,13 @@
"_name": "pieceBlue",
"_name": "pieceBlue",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
5
"__id__": 6
3
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 11
6
"__id__": 11
4
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5746,7 +5652,7 @@
...
@@ -5746,7 +5652,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 11
5
"__id__": 11
3
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5778,13 +5684,13 @@
...
@@ -5778,13 +5684,13 @@
"_name": "pieceRed",
"_name": "pieceRed",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 6
5
"__id__": 6
3
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 11
8
"__id__": 11
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -5840,7 +5746,7 @@
...
@@ -5840,7 +5746,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 11
7
"__id__": 11
5
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -5867,6 +5773,100 @@
...
@@ -5867,6 +5773,100 @@
"_atlas": null,
"_atlas": null,
"_id": "74BM4EpfxDH4Oq9oRSTI8H"
"_id": "74BM4EpfxDH4Oq9oRSTI8H"
},
},
{
"__type__": "cc.Node",
"_name": "END",
"_objFlags": 0,
"_parent": {
"__id__": 63
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 118
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 151,
"height": 84
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-292.698,
-693.638,
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": "43pYokD/tIIaj4+t5D9qdD"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 117
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d167eca7-14b3-407d-9fbf-bc10cc29682f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b2b8xCOPdOAoKnxrX0keW8"
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
"_name": "",
"_name": "",
...
...
assets/boardgame_yyh/scene/boardgame_yyh.ts
View file @
912f59e5
...
@@ -397,6 +397,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -397,6 +397,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
return
;
return
;
}
}
this
.
playLocalAudio
(
"
btn
"
);
this
.
playLocalAudio
(
"
btn
"
);
this
.
normaltheDice
();
this
.
networkHelper
.
sendFrame
({
this
.
networkHelper
.
sendFrame
({
type
:
"
roll
"
,
type
:
"
roll
"
,
uuid
:
this
.
myData
.
uuid
,
uuid
:
this
.
myData
.
uuid
,
...
@@ -844,6 +845,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -844,6 +845,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
`Canvas/road/root/piece
${
this
.
_status
.
current
}
`
`Canvas/road/root/piece
${
this
.
_status
.
current
}
`
);
);
await
this
.
fixStep
();
await
this
.
fixStep
();
await
this
.
toEnd
()
if
(
this
.
isMySide
)
{
if
(
this
.
isMySide
)
{
this
.
showWin
();
this
.
showWin
();
onHomeworkFinish
({
isWin
:
true
});
onHomeworkFinish
({
isWin
:
true
});
...
@@ -856,6 +858,21 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -856,6 +858,21 @@ export default class SceneComponent extends MyCocosSceneComponent {
});
});
}
}
async
toEnd
()
{
let
node
=
cc
.
find
(
`Canvas/road/root/piece
${
this
.
_status
.
current
}
`
);
let
pos
=
cc
.
find
(
`Canvas/road/root/END`
).
getPosition
();
await
asyncTweenTo
(
node
,
0.7
,
{
x
:
pos
.
x
,
y
:
pos
.
y
},
{
easing
:
"
cubicOut
"
}
);
await
asyncDelay
(
0.2
);
}
showWin
()
{
showWin
()
{
let
endRoot
=
cc
.
find
(
"
Canvas/endRoot
"
)
let
endRoot
=
cc
.
find
(
"
Canvas/endRoot
"
)
endRoot
.
active
=
true
;
endRoot
.
active
=
true
;
...
@@ -901,6 +918,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -901,6 +918,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
this
.
_isRolling
)
{
if
(
this
.
_isRolling
)
{
return
;
return
;
}
}
const
dice
=
cc
.
find
(
"
Canvas/road/board/runBoard
"
);
const
dice
=
cc
.
find
(
"
Canvas/road/board/runBoard
"
);
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
targetAngle
=
Math
.
ceil
(
dice
.
angle
/
360
+
1
)
*
360
;
const
targetAngle
=
Math
.
ceil
(
dice
.
angle
/
360
+
1
)
*
360
;
...
...
assets/boardgame_yyh/script/Server.ts
View file @
912f59e5
...
@@ -173,10 +173,11 @@ export class GameServer {
...
@@ -173,10 +173,11 @@ export class GameServer {
let
nowStep
:
number
=
this
.
gameStatus
[
this
.
gameStatus
.
current
];
let
nowStep
:
number
=
this
.
gameStatus
[
this
.
gameStatus
.
current
];
console
.
log
(
"
nowStep ===
"
+
nowStep
);
console
.
log
(
"
nowStep ===
"
+
nowStep
);
const
jump
=
this
.
jumpList
.
find
(
jump
=>
parseInt
(
jump
.
from
)
==
nowStep
+
this
.
gameStatus
.
step
);
const
jump
=
this
.
jumpList
.
find
(
jump
=>
parseInt
(
jump
.
from
)
==
nowStep
+
this
.
gameStatus
.
step
);
this
.
gameStatus
[
this
.
gameStatus
.
current
]
=
jump
?
parseInt
(
jump
.
rto
)
:
nowStep
+
this
.
gameStatus
.
step
;
this
.
gameStatus
[
this
.
gameStatus
.
current
]
=
jump
?.
rto
?
parseInt
(
jump
.
rto
)
:
nowStep
+
this
.
gameStatus
.
step
;
if
(
jump
)
{
if
(
jump
)
{
console
.
log
(
"
jump=============
"
+
jump
);
console
.
log
(
"
jump=============
"
);
console
.
log
(
jump
);
}
}
if
(
this
.
gameStatus
[
this
.
gameStatus
.
current
]
<
this
.
_totalStep
-
1
)
{
if
(
this
.
gameStatus
[
this
.
gameStatus
.
current
]
<
this
.
_totalStep
-
1
)
{
this
.
gameStatus
.
step
=
null
;
this
.
gameStatus
.
step
=
null
;
...
@@ -203,7 +204,7 @@ export class GameServer {
...
@@ -203,7 +204,7 @@ export class GameServer {
let
nowStep
:
number
=
this
.
gameStatus
[
this
.
gameStatus
.
current
];
let
nowStep
:
number
=
this
.
gameStatus
[
this
.
gameStatus
.
current
];
console
.
log
(
"
nowStep ===
"
+
nowStep
);
console
.
log
(
"
nowStep ===
"
+
nowStep
);
const
jump
=
this
.
jumpList
.
find
(
jump
=>
parseInt
(
jump
.
from
)
==
nowStep
+
this
.
gameStatus
.
step
);
const
jump
=
this
.
jumpList
.
find
(
jump
=>
parseInt
(
jump
.
from
)
==
nowStep
+
this
.
gameStatus
.
step
);
this
.
gameStatus
[
this
.
gameStatus
.
current
]
=
jump
?
parseInt
(
jump
.
wto
)
:
nowStep
;
this
.
gameStatus
[
this
.
gameStatus
.
current
]
=
jump
?.
wto
?
parseInt
(
jump
.
wto
)
:
nowStep
;
this
.
gameStatus
.
step
=
null
;
this
.
gameStatus
.
step
=
null
;
this
.
gameStatus
.
state
=
2
;
this
.
gameStatus
.
state
=
2
;
...
...
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