Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OPW_BoardGame_L5R4
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
OPW_BoardGame_L5R4
Commits
de1aa037
Commit
de1aa037
authored
Nov 25, 2022
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成结束界面
parent
8e7f2ef6
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
3319 additions
and
93 deletions
+3319
-93
PronunciationTestLayer.js
...4/prefab/PronunciationTestLayer/PronunciationTestLayer.js
+10
-8
OPW_BoardGame_L5R4.fire
assets/OPW_BoardGame_L5R4/scene/OPW_BoardGame_L5R4.fire
+2989
-77
OPW_BoardGame_L5R4.ts
assets/OPW_BoardGame_L5R4/scene/OPW_BoardGame_L5R4.ts
+70
-8
OPW_BoardGame_L5R4_ImgFixedSize.ts
..._BoardGame_L5R4/script/OPW_BoardGame_L5R4_ImgFixedSize.ts
+25
-0
OPW_BoardGame_L5R4_ImgFixedSize.ts.meta
...dGame_L5R4/script/OPW_BoardGame_L5R4_ImgFixedSize.ts.meta
+9
-0
finish_bg.png
assets/OPW_BoardGame_L5R4/textures/finish_bg.png
+0
-0
finish_bg.png.meta
assets/OPW_BoardGame_L5R4/textures/finish_bg.png.meta
+36
-0
finish_bg_blue_name.png
assets/OPW_BoardGame_L5R4/textures/finish_bg_blue_name.png
+0
-0
finish_bg_blue_name.png.meta
.../OPW_BoardGame_L5R4/textures/finish_bg_blue_name.png.meta
+36
-0
finish_bg_red_name.png
assets/OPW_BoardGame_L5R4/textures/finish_bg_red_name.png
+0
-0
finish_bg_red_name.png.meta
...s/OPW_BoardGame_L5R4/textures/finish_bg_red_name.png.meta
+36
-0
finish_light.png
assets/OPW_BoardGame_L5R4/textures/finish_light.png
+0
-0
finish_light.png.meta
assets/OPW_BoardGame_L5R4/textures/finish_light.png.meta
+36
-0
finish_map.png
assets/OPW_BoardGame_L5R4/textures/finish_map.png
+0
-0
finish_map.png.meta
assets/OPW_BoardGame_L5R4/textures/finish_map.png.meta
+36
-0
finish_master.png
assets/OPW_BoardGame_L5R4/textures/finish_master.png
+0
-0
finish_master.png.meta
assets/OPW_BoardGame_L5R4/textures/finish_master.png.meta
+36
-0
No files found.
assets/OPW_BoardGame_L5R4/prefab/PronunciationTestLayer/PronunciationTestLayer.js
View file @
de1aa037
...
...
@@ -72,6 +72,7 @@ cc.Class({
// }
// },
audioBeforeTest
:
""
,
testTime
:
10
,
recordWaitCount
:
0
,
},
...
...
@@ -81,8 +82,9 @@ cc.Class({
start
()
{},
init
(
audio_url
)
{
init
(
audio_url
,
testTime
)
{
this
.
audioBeforeTest
=
audio_url
;
this
.
testTime
=
testTime
;
},
showVoice
(
node
,
testLetter
)
{
...
...
@@ -120,8 +122,7 @@ cc.Class({
playAudioByUrl
(
url
,
()
=>
{
asyncPlayDragonBoneAnimation
(
cat
,
"
record
"
,
0
);
cc
.
tween
(
progressBar
)
.
delay
(
1
)
.
to
(
3
,
{
progress
:
0
})
.
to
(
this
.
testTime
,
{
progress
:
0
})
.
call
(()
=>
{})
.
start
();
...
...
@@ -273,7 +274,7 @@ cc.Class({
return
resolve
(
false
);
}
});
//结束录音
},
4
000
);
},
this
.
testTime
*
1
000
);
});
});
},
...
...
@@ -290,9 +291,10 @@ cc.Class({
cc
.
tween
(
imgLight
).
by
(
3
,
{
angle
:
360
}).
repeatForever
().
start
();
imgGood
.
active
=
true
;
imgTry
.
active
=
false
;
setTimeout
(()
=>
{
this
.
scheduleOnce
(()
=>
{
resolve
(
""
);
},
2
000
);
},
2
);
});
},
...
...
@@ -308,9 +310,9 @@ cc.Class({
cc
.
tween
(
imgLight
).
by
(
3
,
{
angle
:
360
}).
repeatForever
().
start
();
imgGood
.
active
=
false
;
imgTry
.
active
=
true
;
setTimeout
(()
=>
{
this
.
scheduleOnce
(()
=>
{
resolve
(
""
);
},
2
000
);
},
2
);
});
},
...
...
assets/OPW_BoardGame_L5R4/scene/OPW_BoardGame_L5R4.fire
View file @
de1aa037
...
...
@@ -103,18 +103,21 @@
},
{
"__id__": 309
},
{
"__id__": 369
}
],
"_active": true,
"_components": [
{
"__id__": 3
1
7
"__id__": 3
7
7
},
{
"__id__": 3
1
8
"__id__": 3
7
8
},
{
"__id__": 3
1
9
"__id__": 3
7
9
}
],
"_prefab": null,
...
...
@@ -13020,8 +13023,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
128
0,
96
0,
0,
0,
0,
0,
0,
...
...
@@ -14588,6 +14591,7 @@
},
"_enabled": true,
"audioBeforeTest": "",
"testTime": 10,
"recordWaitCount": 0,
"_id": "3fY+V+UrRMDbcbChKnthRF"
},
...
...
@@ -14720,7 +14724,7 @@
},
{
"__type__": "cc.Node",
"_name": "
res
",
"_name": "
finishLayer
",
"_objFlags": 0,
"_parent": {
"__id__": 2
...
...
@@ -14733,11 +14737,21 @@
"__id__": 313
},
{
"__id__": 314
"__id__": 315
},
{
"__id__": 320
},
{
"__id__": 344
}
],
"_active": false,
"_components": [],
"_components": [
{
"__id__": 368
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
...
...
@@ -14749,8 +14763,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width":
256
0,
"height":
192
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -14784,35 +14798,38 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
0aAzbH6R1E+6AmGRrkKa5O
"
"_id": "
1bwJHb2+tOB7oDu4Kz0Guq
"
},
{
"__type__": "cc.Node",
"_name": "
font
",
"_name": "
gray
",
"_objFlags": 0,
"_parent": {
"__id__": 309
},
"_children": [
"_children": [],
"_active": true,
"_components": [
{
"__id__": 311
},
{
"__id__": 312
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity":
255
,
"_opacity":
150
,
"_color": {
"__type__": "cc.Color",
"r":
255
,
"g":
255
,
"b":
255
,
"r":
0
,
"g":
0
,
"b":
0
,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width":
256
0,
"height":
192
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -14846,20 +14863,79 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "9bLfcYeeNKrr524vzWchiM"
"_id": "8cnljAQoVNj7gdLdcDLwBo"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 310
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "bfOd2XKWNLvaS0Ij05/n2W"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 310
},
"_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": 50000,
"_originalHeight": 50000,
"_id": "30+l2CctpGMIVyqWXGhQXD"
},
{
"__type__": "cc.Node",
"_name": "
BRLNSDB
",
"_name": "
bg
",
"_objFlags": 0,
"_parent": {
"__id__": 3
10
"__id__": 3
09
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 31
2
"__id__": 31
4
}
],
"_prefab": null,
...
...
@@ -14873,8 +14949,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
0
,
"height":
0
"width":
991
,
"height":
723
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -14892,8 +14968,8 @@
0,
0,
1,
1,
1,
1
.5
,
1
.5
,
1
]
},
...
...
@@ -14908,47 +14984,55 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
cfMLGsq0BMhJARv+ySMAxS
"
"_id": "
eew3GO/DdN/Z9NvelBHziR
"
},
{
"__type__": "cc.
Label
",
"__type__": "cc.
Sprite
",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
1
"__id__": 31
3
},
"_enabled": true,
"_materials": [],
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "c551970e-b095-45f3-9f1d-25cde8b8deb1"
"_spriteFrame": {
"__uuid__": "a41299ba-5b02-4c53-8b81-7acc6606a742"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "9bNHNPu5lC7rQYyr8ai/sY"
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "b2QWx5FVpEi7p68ShPmrbn"
},
{
"__type__": "cc.Node",
"_name": "
img
",
"_name": "
map
",
"_objFlags": 0,
"_parent": {
"__id__": 309
},
"_children": [],
"_children": [
{
"__id__": 316
},
{
"__id__": 318
}
],
"_active": true,
"_components": [],
"_prefab": null,
...
...
@@ -14974,16 +15058,16 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
45.495,
550.274,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
1.5,
1.5,
1.5
]
},
"_eulerAngles": {
...
...
@@ -14997,22 +15081,22 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
53LUHHG2pEr79fyrvazXJs
"
"_id": "
0fuRqiTxFA1Z4IV6FnUNWT
"
},
{
"__type__": "cc.Node",
"_name": "
audio
",
"_name": "
light
",
"_objFlags": 0,
"_parent": {
"__id__": 3
09
"__id__": 3
15
},
"_children": [
"_children": [],
"_active": true,
"_components": [
{
"__id__": 31
5
"__id__": 31
7
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
...
...
@@ -15024,8 +15108,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
0
,
"height":
0
"width":
413
,
"height":
413
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -15059,20 +15143,52 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "d9f+b0lmZGSJJae6zrADhp"
"_id": "e4yS5LVjRDxpRgLohcNWD2"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 316
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "3c157c72-5a82-49a0-b358-2c06fe2d405e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "50sRo72cBO9JOhbosd2l7d"
},
{
"__type__": "cc.Node",
"_name": "
btn
",
"_objFlags":
512
,
"_name": "
map
",
"_objFlags":
0
,
"_parent": {
"__id__": 31
4
"__id__": 31
5
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 31
6
"__id__": 31
9
}
],
"_prefab": null,
...
...
@@ -15086,8 +15202,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
0
,
"height":
0
"width":
334
,
"height":
225
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -15121,14 +15237,2810 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
e87DSaFCVJfb2PAUkf4/o7
"
"_id": "
cc/Z591GJE7r8k2yEPkM9Y
"
},
{
"__type__": "cc.
AudioSourc
e",
"__type__": "cc.
Sprit
e",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 315
"__id__": 318
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c6803b58-aab6-435e-ae43-74fc9501f05f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "03h9jhK+FDxpvwG0mRuDB0"
},
{
"__type__": "cc.Node",
"_name": "red",
"_objFlags": 0,
"_parent": {
"__id__": 309
},
"_children": [
{
"__id__": 321
},
{
"__id__": 324
},
{
"__id__": 328
},
{
"__id__": 338
},
{
"__id__": 342
}
],
"_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": [
228.732,
36.262,
0,
0,
0,
0,
1,
1.5,
1.5,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "c88K/MoEhBVJj3DkjaYQuC"
},
{
"__type__": "cc.Node",
"_name": "people",
"_objFlags": 0,
"_parent": {
"__id__": 320
},
"_children": [
{
"__id__": 322
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 302.64,
"height": 442
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
207.579,
-60.425,
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": "18VCyfG4dI9q4bvvigpteo"
},
{
"__type__": "cc.Node",
"_name": "db",
"_objFlags": 0,
"_parent": {
"__id__": 321
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 323
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 302.64,
"height": 442
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
-0.75,
0.75,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "besr463olGEa9JHWgJzfFb"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 322
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "jump",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": 0,
"premultipliedAlpha": false,
"_armatureKey": "bb9932df-fe93-4c6b-a47a-29b24936f727#89f9d5e6-34d9-4c88-a681-31a1d4a1ed33",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "bb9932df-fe93-4c6b-a47a-29b24936f727"
},
"_N$dragonAtlasAsset": {
"__uuid__": "89f9d5e6-34d9-4c88-a681-31a1d4a1ed33"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "f4KLv1KqhFF4Clm++xGSOl"
},
{
"__type__": "cc.Node",
"_name": "bag",
"_objFlags": 0,
"_parent": {
"__id__": 320
},
"_children": [
{
"__id__": 325
}
],
"_active": true,
"_components": [
{
"__id__": 327
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 114,
"height": 72
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-172.541,
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": "de19EtHSlH+LwMv7qR16ZM"
},
{
"__type__": "cc.Node",
"_name": "score",
"_objFlags": 0,
"_parent": {
"__id__": 324
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 326
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 17.8,
"height": 40.32
},
"_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": "f3yHKzUshA2bOt4YDH4j6c"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 325
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "0",
"_N$string": "0",
"_fontSize": 32,
"_lineHeight": 32.1,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "586y7ZvzNJLLxDhqNfpkzC"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 324
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "11fee61f-57c4-438c-bfbb-9902453c4cfd"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "51arPwC51LC7Wvg/zrlXPm"
},
{
"__type__": "cc.Node",
"_name": "header",
"_objFlags": 0,
"_parent": {
"__id__": 320
},
"_children": [
{
"__id__": 329
},
{
"__id__": 331
},
{
"__id__": 334
}
],
"_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": [
0,
8.663,
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": "52+CoiCiNOjZQNgQGWbaCC"
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 328
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 330
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 151,
"height": 151
},
"_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": "665hrU//tDf4Y19XP2JdT/"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 329
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ff3171c0-2a9f-4c67-bc8f-269f19192d27"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "76R/zfOs5M+Yi5KgRMd6GI"
},
{
"__type__": "cc.Node",
"_name": "image",
"_objFlags": 0,
"_parent": {
"__id__": 328
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 332
},
{
"__id__": 333
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 36
},
"_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": "0eZzZfjJNEAqBn4xUXaUbC"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 331
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "fe6rKGQt9CBa1kTtqcgx+E"
},
{
"__type__": "f7ff9P1j2dNTJP56zpqiDSC",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 331
},
"_enabled": true,
"fixedSize": 140,
"_id": "afRf80rgNLVKFoF3yfpkzj"
},
{
"__type__": "cc.Node",
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 328
},
"_children": [
{
"__id__": 335
}
],
"_active": false,
"_components": [
{
"__id__": 337
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 151,
"height": 151
},
"_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": "8aNVzUrzhKkqGJ1nRO50Xz"
},
{
"__type__": "cc.Node",
"_name": "color",
"_objFlags": 0,
"_parent": {
"__id__": 334
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 336
}
],
"_prefab": null,
"_opacity": 153,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 140,
"height": 140
},
"_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": "27sCrs0YpFk5+4Z9BsrvCZ"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 335
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a8Q1Zetm5JGbbrQNipXT6H"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 334
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_spriteFrame": null,
"_type": 1,
"_segments": 64,
"_N$alphaThreshold": 0,
"_N$inverted": false,
"_id": "10aUODLAVHs5Q0NOamqltA"
},
{
"__type__": "cc.Node",
"_name": "name",
"_objFlags": 0,
"_parent": {
"__id__": 320
},
"_children": [
{
"__id__": 339
}
],
"_active": true,
"_components": [
{
"__id__": 341
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 112,
"height": 25
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-84.685,
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": "57hVPV3NtGHKEOtnZad8WK"
},
{
"__type__": "cc.Node",
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 338
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 340
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 108,
"height": 22.68
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0.93,
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": "a5O/RK29pCdZTYZ52DUWHE"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 339
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "名字是几个字",
"_N$string": "名字是几个字",
"_fontSize": 18,
"_lineHeight": 18,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "9fzct8LFxJFZyJMvO7ml5W"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 338
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "fad279d6-7a6b-4292-9277-fe6b88ffc4af"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "170Io91qhL448n7r7a7e5/"
},
{
"__type__": "cc.Node",
"_name": "master",
"_objFlags": 0,
"_parent": {
"__id__": 320
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 343
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 121,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
105,
0,
0,
0,
0,
1,
1.5,
1.5,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "ee7xH9BcREF7jLbiM2+MYP"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 342
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "dca02c0c-19d6-4448-bb07-d7ee8ea14e07"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "a6r0PB1hxIt74IoZKQmOXQ"
},
{
"__type__": "cc.Node",
"_name": "blue",
"_objFlags": 0,
"_parent": {
"__id__": 309
},
"_children": [
{
"__id__": 345
},
{
"__id__": 348
},
{
"__id__": 352
},
{
"__id__": 362
},
{
"__id__": 366
}
],
"_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": [
-127.578,
36.262,
0,
0,
0,
0,
1,
1.5,
1.5,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "e49diKzkBLYIdj7/3l+S3C"
},
{
"__type__": "cc.Node",
"_name": "people",
"_objFlags": 0,
"_parent": {
"__id__": 344
},
"_children": [
{
"__id__": 346
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 302.64,
"height": 442
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-211.388,
-60.425,
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": "c1Iox+/NtLwLx+lVgNu5/l"
},
{
"__type__": "cc.Node",
"_name": "db",
"_objFlags": 0,
"_parent": {
"__id__": 345
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 347
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 296,
"height": 443
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
0.75,
0.75,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "7fLyGHCNZLhJyfa6LeuPiM"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 346
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "jump",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": 0,
"premultipliedAlpha": false,
"_armatureKey": "c1ae0cf9-e8ee-41c8-be08-351647e64596#a7507b40-d4c0-43f5-9422-d8de803c4a31",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "c1ae0cf9-e8ee-41c8-be08-351647e64596"
},
"_N$dragonAtlasAsset": {
"__uuid__": "a7507b40-d4c0-43f5-9422-d8de803c4a31"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "c4Q+0a2HVK2Y+9Ui5M1pql"
},
{
"__type__": "cc.Node",
"_name": "bag",
"_objFlags": 0,
"_parent": {
"__id__": 344
},
"_children": [
{
"__id__": 349
}
],
"_active": true,
"_components": [
{
"__id__": 351
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 114,
"height": 72
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-172.541,
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": "c8IN8UXQhBJotfgFbY8VNo"
},
{
"__type__": "cc.Node",
"_name": "score",
"_objFlags": 0,
"_parent": {
"__id__": 348
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 350
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 17.8,
"height": 40.32
},
"_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": "37uXgDudxKHZ3VL/0OLSJr"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 349
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "0",
"_N$string": "0",
"_fontSize": 32,
"_lineHeight": 32.1,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "743eShxrdK2Kpt21vY+2Nz"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 348
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "11fee61f-57c4-438c-bfbb-9902453c4cfd"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "c85lmgHNVBI7jRE+KvsNOG"
},
{
"__type__": "cc.Node",
"_name": "header",
"_objFlags": 0,
"_parent": {
"__id__": 344
},
"_children": [
{
"__id__": 353
},
{
"__id__": 355
},
{
"__id__": 358
}
],
"_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": [
0,
8.663,
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": "5bYtDgSN1BVZ86HIeaie0K"
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 352
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 354
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 151,
"height": 151
},
"_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": "89qe6h+ZtBYYVYgYqhlAkw"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 353
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "2af66018-f7ea-4696-a225-b9b81e5e37fd"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "4c0yVOJ2ZOf4W/1M1ZpBBF"
},
{
"__type__": "cc.Node",
"_name": "image",
"_objFlags": 0,
"_parent": {
"__id__": 352
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 356
},
{
"__id__": 357
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 36
},
"_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": "9bigSjkfNIyo5TO0a0T32I"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 355
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": null,
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "354U73VBpJPq0uJ80p4+xD"
},
{
"__type__": "f7ff9P1j2dNTJP56zpqiDSC",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 355
},
"_enabled": true,
"fixedSize": 140,
"_id": "dclzAgYOBMmalIkirt5QG4"
},
{
"__type__": "cc.Node",
"_name": "mask",
"_objFlags": 0,
"_parent": {
"__id__": 352
},
"_children": [
{
"__id__": 359
}
],
"_active": false,
"_components": [
{
"__id__": 361
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 151,
"height": 151
},
"_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": "41vJre/f1LzIJKRstxtfzn"
},
{
"__type__": "cc.Node",
"_name": "color",
"_objFlags": 0,
"_parent": {
"__id__": 358
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 360
}
],
"_prefab": null,
"_opacity": 153,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 140,
"height": 140
},
"_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": "2eyB/oydRPVozQKPdKu+rS"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 359
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "01ZweXCNBGi6becgzfLnQG"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 358
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_spriteFrame": null,
"_type": 1,
"_segments": 64,
"_N$alphaThreshold": 0,
"_N$inverted": false,
"_id": "6bQT3SjMBEQrbXYKQMmspi"
},
{
"__type__": "cc.Node",
"_name": "name",
"_objFlags": 0,
"_parent": {
"__id__": 344
},
"_children": [
{
"__id__": 363
}
],
"_active": true,
"_components": [
{
"__id__": 365
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 112,
"height": 25
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-84.685,
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": "e9NZdXoEZKTZYonigGnIdt"
},
{
"__type__": "cc.Node",
"_name": "label",
"_objFlags": 0,
"_parent": {
"__id__": 362
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 364
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 108,
"height": 22.68
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0.93,
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": "32dVgpn1ZG64zL+Pm+w1ax"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 363
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "名字是几个字",
"_N$string": "名字是几个字",
"_fontSize": 18,
"_lineHeight": 18,
"_enableWrapText": true,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "67suGtaFNCs4Y1bjmhxgFx"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 362
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "fad279d6-7a6b-4292-9277-fe6b88ffc4af"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "651Maaj7pDM6Aw9NqOp30d"
},
{
"__type__": "cc.Node",
"_name": "master",
"_objFlags": 0,
"_parent": {
"__id__": 344
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 367
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 121,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
105,
0,
0,
0,
0,
1,
1.5,
1.5,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "11PNX4OVtApojMdarNnQfC"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 366
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "dca02c0c-19d6-4448-bb07-d7ee8ea14e07"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "35/PJ/hMJDu6Ob5mZm8cIn"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 309
},
"_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": 0,
"_originalHeight": 0,
"_id": "59lh0kiS5NIq+vuz61QPNR"
},
{
"__type__": "cc.Node",
"_name": "res",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 370
},
{
"__id__": 373
},
{
"__id__": 374
}
],
"_active": false,
"_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": [
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": "0aAzbH6R1E+6AmGRrkKa5O"
},
{
"__type__": "cc.Node",
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 369
},
"_children": [
{
"__id__": 371
}
],
"_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": [
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": "9bLfcYeeNKrr524vzWchiM"
},
{
"__type__": "cc.Node",
"_name": "BRLNSDB",
"_objFlags": 0,
"_parent": {
"__id__": 370
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 372
}
],
"_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": [
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": "cfMLGsq0BMhJARv+ySMAxS"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 371
},
"_enabled": true,
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "c551970e-b095-45f3-9f1d-25cde8b8deb1"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "9bNHNPu5lC7rQYyr8ai/sY"
},
{
"__type__": "cc.Node",
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 369
},
"_children": [],
"_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": [
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": "53LUHHG2pEr79fyrvazXJs"
},
{
"__type__": "cc.Node",
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 369
},
"_children": [
{
"__id__": 375
}
],
"_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": [
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": "d9f+b0lmZGSJJae6zrADhp"
},
{
"__type__": "cc.Node",
"_name": "btn",
"_objFlags": 512,
"_parent": {
"__id__": 374
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 376
}
],
"_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": [
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": "e87DSaFCVJfb2PAUkf4/o7"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 375
},
"_enabled": true,
"_clip": {
...
...
assets/OPW_BoardGame_L5R4/scene/OPW_BoardGame_L5R4.ts
View file @
de1aa037
...
...
@@ -26,8 +26,9 @@ const MSG_PLAYER_TO_TREE = "msg_player_to_tree";
const
MSG_PLAYER_TO_HOME
=
"
msg_player_to_home
"
;
const
MSG_PROFIX_END
=
"
__END__
"
;
const
DEBUG
=
true
;
const
TOTAL_SCORE
=
42
;
// 总分 - 双方分数之和等于 TOTAL_SCORE
const
AI_SUCCESS_RATE
=
0.85
;
// ai评测成功率
const
TOTAL_SCORE
=
10
;
// 总分 - 双方分数之和等于 TOTAL_SCORE
const
AI_SUCCESS_RATE
=
1
;
// ai评测成功率
const
AUTO_GAME
=
true
;
// 自动游戏-调试使用
@
ccclass
export
default
class
SceneComponent
extends
MyCocosSceneComponent
{
...
...
@@ -191,8 +192,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
loadingLayer
.
setMaxPlayerNumber
(
2
);
this
.
loadingLayer
.
onLoadFinished
(()
=>
{
this
.
initSide
();
this
.
initTimer
();
this
.
timerHandle
=
this
.
initTimer
();
this
.
initPlayerInfo
();
// 自动游戏模式 - 调试使用
if
(
AUTO_GAME
)
{
this
.
turntable
.
stopBlink
();
const
nextGem
=
this
.
getNextQuestionIndex
();
this
.
runEvent
(
MSG_ROLLING
,
{
nextGem
:
nextGem
});
}
});
}
...
...
@@ -212,7 +220,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
initPronunciationTestLayer
()
{
const
loadingLayerBase
=
cc
.
find
(
"
Canvas/PronunciationTestLayer
"
);
this
.
pronunciationTestLayer
=
loadingLayerBase
.
getComponent
(
"
PronunciationTestLayer
"
);
this
.
pronunciationTestLayer
.
init
(
"
http://staging-teach.cdn.ireadabc.com/31952573236dd316a8ee1672d1614a1c.mp3
"
)
this
.
pronunciationTestLayer
.
init
(
"
http://staging-teach.cdn.ireadabc.com/31952573236dd316a8ee1672d1614a1c.mp3
"
,
DEBUG
?
1
:
10
)
}
redPlayerNode
=
null
;
...
...
@@ -293,7 +301,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 小人回家
playerToHome
(
playerNode
,
homeNode
,
gemNode
)
{
const
pos
=
localPosTolocalPos
(
playerNode
,
homeNode
);
playerNode
.
scaleX
=
1
;
// 右看
let
playerDB
=
null
;
if
(
playerNode
.
parent
.
name
.
indexOf
(
'
red
'
)
!=
-
1
)
{
...
...
@@ -301,11 +308,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
else
{
playerDB
=
this
.
bluePlayerDB
;
}
asyncPlayDragonBoneAnimation
(
playerDB
,
'
normal
'
,
-
1
);
asyncPlayDragonBoneAnimation
(
playerDB
,
'
jump
'
,
-
1
);
return
new
Promise
((
resovle
,
reject
)
=>
{
cc
.
tween
(
playerNode
).
to
(
0.5
,
{
x
:
pos
.
x
,
y
:
pos
.
y
}).
call
(()
=>
{
cc
.
tween
(
playerNode
).
to
(
0.5
,
{
x
:
205
,
y
:
23
}).
call
(()
=>
{
gemNode
.
__node_text
.
active
=
true
;
asyncPlayDragonBoneAnimation
(
playerDB
,
'
normal
'
,
-
1
);
resovle
(
null
);
}).
start
();
})
...
...
@@ -431,6 +439,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
timerCount
=
300
;
timeLabel
=
null
;
timerHandle
=
null
;
// 初始化倒计时
initTimer
()
{
const
timerHandle
=
()
=>
{
...
...
@@ -448,20 +457,38 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
this
.
timeLabel
=
cc
.
find
(
"
Canvas/timer/count
"
).
getComponent
(
cc
.
Label
);
this
.
schedule
(
timerHandle
,
1
);
return
timerHandle
;
}
// 停止计时器
stopTimer
()
{
if
(
this
.
timerHandle
)
{
this
.
unschedule
(
this
.
timerHandle
);
}
}
scoreRed
=
0
;
scoreBlue
=
0
;
scoreRedComponent
=
null
;
scoreBlueComponent
=
null
;
scoreRedFinishComponent
=
null
;
scoreBlueFinishComponent
=
null
;
masterRedNode
=
null
;
masterBlueNode
=
null
;
// 初始化分数
initScore
()
{
this
.
scoreRedComponent
=
cc
.
find
(
"
Canvas/playerLand/red/bag/score
"
).
getComponent
(
cc
.
Label
);
this
.
scoreBlueComponent
=
cc
.
find
(
"
Canvas/playerLand/blue/bag/score
"
).
getComponent
(
cc
.
Label
);
this
.
scoreRedFinishComponent
=
cc
.
find
(
"
Canvas/finishLayer/red/bag/score
"
).
getComponent
(
cc
.
Label
);
this
.
scoreBlueFinishComponent
=
cc
.
find
(
"
Canvas/finishLayer/blue/bag/score
"
).
getComponent
(
cc
.
Label
);
this
.
masterRedNode
=
cc
.
find
(
"
Canvas/finishLayer/red/master
"
);
this
.
masterBlueNode
=
cc
.
find
(
"
Canvas/finishLayer/blue/master
"
);
this
.
scoreRed
=
0
;
this
.
scoreBlue
=
0
;
this
.
scoreRedComponent
.
string
=
this
.
scoreRed
;
this
.
scoreBlueComponent
.
string
=
this
.
scoreBlue
;
this
.
scoreRedFinishComponent
.
string
=
this
.
scoreRed
;
this
.
scoreBlueFinishComponent
.
string
=
this
.
scoreBlue
;
}
// 加分
...
...
@@ -469,9 +496,22 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
side
==
RED
)
{
this
.
scoreRed
+=
score
;
this
.
scoreRedComponent
.
string
=
this
.
scoreRed
;
this
.
scoreRedFinishComponent
.
string
=
this
.
scoreRed
;
}
else
{
this
.
scoreBlue
+=
score
;
this
.
scoreBlueComponent
.
string
=
this
.
scoreBlue
;
this
.
scoreBlueFinishComponent
.
string
=
this
.
scoreBlue
;
}
if
(
this
.
scoreRed
>
this
.
scoreBlue
)
{
this
.
masterRedNode
.
active
=
true
;
this
.
masterBlueNode
.
active
=
false
;
}
else
if
(
this
.
scoreRed
<
this
.
scoreBlue
)
{
this
.
masterRedNode
.
active
=
false
;
this
.
masterBlueNode
.
active
=
true
;
}
else
{
this
.
masterRedNode
.
active
=
false
;
this
.
masterBlueNode
.
active
=
false
;
}
}
...
...
@@ -744,6 +784,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 结束
this
.
registerEvent
(
MSG_FINISH
,
(
param
,
next
)
=>
{
console
.
log
(
"
游戏结束
"
)
this
.
stopTimer
();
this
.
redPlayerHomeNode
.
active
=
false
;
this
.
bluePlayerHomeNode
.
active
=
false
;
cc
.
find
(
"
Canvas/finishLayer
"
).
active
=
true
;
})
}
...
...
@@ -848,8 +892,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
initPlayerInfo
()
{
const
red
=
cc
.
find
(
"
Canvas/playerLand/red/header/image
"
);
const
blue
=
cc
.
find
(
"
Canvas/playerLand/blue/header/image
"
);
const
redFinish
=
cc
.
find
(
"
Canvas/finishLayer/red/header/image
"
);
const
blueFinish
=
cc
.
find
(
"
Canvas/finishLayer/blue/header/image
"
);
const
redName
=
cc
.
find
(
"
Canvas/playerLand/red/name/label
"
).
getComponent
(
cc
.
Label
);
const
blueName
=
cc
.
find
(
"
Canvas/playerLand/blue/name/label
"
).
getComponent
(
cc
.
Label
);
const
redNameFinish
=
cc
.
find
(
"
Canvas/finishLayer/red/name/label
"
).
getComponent
(
cc
.
Label
);
const
blueNameFinish
=
cc
.
find
(
"
Canvas/finishLayer/blue/name/label
"
).
getComponent
(
cc
.
Label
);
this
.
allPlayerList
.
forEach
((
player
)
=>
{
if
(
player
.
uuid
.
indexOf
(
"
ai_
"
)
!=
-
1
)
{
this
.
withAiPlayer
=
true
;
...
...
@@ -860,23 +908,37 @@ export default class SceneComponent extends MyCocosSceneComponent {
red
.
width
=
140
;
red
.
height
=
140
;
redName
.
string
=
player
.
name
;
redFinish
.
getComponent
(
cc
.
Sprite
).
spriteFrame
=
sf
;
redFinish
.
width
=
140
;
redFinish
.
height
=
140
;
redNameFinish
.
string
=
player
.
name
;
}
else
{
blue
.
getComponent
(
cc
.
Sprite
).
spriteFrame
=
sf
;
blue
.
width
=
140
;
blue
.
height
=
140
;
blueName
.
string
=
player
.
name
;
blueFinish
.
getComponent
(
cc
.
Sprite
).
spriteFrame
=
sf
;
blueFinish
.
width
=
140
;
blueFinish
.
height
=
140
;
blueNameFinish
.
string
=
player
.
name
;
}
});
});
}
// 处理换边
handleSwitchSide
()
{
async
handleSwitchSide
()
{
if
(
this
.
side
==
this
.
currentGameSide
)
{
this
.
turntable
.
enable
();
this
.
turntable
.
blink
();
// 当前玩家上树
this
.
runEvent
(
MSG_PLAYER_TO_TREE
,{});
if
(
AUTO_GAME
)
{
await
asyncDelay
(
1
);
this
.
turntable
.
stopBlink
();
const
nextGem
=
this
.
getNextQuestionIndex
();
this
.
runEvent
(
MSG_ROLLING
,
{
nextGem
:
nextGem
});
}
}
else
{
this
.
turntable
.
disable
();
this
.
turntable
.
stopBlink
();
...
...
assets/OPW_BoardGame_L5R4/script/OPW_BoardGame_L5R4_ImgFixedSize.ts
0 → 100644
View file @
de1aa037
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
/**
* 图片限制尺寸
* @author chenkai 2021.6.24
*/
@
ccclass
export
default
class
OPW_BoardGame_L5R4_ImgFixedSize
extends
cc
.
Component
{
@
property
({
type
:
cc
.
Integer
,
tooltip
:
"
固定尺寸
"
})
fixedSize
:
number
=
0
;
onLoad
()
{
this
.
node
.
on
(
cc
.
Node
.
EventType
.
SIZE_CHANGED
,
this
.
onSizeChanged
,
this
);
this
.
onSizeChanged
();
}
/**当尺寸变化时,重置node节点大小 */
onSizeChanged
()
{
var
width
=
this
.
node
.
width
;
var
height
=
this
.
node
.
height
;
var
max
=
Math
.
max
(
width
,
height
);
this
.
node
.
scale
=
this
.
fixedSize
/
max
;
}
}
\ No newline at end of file
assets/OPW_BoardGame_L5R4/script/OPW_BoardGame_L5R4_ImgFixedSize.ts.meta
0 → 100644
View file @
de1aa037
{
"ver": "1.0.8",
"uuid": "f7ff93f5-8f67-4d4c-93f9-eb3a6a883482",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
assets/OPW_BoardGame_L5R4/textures/finish_bg.png
0 → 100644
View file @
de1aa037
308 KB
assets/OPW_BoardGame_L5R4/textures/finish_bg.png.meta
0 → 100644
View file @
de1aa037
{
"ver": "2.3.5",
"uuid": "2bfe8755-b225-4ba0-a7c2-b82807f7025a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 999,
"height": 805,
"platformSettings": {},
"subMetas": {
"finish_bg": {
"ver": "1.0.4",
"uuid": "a41299ba-5b02-4c53-8b81-7acc6606a742",
"rawTextureUuid": "2bfe8755-b225-4ba0-a7c2-b82807f7025a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 4,
"offsetY": -41,
"trimX": 8,
"trimY": 82,
"width": 991,
"height": 723,
"rawWidth": 999,
"rawHeight": 805,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/OPW_BoardGame_L5R4/textures/finish_bg_blue_name.png
0 → 100644
View file @
de1aa037
629 Bytes
assets/OPW_BoardGame_L5R4/textures/finish_bg_blue_name.png.meta
0 → 100644
View file @
de1aa037
{
"ver": "2.3.5",
"uuid": "8df078d3-c828-4b74-85c3-a2732352056a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 112,
"height": 25,
"platformSettings": {},
"subMetas": {
"finish_bg_blue_name": {
"ver": "1.0.4",
"uuid": "9a19a478-8483-4967-a7fa-e5d79a9552d2",
"rawTextureUuid": "8df078d3-c828-4b74-85c3-a2732352056a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 112,
"height": 25,
"rawWidth": 112,
"rawHeight": 25,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/OPW_BoardGame_L5R4/textures/finish_bg_red_name.png
0 → 100644
View file @
de1aa037
743 Bytes
assets/OPW_BoardGame_L5R4/textures/finish_bg_red_name.png.meta
0 → 100644
View file @
de1aa037
{
"ver": "2.3.5",
"uuid": "91cffc52-82d0-4961-bdd4-fdd60804ebb2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 112,
"height": 25,
"platformSettings": {},
"subMetas": {
"finish_bg_red_name": {
"ver": "1.0.4",
"uuid": "fad279d6-7a6b-4292-9277-fe6b88ffc4af",
"rawTextureUuid": "91cffc52-82d0-4961-bdd4-fdd60804ebb2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 112,
"height": 25,
"rawWidth": 112,
"rawHeight": 25,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/OPW_BoardGame_L5R4/textures/finish_light.png
0 → 100644
View file @
de1aa037
141 KB
assets/OPW_BoardGame_L5R4/textures/finish_light.png.meta
0 → 100644
View file @
de1aa037
{
"ver": "2.3.5",
"uuid": "b15b9459-0eee-4d72-952e-6463cb6fb8cf",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 413,
"height": 413,
"platformSettings": {},
"subMetas": {
"finish_light": {
"ver": "1.0.4",
"uuid": "3c157c72-5a82-49a0-b358-2c06fe2d405e",
"rawTextureUuid": "b15b9459-0eee-4d72-952e-6463cb6fb8cf",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 413,
"height": 413,
"rawWidth": 413,
"rawHeight": 413,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/OPW_BoardGame_L5R4/textures/finish_map.png
0 → 100644
View file @
de1aa037
77.5 KB
assets/OPW_BoardGame_L5R4/textures/finish_map.png.meta
0 → 100644
View file @
de1aa037
{
"ver": "2.3.5",
"uuid": "ba12af45-2473-4cad-beb3-a3476596435f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 334,
"height": 225,
"platformSettings": {},
"subMetas": {
"finish_map": {
"ver": "1.0.4",
"uuid": "c6803b58-aab6-435e-ae43-74fc9501f05f",
"rawTextureUuid": "ba12af45-2473-4cad-beb3-a3476596435f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 334,
"height": 225,
"rawWidth": 334,
"rawHeight": 225,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/OPW_BoardGame_L5R4/textures/finish_master.png
0 → 100644
View file @
de1aa037
12.6 KB
assets/OPW_BoardGame_L5R4/textures/finish_master.png.meta
0 → 100644
View file @
de1aa037
{
"ver": "2.3.5",
"uuid": "391c931c-bc52-4632-90b1-d206a82c1132",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 121,
"height": 60,
"platformSettings": {},
"subMetas": {
"finish_master": {
"ver": "1.0.4",
"uuid": "dca02c0c-19d6-4448-bb07-d7ee8ea14e07",
"rawTextureUuid": "391c931c-bc52-4632-90b1-d206a82c1132",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 121,
"height": 60,
"rawWidth": 121,
"rawHeight": 60,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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