Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
L5R3_GuessingGame
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
L5R3_GuessingGame
Commits
56d1898b
Commit
56d1898b
authored
Nov 28, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
00875b70
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
303 additions
and
225 deletions
+303
-225
Keyboard.ts
assets/L5R3_GuessingGame/prefabs/keyboards/Keyboard.ts
+5
-0
L5R3_GuessingGame.fire
assets/L5R3_GuessingGame/scene/L5R3_GuessingGame.fire
+249
-219
L5R3_GuessingGame.ts
assets/L5R3_GuessingGame/scene/L5R3_GuessingGame.ts
+49
-6
No files found.
assets/L5R3_GuessingGame/prefabs/keyboards/Keyboard.ts
View file @
56d1898b
...
...
@@ -112,4 +112,9 @@ export default class Keyboard extends cc.Component {
this
.
btnHideNode
.
active
=
false
;
}
}
showTips
()
{
cc
.
tween
(
this
.
btnShowNode
).
to
(
0.3
,
{
scale
:
1.2
}).
to
(
0.7
,
{
scale
:
1
}).
start
();
cc
.
tween
(
this
.
btnHideNode
).
to
(
0.3
,
{
scale
:
1.2
}).
to
(
0.7
,
{
scale
:
1
}).
start
();
}
}
assets/L5R3_GuessingGame/scene/L5R3_GuessingGame.fire
View file @
56d1898b
...
...
@@ -90,34 +90,34 @@
"__id__": 268
},
{
"__id__": 28
5
"__id__": 28
6
},
{
"__id__": 28
7
"__id__": 28
8
},
{
"__id__": 31
1
"__id__": 31
2
},
{
"__id__": 3
19
"__id__": 3
20
},
{
"__id__": 33
6
"__id__": 33
7
},
{
"__id__": 37
7
"__id__": 37
8
}
],
"_active": true,
"_components": [
{
"__id__": 382
},
{
"__id__": 383
},
{
"__id__": 384
},
{
"__id__": 385
}
],
"_prefab": null,
...
...
@@ -12913,7 +12913,7 @@
"_active": true,
"_components": [
{
"__id__": 28
4
"__id__": 28
5
}
],
"_prefab": null,
...
...
@@ -12976,19 +12976,19 @@
"__id__": 270
},
{
"__id__": 27
4
"__id__": 27
5
},
{
"__id__": 27
8
"__id__": 27
9
}
],
"_active": true,
"_components": [
{
"__id__": 28
2
"__id__": 28
3
},
{
"__id__": 28
3
"__id__": 28
4
}
],
"_prefab": null,
...
...
@@ -13054,7 +13054,7 @@
"_active": true,
"_components": [
{
"__id__": 27
3
"__id__": 27
4
}
],
"_prefab": null,
...
...
@@ -13073,15 +13073,15 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.
5
,
"y": 0
.5
"x": 0.
74
,
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-5.23
6,
753.994
,
115.60
6,
602.942
,
0,
0,
0,
...
...
@@ -13117,6 +13117,9 @@
"_components": [
{
"__id__": 272
},
{
"__id__": 273
}
],
"_prefab": null,
...
...
@@ -13142,8 +13145,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-
213.15
6,
126.3
71,
-
326.19
6,
285.8
71,
0,
0,
0,
...
...
@@ -13202,6 +13205,33 @@
"_N$cacheMode": 0,
"_id": "a4v/Yvi2NKrYrMhsqZmVVl"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 271
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 9,
"_left": 22.343999999999994,
"_right": 0,
"_top": 33.129000000000005,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": "32tlc9aHBG/7dBTFCM6xpT"
},
{
"__type__": "cc.Sprite",
"_name": "",
...
...
@@ -13243,13 +13273,13 @@
},
"_children": [
{
"__id__": 27
5
"__id__": 27
6
}
],
"_active": true,
"_components": [
{
"__id__": 27
7
"__id__": 27
8
}
],
"_prefab": null,
...
...
@@ -13305,13 +13335,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 27
4
"__id__": 27
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 27
6
"__id__": 27
7
}
],
"_prefab": null,
...
...
@@ -13367,7 +13397,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
5
"__id__": 27
6
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -13435,7 +13465,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
4
"__id__": 27
5
},
"_enabled": true,
"_materials": [
...
...
@@ -13479,13 +13509,13 @@
},
"_children": [
{
"__id__": 2
79
"__id__": 2
80
}
],
"_active": true,
"_components": [
{
"__id__": 28
1
"__id__": 28
2
}
],
"_prefab": null,
...
...
@@ -13541,13 +13571,13 @@
"_name": "lb",
"_objFlags": 0,
"_parent": {
"__id__": 27
8
"__id__": 27
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 28
0
"__id__": 28
1
}
],
"_prefab": null,
...
...
@@ -13603,7 +13633,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
79
"__id__": 2
80
},
"_enabled": true,
"_materials": [
...
...
@@ -13638,7 +13668,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 27
8
"__id__": 27
9
},
"_enabled": true,
"_materials": [
...
...
@@ -13764,7 +13794,7 @@
"_active": false,
"_components": [
{
"__id__": 28
6
"__id__": 28
7
}
],
"_prefab": null,
...
...
@@ -13820,7 +13850,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
5
"__id__": 28
6
},
"_enabled": true,
"_materials": [
...
...
@@ -13856,19 +13886,19 @@
},
"_children": [
{
"__id__": 28
8
"__id__": 28
9
},
{
"__id__": 30
4
"__id__": 30
5
},
{
"__id__": 30
7
"__id__": 30
8
}
],
"_active": false,
"_components": [
{
"__id__": 31
0
"__id__": 31
1
}
],
"_prefab": null,
...
...
@@ -13924,26 +13954,26 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 28
7
"__id__": 28
8
},
"_children": [
{
"__id__": 2
89
"__id__": 2
90
},
{
"__id__": 29
1
"__id__": 29
2
},
{
"__id__": 29
3
"__id__": 29
4
},
{
"__id__": 29
5
"__id__": 29
6
},
{
"__id__": 29
7
"__id__": 29
8
},
{
"__id__":
299
"__id__":
300
}
],
"_active": true,
...
...
@@ -14001,13 +14031,13 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 28
8
"__id__": 28
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 29
0
"__id__": 29
1
}
],
"_prefab": null,
...
...
@@ -14063,7 +14093,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
89
"__id__": 2
90
},
"_enabled": true,
"_materials": [
...
...
@@ -14093,13 +14123,13 @@
"_name": "bar",
"_objFlags": 0,
"_parent": {
"__id__": 28
8
"__id__": 28
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 29
2
"__id__": 29
3
}
],
"_prefab": null,
...
...
@@ -14155,7 +14185,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
1
"__id__": 29
2
},
"_enabled": true,
"_materials": [
...
...
@@ -14187,13 +14217,13 @@
"_name": "pass",
"_objFlags": 0,
"_parent": {
"__id__": 28
8
"__id__": 28
9
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 29
4
"__id__": 29
5
}
],
"_prefab": null,
...
...
@@ -14249,7 +14279,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
3
"__id__": 29
4
},
"_enabled": true,
"_materials": [
...
...
@@ -14281,13 +14311,13 @@
"_name": "loss",
"_objFlags": 0,
"_parent": {
"__id__": 28
8
"__id__": 28
9
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 29
6
"__id__": 29
7
}
],
"_prefab": null,
...
...
@@ -14343,7 +14373,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
5
"__id__": 29
6
},
"_enabled": true,
"_materials": [
...
...
@@ -14375,13 +14405,13 @@
"_name": "lb",
"_objFlags": 0,
"_parent": {
"__id__": 28
8
"__id__": 28
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 29
8
"__id__": 29
9
}
],
"_prefab": null,
...
...
@@ -14437,7 +14467,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 29
7
"__id__": 29
8
},
"_enabled": true,
"_materials": [
...
...
@@ -14470,20 +14500,20 @@
"_name": "probar",
"_objFlags": 0,
"_parent": {
"__id__": 28
8
"__id__": 28
9
},
"_children": [
{
"__id__": 30
0
"__id__": 30
1
}
],
"_active": true,
"_components": [
{
"__id__": 30
2
"__id__": 30
3
},
{
"__id__": 30
3
"__id__": 30
4
}
],
"_prefab": null,
...
...
@@ -14539,13 +14569,13 @@
"_name": "bar",
"_objFlags": 0,
"_parent": {
"__id__":
299
"__id__":
300
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 30
1
"__id__": 30
2
}
],
"_prefab": null,
...
...
@@ -14601,7 +14631,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
0
"__id__": 30
1
},
"_enabled": true,
"_materials": [
...
...
@@ -14633,7 +14663,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
299
"__id__":
300
},
"_enabled": true,
"_materials": [
...
...
@@ -14665,12 +14695,12 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__":
299
"__id__":
300
},
"_enabled": true,
"_N$totalLength": 1170,
"_N$barSprite": {
"__id__": 30
1
"__id__": 30
2
},
"_N$mode": 0,
"_N$progress": 1,
...
...
@@ -14682,16 +14712,16 @@
"_name": "catold",
"_objFlags": 0,
"_parent": {
"__id__": 28
7
"__id__": 28
8
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 30
5
"__id__": 30
6
},
{
"__id__": 30
6
"__id__": 30
7
}
],
"_prefab": null,
...
...
@@ -14747,7 +14777,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
4
"__id__": 30
5
},
"_enabled": false,
"_materials": [
...
...
@@ -14787,7 +14817,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
4
"__id__": 30
5
},
"_enabled": false,
"alignMode": 1,
...
...
@@ -14814,16 +14844,16 @@
"_name": "cat",
"_objFlags": 0,
"_parent": {
"__id__": 28
7
"__id__": 28
8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 30
8
"__id__": 30
9
},
{
"__id__": 3
09
"__id__": 3
10
}
],
"_prefab": null,
...
...
@@ -14879,7 +14909,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
7
"__id__": 30
8
},
"_enabled": true,
"_materials": [
...
...
@@ -14919,7 +14949,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 30
7
"__id__": 30
8
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -14946,7 +14976,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
7
"__id__": 28
8
},
"_enabled": true,
"_id": "6d/SGQOnxBVJwDKGdtO3xg"
...
...
@@ -14960,13 +14990,13 @@
},
"_children": [
{
"__id__": 31
2
"__id__": 31
3
},
{
"__id__": 31
5
"__id__": 31
6
},
{
"__id__": 31
7
"__id__": 31
8
}
],
"_active": false,
...
...
@@ -15024,16 +15054,16 @@
"_name": "endbg",
"_objFlags": 0,
"_parent": {
"__id__": 31
1
"__id__": 31
2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 31
3
"__id__": 31
4
},
{
"__id__": 31
4
"__id__": 31
5
}
],
"_prefab": null,
...
...
@@ -15089,7 +15119,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
2
"__id__": 31
3
},
"_enabled": true,
"_materials": [
...
...
@@ -15121,7 +15151,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
2
"__id__": 31
3
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -15148,13 +15178,13 @@
"_name": "loss",
"_objFlags": 0,
"_parent": {
"__id__": 31
1
"__id__": 31
2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 31
6
"__id__": 31
7
}
],
"_prefab": null,
...
...
@@ -15210,7 +15240,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
5
"__id__": 31
6
},
"_enabled": true,
"_materials": [
...
...
@@ -15242,13 +15272,13 @@
"_name": "win",
"_objFlags": 0,
"_parent": {
"__id__": 31
1
"__id__": 31
2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 31
8
"__id__": 31
9
}
],
"_prefab": null,
...
...
@@ -15304,7 +15334,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
7
"__id__": 31
8
},
"_enabled": true,
"_materials": [
...
...
@@ -15340,19 +15370,19 @@
},
"_children": [
{
"__id__": 32
0
"__id__": 32
1
},
{
"__id__": 32
4
"__id__": 32
5
}
],
"_active": false,
"_components": [
{
"__id__": 33
4
"__id__": 33
5
},
{
"__id__": 33
5
"__id__": 33
6
}
],
"_prefab": null,
...
...
@@ -15408,19 +15438,19 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 3
19
"__id__": 3
20
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 321
},
{
"__id__": 322
},
{
"__id__": 323
},
{
"__id__": 324
}
],
"_prefab": null,
...
...
@@ -15476,7 +15506,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
0
"__id__": 32
1
},
"_enabled": true,
"_materials": [
...
...
@@ -15506,7 +15536,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
0
"__id__": 32
1
},
"_enabled": true,
"alignMode": 2,
...
...
@@ -15533,7 +15563,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
0
"__id__": 32
1
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -15601,20 +15631,20 @@
"_name": "BtnFrame",
"_objFlags": 0,
"_parent": {
"__id__": 3
19
"__id__": 3
20
},
"_children": [
{
"__id__": 32
5
"__id__": 32
6
},
{
"__id__": 3
29
"__id__": 3
30
}
],
"_active": true,
"_components": [
{
"__id__": 33
3
"__id__": 33
4
}
],
"_prefab": null,
...
...
@@ -15670,19 +15700,19 @@
"_name": "BtnExit",
"_objFlags": 0,
"_parent": {
"__id__": 32
4
"__id__": 32
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 326
},
{
"__id__": 327
},
{
"__id__": 328
},
{
"__id__": 329
}
],
"_prefab": null,
...
...
@@ -15738,7 +15768,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
5
"__id__": 32
6
},
"_enabled": true,
"_materials": [
...
...
@@ -15770,7 +15800,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
5
"__id__": 32
6
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -15797,7 +15827,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
5
"__id__": 32
6
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -15865,19 +15895,19 @@
"_name": "BtnPlayAgain",
"_objFlags": 0,
"_parent": {
"__id__": 32
4
"__id__": 32
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 330
},
{
"__id__": 331
},
{
"__id__": 332
},
{
"__id__": 333
}
],
"_prefab": null,
...
...
@@ -15933,7 +15963,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
29
"__id__": 3
30
},
"_enabled": true,
"_materials": [
...
...
@@ -15965,7 +15995,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
29
"__id__": 3
30
},
"_enabled": true,
"alignMode": 1,
...
...
@@ -15992,7 +16022,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
29
"__id__": 3
30
},
"_enabled": true,
"_normalMaterial": null,
...
...
@@ -16060,7 +16090,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
4
"__id__": 32
5
},
"_enabled": true,
"_materials": [
...
...
@@ -16092,7 +16122,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
19
"__id__": 3
20
},
"_enabled": true,
"alignMode": 2,
...
...
@@ -16119,7 +16149,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
19
"__id__": 3
20
},
"_enabled": true,
"_id": "09WU6NXc9OR4frB91TsN13"
...
...
@@ -16133,64 +16163,64 @@
},
"_children": [
{
"__id__": 33
7
"__id__": 33
8
},
{
"__id__": 3
39
"__id__": 3
40
},
{
"__id__": 34
1
"__id__": 34
2
},
{
"__id__": 34
3
"__id__": 34
4
},
{
"__id__": 34
5
"__id__": 34
6
},
{
"__id__": 34
7
"__id__": 34
8
},
{
"__id__": 3
49
"__id__": 3
50
},
{
"__id__": 35
1
"__id__": 35
2
},
{
"__id__": 35
3
"__id__": 35
4
},
{
"__id__": 35
5
"__id__": 35
6
},
{
"__id__": 35
7
"__id__": 35
8
},
{
"__id__": 3
59
"__id__": 3
60
},
{
"__id__": 36
1
"__id__": 36
2
},
{
"__id__": 36
3
"__id__": 36
4
},
{
"__id__": 36
5
"__id__": 36
6
},
{
"__id__": 36
7
"__id__": 36
8
},
{
"__id__": 3
69
"__id__": 3
70
},
{
"__id__": 37
1
"__id__": 37
2
},
{
"__id__": 37
3
"__id__": 37
4
},
{
"__id__": 37
5
"__id__": 37
6
}
],
"_active": true,
...
...
@@ -16248,13 +16278,13 @@
"_name": "gameLose",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 33
8
"__id__": 33
9
}
],
"_prefab": null,
...
...
@@ -16310,7 +16340,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
7
"__id__": 33
8
},
"_enabled": true,
"_clip": {
...
...
@@ -16329,13 +16359,13 @@
"_name": "gameStart",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 34
0
"__id__": 34
1
}
],
"_prefab": null,
...
...
@@ -16391,7 +16421,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
39
"__id__": 3
40
},
"_enabled": true,
"_clip": {
...
...
@@ -16410,13 +16440,13 @@
"_name": "gameStartTip",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 34
2
"__id__": 34
3
}
],
"_prefab": null,
...
...
@@ -16472,7 +16502,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
1
"__id__": 34
2
},
"_enabled": true,
"_clip": {
...
...
@@ -16491,13 +16521,13 @@
"_name": "gameTip1",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 34
4
"__id__": 34
5
}
],
"_prefab": null,
...
...
@@ -16553,7 +16583,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
3
"__id__": 34
4
},
"_enabled": true,
"_clip": {
...
...
@@ -16572,13 +16602,13 @@
"_name": "gameTip2",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 34
6
"__id__": 34
7
}
],
"_prefab": null,
...
...
@@ -16634,7 +16664,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
5
"__id__": 34
6
},
"_enabled": true,
"_clip": {
...
...
@@ -16653,13 +16683,13 @@
"_name": "gameWin",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 34
8
"__id__": 34
9
}
],
"_prefab": null,
...
...
@@ -16715,7 +16745,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
7
"__id__": 34
8
},
"_enabled": true,
"_clip": {
...
...
@@ -16734,13 +16764,13 @@
"_name": "catTip1",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 35
0
"__id__": 35
1
}
],
"_prefab": null,
...
...
@@ -16796,7 +16826,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
49
"__id__": 3
50
},
"_enabled": true,
"_clip": {
...
...
@@ -16815,13 +16845,13 @@
"_name": "catTip2",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 35
2
"__id__": 35
3
}
],
"_prefab": null,
...
...
@@ -16877,7 +16907,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
1
"__id__": 35
2
},
"_enabled": true,
"_clip": {
...
...
@@ -16896,13 +16926,13 @@
"_name": "catTip3",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 35
4
"__id__": 35
5
}
],
"_prefab": null,
...
...
@@ -16958,7 +16988,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
3
"__id__": 35
4
},
"_enabled": true,
"_clip": {
...
...
@@ -16977,13 +17007,13 @@
"_name": "wrong",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 35
6
"__id__": 35
7
}
],
"_prefab": null,
...
...
@@ -17039,7 +17069,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
5
"__id__": 35
6
},
"_enabled": true,
"_clip": {
...
...
@@ -17058,13 +17088,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 35
8
"__id__": 35
9
}
],
"_prefab": null,
...
...
@@ -17120,7 +17150,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 35
7
"__id__": 35
8
},
"_enabled": true,
"_clip": {
...
...
@@ -17139,13 +17169,13 @@
"_name": "right",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 36
0
"__id__": 36
1
}
],
"_prefab": null,
...
...
@@ -17201,7 +17231,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
59
"__id__": 3
60
},
"_enabled": true,
"_clip": {
...
...
@@ -17220,13 +17250,13 @@
"_name": "win",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 36
2
"__id__": 36
3
}
],
"_prefab": null,
...
...
@@ -17282,7 +17312,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
1
"__id__": 36
2
},
"_enabled": true,
"_clip": {
...
...
@@ -17301,13 +17331,13 @@
"_name": "loss",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 36
4
"__id__": 36
5
}
],
"_prefab": null,
...
...
@@ -17363,7 +17393,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
3
"__id__": 36
4
},
"_enabled": true,
"_clip": {
...
...
@@ -17382,13 +17412,13 @@
"_name": "piece",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 36
6
"__id__": 36
7
}
],
"_prefab": null,
...
...
@@ -17444,7 +17474,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
5
"__id__": 36
6
},
"_enabled": true,
"_clip": {
...
...
@@ -17463,13 +17493,13 @@
"_name": "match",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 36
8
"__id__": 36
9
}
],
"_prefab": null,
...
...
@@ -17525,7 +17555,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 36
7
"__id__": 36
8
},
"_enabled": true,
"_clip": {
...
...
@@ -17544,13 +17574,13 @@
"_name": "btn",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 37
0
"__id__": 37
1
}
],
"_prefab": null,
...
...
@@ -17606,7 +17636,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
69
"__id__": 3
70
},
"_enabled": true,
"_clip": {
...
...
@@ -17625,13 +17655,13 @@
"_name": "grow",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 37
2
"__id__": 37
3
}
],
"_prefab": null,
...
...
@@ -17687,7 +17717,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
1
"__id__": 37
2
},
"_enabled": true,
"_clip": {
...
...
@@ -17706,13 +17736,13 @@
"_name": "youturnTip",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 37
4
"__id__": 37
5
}
],
"_prefab": null,
...
...
@@ -17768,7 +17798,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
3
"__id__": 37
4
},
"_enabled": true,
"_clip": {
...
...
@@ -17787,13 +17817,13 @@
"_name": "otherturn",
"_objFlags": 0,
"_parent": {
"__id__": 33
6
"__id__": 33
7
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 37
6
"__id__": 37
7
}
],
"_prefab": null,
...
...
@@ -17849,7 +17879,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 37
5
"__id__": 37
6
},
"_enabled": true,
"_clip": {
...
...
@@ -17872,10 +17902,10 @@
},
"_children": [
{
"__id__": 37
8
"__id__": 37
9
},
{
"__id__": 38
1
"__id__": 38
2
}
],
"_active": true,
...
...
@@ -17933,11 +17963,11 @@
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 37
7
"__id__": 37
8
},
"_children": [
{
"__id__": 3
79
"__id__": 3
80
}
],
"_active": true,
...
...
@@ -17995,13 +18025,13 @@
"_name": "BRLNSDB",
"_objFlags": 0,
"_parent": {
"__id__": 37
8
"__id__": 37
9
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 38
0
"__id__": 38
1
}
],
"_prefab": null,
...
...
@@ -18057,7 +18087,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
79
"__id__": 3
80
},
"_enabled": true,
"_materials": [
...
...
@@ -18092,7 +18122,7 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 37
7
"__id__": 37
8
},
"_children": [],
"_active": true,
...
...
@@ -18207,7 +18237,7 @@
"__uuid__": "84b72720-2013-4f2b-b787-52900432f34f"
},
"cat": {
"__id__": 27
4
"__id__": 27
5
},
"pp": {
"__id__": 270
...
...
@@ -18216,10 +18246,10 @@
"__id__": 249
},
"cover": {
"__id__": 28
7
"__id__": 28
8
},
"recordCat": {
"__id__": 30
7
"__id__": 30
8
},
"cardRoot": {
"__id__": 11
...
...
assets/L5R3_GuessingGame/scene/L5R3_GuessingGame.ts
View file @
56d1898b
...
...
@@ -68,6 +68,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
_wordData
:
any
;
private
_otherWord
:
any
;
private
_isRecording
:
any
;
private
_guessWords
:
any
;
onLoad
()
{
...
...
@@ -94,13 +95,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
_reqestWord
()
{
if
(
!
this
.
_
input
Words
)
{
if
(
!
this
.
_
guess
Words
)
{
return
;
}
this
.
_sendMsg
(
MsgType
.
USER_REQ_WOED
,
{
word
:
this
.
_
input
Words
,
uuid
:
this
.
playerId
})
this
.
_sendMsg
(
MsgType
.
USER_REQ_WOED
,
{
word
:
this
.
_
guess
Words
,
uuid
:
this
.
playerId
})
}
_inputWords
(
word
)
{
this
.
_
input
Words
=
word
;
this
.
_
guess
Words
=
word
;
this
.
inputNode
.
getChildByName
(
"
lb
"
).
getComponent
(
cc
.
Label
).
string
=
word
;
}
...
...
@@ -187,6 +188,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
this
.
_catSpeaking
)
{
return
;
}
if
(
this
.
_isRecording
)
{
return
}
this
.
_catSpeaking
=
true
;
this
.
catAni
();
})
...
...
@@ -254,6 +258,25 @@ export default class SceneComponent extends MyCocosSceneComponent {
asyncPlayDragonBoneAnimation
(
this
.
cat
,
"
normal
"
,
0
);
this
.
_catSpeaking
=
false
;
})
if
(
index
==
0
)
{
asyncDelay
(
1
).
then
(()
=>
{
this
.
_keyboard
.
showTips
();
})
}
else
if
(
index
==
1
)
{
asyncDelay
(
1
).
then
(()
=>
{
cc
.
tween
(
this
.
pp
).
to
(
0.3
,
{
scale
:
1.2
}).
to
(
0.7
,
{
scale
:
1
}).
start
();
})
}
else
{
asyncDelay
(
1.5
).
then
(()
=>
{
cc
.
tween
(
this
.
pp
).
to
(
0.3
,
{
scale
:
1.2
}).
to
(
0.7
,
{
scale
:
1
}).
start
();
})
}
}
playerId
;
...
...
@@ -566,9 +589,19 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
playAudioByUrl
(
this
.
data
.
audioUrl_waiting_firstRound
,
()
=>
{
asyncPlayDragonBoneAnimation
(
this
.
cat
,
"
normal
"
,
0
)
this
.
_catSpeaking
=
false
;
let
card
=
this
.
cardRoot
.
children
[
index
];
let
cardNode
:
cc
.
Node
=
card
.
getChildByName
(
"
card
"
);
let
pos
=
this
.
myCardRoot
.
convertToNodeSpaceAR
(
cardNode
.
convertToWorldSpaceAR
(
cc
.
v2
(
0
,
0
)))
this
.
myCardRoot
.
getChildByName
(
"
card
"
).
getComponent
(
cc
.
Sprite
).
spriteFrame
=
this
.
cardList
[
index
]
this
.
myCardRoot
.
getChildByName
(
"
word
"
).
getComponent
(
cc
.
Label
).
string
=
word
;
resolve
(
""
);
let
myCard
=
this
.
myCardRoot
.
getChildByName
(
"
card
"
);
let
pos1
=
myCard
.
position
;
myCard
.
x
=
pos
.
x
;
myCard
.
y
=
pos
.
y
;
cc
.
tween
(
myCard
).
to
(
1
,
{
x
:
pos1
.
x
,
y
:
pos1
.
y
}).
call
(()
=>
{
this
.
myCardRoot
.
getChildByName
(
"
word
"
).
getComponent
(
cc
.
Label
).
string
=
word
;
resolve
(
""
);
}).
start
();
})
})
...
...
@@ -637,6 +670,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
this
.
_canChosendCard
=
false
;
this
.
playLocalAudio
(
"
btn
"
)
let
cards
=
this
.
cardRoot
.
children
;
for
(
let
i
=
0
;
i
<
this
.
cardList
.
length
;
++
i
)
{
...
...
@@ -652,8 +686,17 @@ export default class SceneComponent extends MyCocosSceneComponent {
word
:
word
,
}
)
let
cardNode
:
cc
.
Node
=
card
.
getChildByName
(
"
card
"
);
let
pos
=
this
.
myCardRoot
.
convertToNodeSpaceAR
(
cardNode
.
convertToWorldSpaceAR
(
cc
.
v2
(
0
,
0
)))
this
.
myCardRoot
.
getChildByName
(
"
card
"
).
getComponent
(
cc
.
Sprite
).
spriteFrame
=
this
.
cardList
[
index
]
this
.
myCardRoot
.
getChildByName
(
"
word
"
).
getComponent
(
cc
.
Label
).
string
=
word
;
let
myCard
=
this
.
myCardRoot
.
getChildByName
(
"
card
"
);
let
pos1
=
myCard
.
position
;
myCard
.
x
=
pos
.
x
;
myCard
.
y
=
pos
.
y
;
cc
.
tween
(
myCard
).
to
(
1
,
{
x
:
pos1
.
x
,
y
:
pos1
.
y
}).
call
(()
=>
{
this
.
myCardRoot
.
getChildByName
(
"
word
"
).
getComponent
(
cc
.
Label
).
string
=
word
;
}).
start
();
})
...
...
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