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
9beace3b
Commit
9beace3b
authored
Jul 27, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add. v.1.0
parent
4520561b
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
4371 additions
and
857 deletions
+4371
-857
endBg.prefab
assets/boardgame_yyh/prefab/endBg.prefab
+747
-0
endBg.prefab.meta
assets/boardgame_yyh/prefab/endBg.prefab.meta
+8
-0
boardCardItem.ts
assets/boardgame_yyh/scene/boardCardItem.ts
+2
-2
boardgame_yyh.fire
assets/boardgame_yyh/scene/boardgame_yyh.fire
+3060
-668
boardgame_yyh.ts
assets/boardgame_yyh/scene/boardgame_yyh.ts
+213
-156
BoardGame2_PlayerOffLineLayer.js
assets/boardgame_yyh/script/BoardGame2_PlayerOffLineLayer.js
+68
-0
BoardGame2_PlayerOffLineLayer.js.meta
...oardgame_yyh/script/BoardGame2_PlayerOffLineLayer.js.meta
+9
-0
Server.ts
assets/boardgame_yyh/script/Server.ts
+24
-7
defaultData.ts
assets/boardgame_yyh/script/defaultData.ts
+24
-24
BtnExit.png
assets/boardgame_yyh/textures/BtnExit.png
+0
-0
BtnExit.png.meta
assets/boardgame_yyh/textures/BtnExit.png.meta
+36
-0
BtnFrame.png
assets/boardgame_yyh/textures/BtnFrame.png
+0
-0
BtnFrame.png.meta
assets/boardgame_yyh/textures/BtnFrame.png.meta
+36
-0
BtnPlayAgain.png
assets/boardgame_yyh/textures/BtnPlayAgain.png
+0
-0
BtnPlayAgain.png.meta
assets/boardgame_yyh/textures/BtnPlayAgain.png.meta
+36
-0
endbg.png
assets/boardgame_yyh/textures/endbg.png
+0
-0
endbg.png.meta
assets/boardgame_yyh/textures/endbg.png.meta
+36
-0
labelLoss.png
assets/boardgame_yyh/textures/labelLoss.png
+0
-0
labelLoss.png.meta
assets/boardgame_yyh/textures/labelLoss.png.meta
+36
-0
labelWin.png
assets/boardgame_yyh/textures/labelWin.png
+0
-0
labelWin.png.meta
assets/boardgame_yyh/textures/labelWin.png.meta
+36
-0
No files found.
assets/boardgame_yyh/prefab/endBg.prefab
0 → 100644
View file @
9beace3b
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "endBg",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 6
}
],
"_active": true,
"_components": [
{
"__id__": 18
},
{
"__id__": 19
}
],
"_prefab": {
"__id__": 20
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2560,
"height": 1920
},
"_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": ""
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 4
}
],
"_prefab": {
"__id__": 5
},
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2560,
"height": 1920
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_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": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"alignMode": 2,
"_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": 100,
"_originalHeight": 100,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "3640d4f7-1ea8-468f-a18b-26ab9bd18276"
},
"fileId": "f4mP4JexZBfJzuP51NycYQ",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "labelBg",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 7
},
{
"__id__": 11
}
],
"_active": true,
"_components": [
{
"__id__": 15
},
{
"__id__": 16
}
],
"_prefab": {
"__id__": 17
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2176,
"height": 485
},
"_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": ""
},
{
"__type__": "cc.Node",
"_name": "labelLoss",
"_objFlags": 0,
"_parent": {
"__id__": 6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
},
{
"__id__": 9
}
],
"_prefab": {
"__id__": 10
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1064,
"height": 451
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d188142c-57dc-4634-8de7-8e487f6ec2bc"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 18,
"_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": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "3640d4f7-1ea8-468f-a18b-26ab9bd18276"
},
"fileId": "99dWGlFnNApqBsg5+dX+Yk",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "labelWin",
"_objFlags": 0,
"_parent": {
"__id__": 6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
},
{
"__id__": 13
}
],
"_prefab": {
"__id__": 14
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1070,
"height": 451
},
"_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": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a6b2490f-93b2-4033-9bab-2d21030a8733"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 18,
"_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": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "3640d4f7-1ea8-468f-a18b-26ab9bd18276"
},
"fileId": "63LdfM6JVNJJiG6utqFgZF",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "bfd75cec-a666-460c-b3a2-28b3e782be4c"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 6
},
"_enabled": true,
"alignMode": 2,
"_target": null,
"_alignFlags": 18,
"_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": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "3640d4f7-1ea8-468f-a18b-26ab9bd18276"
},
"fileId": "9etBe2HD1Muqc6GwSELPgV",
"sync": false
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"alignMode": 2,
"_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": ""
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "3640d4f7-1ea8-468f-a18b-26ab9bd18276"
},
"fileId": "",
"sync": false
}
]
\ No newline at end of file
assets/boardgame_yyh/prefab/endBg.prefab.meta
0 → 100644
View file @
9beace3b
{
"ver": "1.2.9",
"uuid": "3640d4f7-1ea8-468f-a18b-26ab9bd18276",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
assets/boardgame_yyh/scene/boardCardItem.ts
View file @
9beace3b
...
@@ -16,10 +16,10 @@ export default class BoardCardItem extends cc.Component {
...
@@ -16,10 +16,10 @@ export default class BoardCardItem extends cc.Component {
_word
:
string
;
_word
:
string
;
letter
:
string
=
''
;
letter
:
string
=
''
;
set
cardData
(
data
:
{
id
:
number
,
r
j
umpId
:
number
,
wJumpId
?:
number
,
url
:
string
,
word
:
"
string
"
})
{
set
cardData
(
data
:
{
id
:
number
,
r
J
umpId
:
number
,
wJumpId
?:
number
,
url
:
string
,
word
:
"
string
"
})
{
this
.
_cardId
=
data
.
id
;
this
.
_cardId
=
data
.
id
;
this
.
_rjumpId
=
data
.
r
j
umpId
;
this
.
_rjumpId
=
data
.
r
J
umpId
;
this
.
_wjumpId
=
data
.
wJumpId
;
this
.
_wjumpId
=
data
.
wJumpId
;
this
.
_cardUrl
=
data
.
url
;
this
.
_cardUrl
=
data
.
url
;
this
.
_word
=
data
.
word
;
this
.
_word
=
data
.
word
;
...
...
assets/boardgame_yyh/scene/boardgame_yyh.fire
View file @
9beace3b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
assets/boardgame_yyh/scene/boardgame_yyh.ts
View file @
9beace3b
...
@@ -13,7 +13,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -13,7 +13,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
loadingLayerPrefab
=
null
;
loadingLayerPrefab
=
null
;
@
property
(
cc
.
Node
)
@
property
(
cc
.
Node
)
boardBtn
=
null
boardBtn
=
null
@
property
(
cc
.
Node
)
cat
=
null
@
property
(
cc
.
Node
)
@
property
(
cc
.
Node
)
cover
=
null
cover
=
null
...
@@ -30,6 +31,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -30,6 +31,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
private
_myLastPos
:
cc
.
Vec2
;
private
_myLastPos
:
cc
.
Vec2
;
private
_otherLastPos
:
cc
.
Vec2
;
private
_otherLastPos
:
cc
.
Vec2
;
private
_loadingDone
:
boolean
=
false
;
private
_loadingDone
:
boolean
=
false
;
private
_redOriginPos
:
any
;
private
_blueOriginPos
:
any
;
addPreloadImage
()
{
addPreloadImage
()
{
...
@@ -77,15 +80,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -77,15 +80,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
do
{
do
{
this
.
playerId
=
await
this
.
networkHelper
.
init
(
"
op_16_2
"
,
2
);
this
.
playerId
=
await
this
.
networkHelper
.
init
(
"
op_16_2
"
,
2
);
if
(
this
.
playerId
===
null
)
{
if
(
this
.
playerId
===
null
)
{
console
.
log
(
"
onDestroy
"
);
this
.
log
(
"
onDestroy
"
);
this
.
networkHelper
.
onDestroy
();
this
.
networkHelper
.
onDestroy
();
}
}
console
.
log
(
"
this.playerId =
"
+
this
.
playerId
);
this
.
log
(
"
this.playerId =
"
+
this
.
playerId
);
}
while
(
this
.
playerId
===
null
);
}
while
(
this
.
playerId
===
null
);
const
room
=
this
.
networkHelper
.
room
;
const
room
=
this
.
networkHelper
.
room
;
if
(
this
.
playerId
==
room
.
roomInfo
.
owner
)
{
if
(
this
.
playerId
==
room
.
roomInfo
.
owner
)
{
console
.
log
(
"
房主
"
);
this
.
log
(
"
房主
"
);
this
.
isRoomOwner
=
true
;
this
.
isRoomOwner
=
true
;
this
.
server
=
new
GameServer
(
2
,
this
.
networkHelper
);
this
.
server
=
new
GameServer
(
2
,
this
.
networkHelper
);
this
.
server
.
jumpList
=
this
.
getJumpList
();
this
.
server
.
jumpList
=
this
.
getJumpList
();
...
@@ -130,76 +133,76 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -130,76 +133,76 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
cardDatas
=
[
let
cardDatas
=
[
{
{
id
:
1
,
rJumpId
:
2
,
wJumpId
:
null
,
word
:
"
bat
"
,
url
:
""
,
id
:
0
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
bat
"
,
url
:
""
,
},
},
{
{
id
:
2
,
rJumpId
:
3
,
wJumpId
:
null
,
word
:
"
man
"
,
url
:
""
,
id
:
1
,
rJumpId
:
5
,
wJumpId
:
null
,
word
:
"
man
"
,
url
:
""
,
},
},
{
{
id
:
3
,
rJumpId
:
4
,
wJumpId
:
null
,
word
:
"
pad
"
,
url
:
""
,
id
:
2
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
pad
"
,
url
:
""
,
},
},
{
{
id
:
4
,
rJumpId
:
5
,
wJumpId
:
null
,
word
:
"
dam
"
,
url
:
""
,
id
:
3
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
dam
"
,
url
:
""
,
},
},
{
{
id
:
5
,
rJumpId
:
6
,
wJumpId
:
null
,
word
:
"
map
"
,
url
:
""
,
id
:
4
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
map
"
,
url
:
""
,
},
},
{
{
id
:
6
,
rJumpId
:
7
,
wJumpId
:
null
,
word
:
"
ant
"
,
url
:
""
,
id
:
5
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
ant
"
,
url
:
""
,
},
},
{
{
id
:
7
,
rJumpId
:
8
,
wJumpId
:
null
,
word
:
"
can
"
,
url
:
""
,
id
:
6
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
can
"
,
url
:
""
,
},
},
{
{
id
:
8
,
rJumpId
:
9
,
wJumpId
:
null
,
word
:
"
cam
"
,
url
:
""
,
id
:
7
,
rJumpId
:
12
,
wJumpId
:
null
,
word
:
"
cam
"
,
url
:
""
,
},
},
{
{
id
:
9
,
rJumpId
:
10
,
wJumpId
:
null
,
word
:
"
mat
"
,
url
:
""
,
id
:
8
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
mat
"
,
url
:
""
,
},
},
{
{
id
:
10
,
rJumpId
:
11
,
wJumpId
:
null
,
word
:
"
cat
"
,
url
:
""
,
id
:
9
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
cat
"
,
url
:
""
,
},
},
{
{
id
:
1
1
,
rJumpId
:
12
,
wJumpId
:
null
,
word
:
"
fan
"
,
url
:
""
,
id
:
1
0
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
fan
"
,
url
:
""
,
},
},
{
{
id
:
1
2
,
rJumpId
:
13
,
wJumpId
:
null
,
word
:
"
tap
"
,
url
:
""
,
id
:
1
1
,
rJumpId
:
20
,
wJumpId
:
null
,
word
:
"
tap
"
,
url
:
""
,
},
},
{
{
id
:
1
3
,
rJumpId
:
14
,
wJumpId
:
null
,
word
:
"
cap
"
,
url
:
""
,
id
:
1
2
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
cap
"
,
url
:
""
,
},
},
{
{
id
:
1
4
,
rJumpId
:
15
,
wJumpId
:
null
,
word
:
"
bag
"
,
url
:
""
,
id
:
1
3
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
bag
"
,
url
:
""
,
},
},
{
{
id
:
1
5
,
rJumpId
:
16
,
wJumpId
:
null
,
word
:
"
yam
"
,
url
:
""
,
id
:
1
4
,
rJumpId
:
18
,
wJumpId
:
null
,
word
:
"
yam
"
,
url
:
""
,
},
},
{
{
id
:
1
6
,
rJumpId
:
17
,
wJumpId
:
null
,
word
:
"
yak
"
,
url
:
""
,
id
:
1
5
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
yak
"
,
url
:
""
,
},
},
{
{
id
:
1
7
,
rJumpId
:
18
,
wJumpId
:
null
,
word
:
"
rat
"
,
url
:
""
,
id
:
1
6
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
rat
"
,
url
:
""
,
},
},
{
{
id
:
1
8
,
rJumpId
:
19
,
wJumpId
:
null
,
word
:
"
rag
"
,
url
:
""
,
id
:
1
7
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
rag
"
,
url
:
""
,
},
},
{
{
id
:
1
9
,
rJumpId
:
20
,
wJumpId
:
null
,
word
:
"
pan
"
,
url
:
""
,
id
:
1
8
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
pan
"
,
url
:
""
,
},
},
{
{
id
:
20
,
rJumpId
:
21
,
wJumpId
:
null
,
word
:
"
dad
"
,
url
:
""
,
id
:
19
,
rJumpId
:
23
,
wJumpId
:
null
,
word
:
"
dad
"
,
url
:
""
,
},
},
{
{
id
:
2
1
,
rJumpId
:
22
,
wJumpId
:
null
,
word
:
"
jam
"
,
url
:
""
,
id
:
2
0
,
rJumpId
:
22
,
wJumpId
:
null
,
word
:
"
jam
"
,
url
:
""
,
},
},
{
{
id
:
2
2
,
rJumpId
:
23
,
wJumpId
:
null
,
word
:
"
ax
"
,
url
:
""
,
id
:
2
1
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
ax
"
,
url
:
""
,
},
},
{
{
id
:
2
3
,
rJumpId
:
24
,
wJumpId
:
null
,
word
:
"
hat
"
,
url
:
""
,
id
:
2
2
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
hat
"
,
url
:
""
,
},
},
{
{
id
:
2
4
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
map
"
,
url
:
""
,
id
:
2
3
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
map
"
,
url
:
""
,
},
},
]
]
...
@@ -210,6 +213,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -210,6 +213,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
com
=
this
.
_cardList
[
i
].
addComponent
(
BoardCardItem
);
let
com
=
this
.
_cardList
[
i
].
addComponent
(
BoardCardItem
);
com
.
cardData
=
data
;
com
.
cardData
=
data
;
}
}
}
}
initView
()
{
initView
()
{
this
.
initBg
();
this
.
initBg
();
...
@@ -233,6 +238,88 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -233,6 +238,88 @@ export default class SceneComponent extends MyCocosSceneComponent {
initBg
()
{
initBg
()
{
const
bgNode
=
cc
.
find
(
'
Canvas/bg
'
);
const
bgNode
=
cc
.
find
(
'
Canvas/bg
'
);
bgNode
.
scale
=
this
.
_mapScaleMax
;
bgNode
.
scale
=
this
.
_mapScaleMax
;
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
addEventListener
(
dragonBones
.
EventObject
.
COMPLETE
,
()
=>
{
console
.
log
(
"
ani complite
"
);
this
.
catAni
();
});
this
.
cat
.
getChildByName
(
"
btn
"
).
on
(
"
click
"
,
()
=>
{
this
.
catAni
();
})
}
catAni
()
{
let
state
=
this
.
_status
.
state
if
(
!
this
.
isMySide
)
{
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
normal
"
,
0
);
return
}
if
(
state
==
-
1
)
{
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
normal
"
,
0
);
}
else
if
(
state
==
0
)
{
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
begin
"
,
0
);
}
else
if
(
state
==
1
)
{
}
else
if
(
state
==
2
)
{
}
}
async
updateStatus
(
status
=
null
)
{
if
(
!
this
.
_loadingDone
)
return
;
let
state
=
this
.
_status
.
state
;
switch
(
state
)
{
case
-
1
:
break
;
case
0
:
if
(
this
.
isMySide
)
{
this
.
normaltheDice
();
await
this
.
showYourTurn
();
this
.
blinkTheDice
();
}
else
{
this
.
greyDice
();
}
this
.
rollPiece
();
break
;
case
1
:
if
(
this
.
isMySide
)
{
}
else
{
this
.
greyDice
();
}
this
.
stopRollPiece
();
break
;
case
2
:
if
(
this
.
isMySide
)
{
}
else
{
this
.
greyDice
();
}
break
;
}
const
blueFrame
=
cc
.
find
(
"
Canvas/road/blueHead/icon
"
);
const
redFrame
=
cc
.
find
(
"
Canvas/road/redHead/icon
"
);
let
blinkFrame
:
cc
.
Node
,
stopBlinkFrame
:
cc
.
Node
;
if
(
this
.
_status
.
current
==
"
Red
"
)
{
blinkFrame
=
redFrame
;
stopBlinkFrame
=
blueFrame
;
}
else
{
blinkFrame
=
blueFrame
;
stopBlinkFrame
=
redFrame
;
}
blinkFrame
.
getComponent
(
cc
.
Button
).
interactable
=
true
;
stopBlinkFrame
.
getComponent
(
cc
.
Button
).
interactable
=
false
;
}
}
loadingLayer
;
loadingLayer
;
...
@@ -290,6 +377,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -290,6 +377,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
!
this
.
isMySide
||
this
.
_status
.
state
!=
0
)
{
if
(
!
this
.
isMySide
||
this
.
_status
.
state
!=
0
)
{
return
;
return
;
}
}
this
.
playLocalAudio
(
"
btn
"
);
this
.
networkHelper
.
sendFrame
({
this
.
networkHelper
.
sendFrame
({
type
:
"
roll
"
,
type
:
"
roll
"
,
uuid
:
this
.
myData
.
uuid
,
uuid
:
this
.
myData
.
uuid
,
...
@@ -319,6 +407,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -319,6 +407,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
.
start
();
.
start
();
this
.
playLocalAudio
(
"
grow
"
);
this
.
_cardList
.
forEach
((
child
:
cc
.
Node
,
idx
,
list
)
=>
{
this
.
_cardList
.
forEach
((
child
:
cc
.
Node
,
idx
,
list
)
=>
{
cc
.
tween
(
child
)
cc
.
tween
(
child
)
.
set
({
scale
:
1
})
.
set
({
scale
:
1
})
...
@@ -341,34 +430,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -341,34 +430,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
const
startIdx
=
this
.
_status
[
this
.
_status
.
current
];
const
startIdx
=
this
.
_status
[
this
.
_status
.
current
];
}
}
showStars
(
node
)
{
cc
.
tween
(
node
)
.
delay
(
0.07
)
.
call
(()
=>
{
const
light
=
cc
.
instantiate
(
cc
.
find
(
"
nodes/light
"
));
light
.
parent
=
node
.
parent
;
cc
.
tween
(
light
)
.
set
({
x
:
node
.
x
+
RandomInt
(
200
)
-
100
,
y
:
node
.
y
+
50
,
scale
:
0
,
})
.
by
(
1
,
{
y
:
200
+
RandomInt
(
200
)
-
100
,
scale
:
0.7
+
0.3
*
Math
.
random
(),
},
{
easing
:
"
cubicOut
"
}
)
.
removeSelf
()
.
start
();
})
.
union
()
.
repeatForever
()
.
start
();
}
async
peaceJumpAndSpeak
()
{
async
peaceJumpAndSpeak
()
{
let
node
=
cc
.
find
(
`Canvas/road/root/piece
${
this
.
_status
.
current
}
`
);
let
node
=
cc
.
find
(
`Canvas/road/root/piece
${
this
.
_status
.
current
}
`
);
let
nowIdx
=
this
.
_status
[
this
.
_status
.
current
];
let
nowIdx
=
this
.
_status
[
this
.
_status
.
current
];
...
@@ -409,7 +470,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -409,7 +470,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
!
cc
.
sys
.
isBrowser
&&
window
[
"
courseware
"
]?.
startTest
)
{
if
(
!
cc
.
sys
.
isBrowser
&&
window
[
"
courseware
"
]?.
startTest
)
{
console
.
log
(
"
模拟
录音开始 单词:
"
+
word
);
this
.
log
(
"
录音开始 单词:
"
+
word
);
window
[
"
courseware
"
]?.
startTest
(
word
);
window
[
"
courseware
"
]?.
startTest
(
word
);
}
else
{
}
else
{
...
@@ -437,25 +498,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -437,25 +498,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
typeof
res
==
"
string
"
)
{
if
(
typeof
res
==
"
string
"
)
{
res
=
JSON
.
parse
(
res
);
res
=
JSON
.
parse
(
res
);
}
}
console
.
log
(
"
++++++++++++ _coursewareEnd +++++++++++++++
"
);
this
.
log
(
"
++++++++++++ _coursewareEnd +++++++++++++++
"
);
this
.
log
(
"
pronunciation===
"
+
res
.
result
?.
pronunciation
);
this
.
_coursewareEnd
(
res
.
result
?.
pronunciation
||
0
,)
this
.
_coursewareEnd
(
res
.
result
?.
pronunciation
||
0
,)
console
.
log
(
"
pronunciation===
"
+
res
.
result
?.
pronunciation
);
console
.
log
(
"
333===
"
+
res
.
result
?.
pronunciation
);
});
});
}
else
{
}
else
{
await
asyncDelay
(
3
);
await
asyncDelay
(
3
);
console
.
log
(
"
web 模拟录音评测 结果
"
);
this
.
log
(
"
web 模拟录音评测 结果
"
);
this
.
_coursewareEnd
(
Math
.
random
()
>
0.5
?
100
:
70
)
this
.
_coursewareEnd
(
Math
.
random
()
>
0.5
?
100
:
70
)
}
}
}
}
async
_coursewareEnd
(
score
:
number
)
{
async
_coursewareEnd
(
score
:
number
)
{
if
(
score
>=
80
)
{
// if (this._status.Blue + this._status.step > 4 || this._status.Red + this._status.step > 4) {
// score = 50
console
.
log
(
"
====评测通过=====
"
);
// }
if
(
score
>=
70
)
{
this
.
log
(
"
====评测通过=====
"
);
this
.
networkHelper
.
sendFrame
({
this
.
networkHelper
.
sendFrame
({
type
:
"
right
"
,
type
:
"
right
"
,
uuid
:
this
.
myData
.
uuid
,
uuid
:
this
.
myData
.
uuid
,
...
@@ -463,8 +523,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -463,8 +523,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
else
{
}
else
{
this
.
log
(
"
====评测不通过=====
"
);
console
.
log
(
"
====评测不通过=====
"
);
this
.
networkHelper
.
sendFrame
({
this
.
networkHelper
.
sendFrame
({
type
:
"
wrong
"
,
type
:
"
wrong
"
,
uuid
:
this
.
myData
.
uuid
,
uuid
:
this
.
myData
.
uuid
,
...
@@ -475,73 +534,41 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -475,73 +534,41 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
roundEndCheck
()
{
roundEndCheck
(
ani
?)
{
this
.
networkHelper
.
sendFrame
({
type
:
"
stateUpdate
"
,
uuid
:
this
.
myData
.
uuid
,
});
}
async
updateStatus
(
status
=
null
)
{
const
blueHead
=
cc
.
find
(
"
Canvas/road/blueHead
"
);
const
redHead
=
cc
.
find
(
"
Canvas/road/redHead
"
);
if
(
!
this
.
_loadingDone
)
return
;
blueHead
.
getChildByName
(
"
tree
"
).
getComponent
(
cc
.
ProgressBar
).
progress
=
this
.
_status
.
Blue
/
(
this
.
_cardList
.
length
-
1
);
redHead
.
getChildByName
(
"
tree
"
).
getComponent
(
cc
.
ProgressBar
).
progress
=
this
.
_status
.
Red
/
(
this
.
_cardList
.
length
-
1
);
let
state
=
this
.
_status
.
state
;
if
(
ani
)
{
switch
(
state
)
{
case
-
1
:
break
;
case
0
:
if
(
this
.
isMySide
)
{
if
(
this
.
isMySide
)
{
this
.
normaltheDice
();
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
right
"
,
1
);
await
this
.
showYourTurn
();
this
.
blinkTheDice
();
}
else
{
this
.
greyDice
();
}
}
this
.
rollPiece
();
if
(
this
.
_status
.
current
==
"
Red
"
)
{
break
;
redHead
.
getChildByName
(
"
spine
"
).
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
normal
"
,
1
);
case
1
:
if
(
this
.
isMySide
)
{
}
else
{
}
else
{
this
.
greyDice
();
blueHead
.
getChildByName
(
"
spine
"
).
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
normal
"
,
1
)
}
}
this
.
stopRollPiece
();
break
;
case
2
:
if
(
this
.
isMySide
)
{
}
else
{
}
else
{
this
.
greyDice
();
}
break
;
if
(
this
.
isMySide
)
{
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
wrong
"
,
1
);
}
}
const
blueFrame
=
cc
.
find
(
"
Canvas/road/blueHead/icon
"
);
const
redFrame
=
cc
.
find
(
"
Canvas/road/redHead/icon
"
);
let
blinkFrame
:
cc
.
Node
,
stopBlinkFrame
:
cc
.
Node
;
if
(
this
.
_status
.
current
==
"
Red
"
)
{
blinkFrame
=
redFrame
;
stopBlinkFrame
=
blueFrame
;
}
else
{
blinkFrame
=
blueFrame
;
stopBlinkFrame
=
redFrame
;
}
}
blinkFrame
.
stopAllActions
();
cc
.
tween
(
blinkFrame
)
.
set
({
opacity
:
100
})
this
.
networkHelper
.
sendFrame
({
.
to
(
1.5
,
{
opacity
:
255
},
{
easing
:
"
cubicOut
"
})
type
:
"
stateUpdate
"
,
.
to
(
1.5
,
{
opacity
:
100
},
{
easing
:
"
cubicIn
"
})
uuid
:
this
.
myData
.
uuid
,
.
union
()
});
.
repeatForever
()
.
start
();
stopBlinkFrame
.
stopAllActions
();
// stopBlinkFrame.opacity = 0;
}
}
getCurrentPiece
()
{
getCurrentPiece
()
{
if
(
this
.
_status
.
current
==
"
Red
"
)
{
if
(
this
.
_status
.
current
==
"
Red
"
)
{
return
cc
.
find
(
"
Canvas/road/root/pieceRed
"
);
return
cc
.
find
(
"
Canvas/road/root/pieceRed
"
);
...
@@ -562,7 +589,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -562,7 +589,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
showYourTurn
()
{
showYourTurn
()
{
console
.
log
(
"
=====showYourTurn===========
"
);
this
.
log
(
"
=====showYourTurn===========
"
);
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
yourTurn
=
cc
.
find
(
"
Canvas/yourturn
"
);
const
yourTurn
=
cc
.
find
(
"
Canvas/yourturn
"
);
yourTurn
.
active
=
true
;
yourTurn
.
active
=
true
;
...
@@ -579,14 +606,28 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -579,14 +606,28 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
async
pieceJump
(
node
,
from
,
to
)
{
async
pieceJump
(
node
,
from
,
to
)
{
let
offset
=
25
;
if
(
this
.
_status
.
current
==
"
Red
"
)
{
offset
=
-
25
;
if
(
!
this
.
_redOriginPos
)
{
this
.
_redOriginPos
=
node
.
position
;
}
}
else
{
if
(
!
this
.
_blueOriginPos
)
{
this
.
_blueOriginPos
=
node
.
position
;
}
}
return
new
Promise
((
resolve
)
=>
{
return
new
Promise
((
resolve
)
=>
{
if
(
from
<
to
)
{
if
(
from
<
to
)
{
let
card
=
this
.
_cardList
[
from
+
1
];
let
card
=
this
.
_cardList
[
Math
.
min
(
from
+
1
,
this
.
_cardList
.
length
-
1
)];
cc
.
tween
(
node
).
to
(
0.2
,
{
position
:
card
.
position
}).
call
(()
=>
{
cc
.
tween
(
node
).
to
(
0.2
,
{
x
:
card
.
position
.
x
+
offset
,
y
:
card
.
position
.
y
}).
call
(()
=>
{
this
.
playLocalAudio
(
"
piece
"
);
resolve
(
this
.
pieceJump
(
node
,
from
+
1
,
to
));
resolve
(
this
.
pieceJump
(
node
,
from
+
1
,
to
));
}).
start
()
}).
start
()
}
else
{
}
else
{
let
word
=
this
.
_cardList
[
from
+
1
].
getComponent
(
BoardCardItem
).
_word
let
word
=
this
.
_cardList
[
Math
.
min
(
from
+
1
,
this
.
_cardList
.
length
-
1
)
].
getComponent
(
BoardCardItem
).
_word
resolve
(
word
);
resolve
(
word
);
}
}
})
})
...
@@ -594,12 +635,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -594,12 +635,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
async
fixStep
()
{
async
fixStep
()
{
if
(
this
.
_status
.
jump
)
{
if
(
this
.
_status
.
jump
)
{
this
.
log
(
"
===fix====jump====
"
);
let
node
=
cc
.
find
(
`Canvas/road/root/piece
${
this
.
_status
.
current
}
`
);
let
node
=
cc
.
find
(
`Canvas/road/root/piece
${
this
.
_status
.
current
}
`
);
let
pos
=
this
.
_cardList
[
this
.
_status
.
jump
].
position
;
let
nowStep
=
this
.
_status
[
this
.
_status
.
current
]
let
offset
=
this
.
_status
.
current
==
"
Red
"
?
-
25
:
25
;
let
pos
=
this
.
_cardList
[
nowStep
].
position
;
await
asyncTweenTo
(
await
asyncTweenTo
(
node
,
node
,
0.7
,
0.7
,
{
x
:
pos
.
x
,
y
:
pos
.
y
},
{
x
:
pos
.
x
+
offset
,
y
:
pos
.
y
},
{
easing
:
"
cubicOut
"
}
{
easing
:
"
cubicOut
"
}
);
);
node
.
stopAllActions
();
node
.
stopAllActions
();
...
@@ -607,6 +651,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -607,6 +651,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
async
pieceGoBack
()
{
async
pieceGoBack
()
{
let
offset
=
this
.
_status
.
current
==
"
Red
"
?
-
25
:
25
;
this
.
playLocalAudio
(
"
wrong
"
);
this
.
playLocalAudio
(
"
wrong
"
);
let
node
=
cc
.
find
(
`Canvas/road/root/piece
${
this
.
_status
.
current
}
`
);
let
node
=
cc
.
find
(
`Canvas/road/root/piece
${
this
.
_status
.
current
}
`
);
...
@@ -615,14 +660,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -615,14 +660,18 @@ export default class SceneComponent extends MyCocosSceneComponent {
pos
=
this
.
_cardList
[
this
.
_status
.
jump
].
position
;
pos
=
this
.
_cardList
[
this
.
_status
.
jump
].
position
;
}
else
{
}
else
{
let
Idx
=
this
.
_status
[
this
.
_status
.
current
];
let
Idx
=
this
.
_status
[
this
.
_status
.
current
];
if
(
Idx
>=
0
)
{
pos
=
this
.
_cardList
[
Idx
].
position
;
pos
=
this
.
_cardList
[
Idx
].
position
;
}
else
{
pos
=
offset
>
0
?
this
.
_blueOriginPos
:
this
.
_redOriginPos
;
pos
.
x
-=
offset
;
}
console
.
log
(
"
now idx ==
"
+
Idx
);
console
.
log
(
"
now idx ==
"
+
Idx
);
}
}
await
asyncTweenTo
(
await
asyncTweenTo
(
node
,
node
,
0.7
,
0.7
,
{
x
:
pos
.
x
,
y
:
pos
.
y
},
{
x
:
pos
.
x
+
offset
,
y
:
pos
.
y
},
{
easing
:
"
cubicOut
"
}
{
easing
:
"
cubicOut
"
}
);
);
node
.
stopAllActions
();
node
.
stopAllActions
();
...
@@ -655,15 +704,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -655,15 +704,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
this
.
server
)
{
if
(
this
.
server
)
{
this
.
server
.
onPlayerJoin
({
data
:
{
joinPlayerId
:
event
.
playerId
}
});
this
.
server
.
onPlayerJoin
({
data
:
{
joinPlayerId
:
event
.
playerId
}
});
}
}
cc
.
log
(
"
playerJoin
"
+
JSON
.
stringify
(
event
));
this
.
log
(
"
playerJoin
"
+
JSON
.
stringify
(
event
,
null
,
2
));
});
});
this
.
networkHelper
.
on
(
"
playerLeave
"
,
(
event
)
=>
{
this
.
networkHelper
.
on
(
"
playerLeave
"
,
(
event
)
=>
{
cc
.
log
(
"
playerLeave
"
+
JSON
.
stringify
(
event
));
cc
.
log
(
"
playerLeave
"
+
JSON
.
stringify
(
event
));
cc
.
find
(
"
Canvas/
bg/
PlayerOffLineLayer
"
).
active
=
true
;
cc
.
find
(
"
Canvas/PlayerOffLineLayer
"
).
active
=
true
;
this
.
networkHelper
.
leaveRoom
();
this
.
networkHelper
.
leaveRoom
();
});
});
this
.
networkHelper
.
on
(
"
playerOffLine
"
,
(
event
)
=>
{
this
.
networkHelper
.
on
(
"
playerOffLine
"
,
(
event
)
=>
{
cc
.
find
(
"
Canvas/
bg/
PlayerOffLineLayer
"
).
active
=
true
;
cc
.
find
(
"
Canvas/PlayerOffLineLayer
"
).
active
=
true
;
this
.
networkHelper
.
leaveRoom
();
this
.
networkHelper
.
leaveRoom
();
this
.
log
(
"
playerOffLine
"
+
JSON
.
stringify
(
event
));
this
.
log
(
"
playerOffLine
"
+
JSON
.
stringify
(
event
));
});
});
...
@@ -677,8 +726,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -677,8 +726,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
console
.
log
(
"
event type
"
+
item
.
data
.
type
);
console
.
log
(
"
event type
"
+
item
.
data
.
type
);
console
.
log
(
"
event data
"
+
JSON
.
stringify
(
item
.
data
.
status
));
console
.
log
(
"
event data
"
+
JSON
.
stringify
(
item
.
data
.
status
));
if
(
item
.
data
.
type
==
"
SERVER_allPlayerInfo
"
)
{
if
(
item
.
data
.
type
==
"
SERVER_allPlayerInfo
"
)
{
console
.
log
(
this
.
log
(
"
SERVER_allPlayerInfo:
"
+
JSON
.
stringify
(
item
.
data
.
playerData
)
"
SERVER_allPlayerInfo:
"
+
JSON
.
stringify
(
item
.
data
.
playerData
,
null
,
2
)
);
);
item
.
data
.
playerData
.
forEach
((
player
)
=>
{
item
.
data
.
playerData
.
forEach
((
player
)
=>
{
if
(
!
this
.
allPlayerList
)
{
if
(
!
this
.
allPlayerList
)
{
...
@@ -717,10 +766,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -717,10 +766,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
else
{
}
else
{
this
.
greyDice
();
this
.
greyDice
();
}
}
await
this
.
rollTheDice
(
this
.
_status
.
step
);
let
rollNum
=
this
.
_status
.
step
-
1
+
3
+
(
Math
.
random
()
>
0.5
?
0
:
3
);
console
.
log
(
"
rollTheDice done
"
);
await
this
.
rollTheDice
(
rollNum
);
this
.
log
(
"
rollTheDice done
"
);
await
this
.
peaceJumpAndSpeak
();
await
this
.
peaceJumpAndSpeak
();
console
.
log
(
"
peaceJumpAndSpeak done
"
);
this
.
log
(
"
peaceJumpAndSpeak done
"
);
this
.
roundEndCheck
();
this
.
roundEndCheck
();
}
}
else
if
(
item
.
data
.
type
==
"
SERVER_playerRight
"
)
{
else
if
(
item
.
data
.
type
==
"
SERVER_playerRight
"
)
{
...
@@ -728,10 +778,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -728,10 +778,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
playLocalAudio
(
"
right
"
);
this
.
playLocalAudio
(
"
right
"
);
this
.
_status
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
data
.
status
));
this
.
_status
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
data
.
status
));
await
this
.
fixStep
();
await
this
.
fixStep
();
this
.
roundEndCheck
();
this
.
roundEndCheck
(
true
);
}
else
if
(
item
.
data
.
type
==
"
SERVER_playerWrong
"
)
{
}
else
if
(
item
.
data
.
type
==
"
SERVER_playerWrong
"
)
{
this
.
_status
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
data
.
status
));
if
(
this
.
_status
.
jump
)
{
await
this
.
fixStep
();
}
else
{
await
this
.
pieceGoBack
();
await
this
.
pieceGoBack
();
}
this
.
roundEndCheck
();
this
.
roundEndCheck
();
}
else
if
(
item
.
data
.
type
==
"
SERVER_playerWin
"
)
{
}
else
if
(
item
.
data
.
type
==
"
SERVER_playerWin
"
)
{
this
.
_status
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
data
.
status
));
this
.
_status
=
JSON
.
parse
(
JSON
.
stringify
(
item
.
data
.
status
));
...
@@ -754,20 +809,22 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -754,20 +809,22 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
showWin
()
{
showWin
()
{
cc
.
find
(
"
Canvas/endBg
"
).
active
=
true
;
let
endRoot
=
cc
.
find
(
"
Canvas/endRoot
"
)
const
bg
=
cc
.
find
(
"
Canvas/endBg/bg
"
);
endRoot
.
active
=
true
;
cc
.
tween
(
bg
).
to
(
1
,
{
opacity
:
100
}).
start
();
endRoot
.
opacity
=
0
;
const
loss
=
cc
.
find
(
"
Canvas/endBg/labelBg/labelLoss
"
);
cc
.
tween
(
endRoot
).
to
(
1
,
{
opacity
:
255
}).
start
();
loss
.
active
=
false
;
const
win
=
cc
.
find
(
"
Canvas/endRoot/win
"
);
this
.
playLocalAudio
(
"
胜利
"
);
win
.
active
=
true
;
this
.
playLocalAudio
(
"
win
"
);
}
}
showLoss
()
{
showLoss
()
{
cc
.
find
(
"
Canvas/endBg
"
).
active
=
true
;
let
endRoot
=
cc
.
find
(
"
Canvas/endRoot
"
)
const
bg
=
cc
.
find
(
"
Canvas/endBg/bg
"
);
endRoot
.
active
=
true
;
cc
.
tween
(
bg
).
to
(
1
,
{
opacity
:
100
}).
start
();
endRoot
.
opacity
=
0
;
const
win
=
cc
.
find
(
"
Canvas/endBg/labelBg/labelWin
"
);
cc
.
tween
(
endRoot
).
to
(
1
,
{
opacity
:
255
}).
start
();
win
.
active
=
false
;
const
loss
=
cc
.
find
(
"
Canvas/endRoot/loss
"
);
this
.
playLocalAudio
(
"
失败
"
);
loss
.
active
=
true
;
this
.
playLocalAudio
(
"
loss
"
);
}
}
loadPlayerHeadImage
()
{
loadPlayerHeadImage
()
{
...
...
assets/boardgame_yyh/script/BoardGame2_PlayerOffLineLayer.js
0 → 100644
View file @
9beace3b
cc
.
Class
({
extends
:
cc
.
Component
,
properties
:
{
},
start
()
{
const
BtnExit
=
cc
.
find
(
'
BtnFrame/BtnExit
'
,
this
.
node
);
this
.
buttonOnClick
(
BtnExit
,
()
=>
{
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
const
middleLayerComponent
=
middleLayer
.
getComponent
(
'
middleLayer
'
);
if
(
middleLayerComponent
.
onClickExitBtn
)
{
middleLayerComponent
.
onClickExitBtn
();
}
}
else
{
cc
.
director
.
getScene
().
destroy
();
cc
.
audioEngine
.
stopAll
();
if
(
window
.
courseware
)
{
window
.
courseware
.
freeAllOcMethod
();
}
var
bundle
=
cc
.
assetManager
.
bundles
.
find
((
obj
)
=>
{
return
obj
.
getSceneInfo
(
'
debug_shell
'
);
});
if
(
bundle
)
{
cc
.
director
.
loadScene
(
"
debug_shell
"
,
null
,
null
,
(
err
,
scene
)
=>
{
});
}
else
{
cc
.
director
.
loadScene
(
"
OXFORDCORE
"
,
null
,
null
,
(
err
,
scene
)
=>
{
});
}
}
});
const
BtnPlayAgain
=
cc
.
find
(
'
BtnFrame/BtnPlayAgain
'
,
this
.
node
);
this
.
buttonOnClick
(
BtnPlayAgain
,
()
=>
{
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
const
middleLayerComponent
=
middleLayer
.
getComponent
(
'
middleLayer
'
);
if
(
middleLayerComponent
)
{
middleLayerComponent
.
reloadBundle
();
}
}
else
{
const
sceneName
=
cc
.
director
.
getScene
().
name
;
cc
.
director
.
getScene
().
destroy
();
cc
.
audioEngine
.
stopAll
();
if
(
window
.
courseware
)
{
window
.
courseware
.
freeAllOcMethod
();
}
cc
.
director
.
loadScene
(
sceneName
,
null
,
null
,
(
err
,
scene
)
=>
{
});
}
});
},
buttonOnClick
(
button
,
callback
,
scale
=
1.0
)
{
button
.
on
(
'
click
'
,
()
=>
{
if
(
button
[
'
cantClick
'
])
{
return
;
}
button
[
'
cantClick
'
]
=
true
;
cc
.
tween
(
button
)
.
to
(
0.1
,
{
scale
:
scale
*
1.1
})
.
to
(
0.1
,
{
scale
:
scale
})
.
call
(()
=>
{
button
[
'
cantClick
'
]
=
false
;
callback
&&
callback
();
})
.
start
();
});
}
});
assets/boardgame_yyh/script/BoardGame2_PlayerOffLineLayer.js.meta
0 → 100644
View file @
9beace3b
{
"ver": "1.0.8",
"uuid": "72d2fadf-ee6a-43f2-b21a-5a1087fde153",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
assets/boardgame_yyh/script/Server.ts
View file @
9beace3b
...
@@ -86,11 +86,11 @@ export class GameServer {
...
@@ -86,11 +86,11 @@ export class GameServer {
gameStatus
=
{
gameStatus
=
{
state
:
0
,
// -1:未开始 0 准备阶段 1 roll 2 判定
state
:
0
,
// -1:未开始 0 准备阶段 1 roll 2 判定
Red
:
0
,
Red
:
-
1
,
Blue
:
0
,
Blue
:
-
1
,
step
:
0
,
step
:
0
,
current
:
"
Blue
"
,
current
:
"
Blue
"
,
jump
:
0
,
jump
:
false
,
};
};
startGame
()
{
startGame
()
{
this
.
networkHelper
.
sendFrame
({
this
.
networkHelper
.
sendFrame
({
...
@@ -157,7 +157,12 @@ export class GameServer {
...
@@ -157,7 +157,12 @@ export class GameServer {
let
nowStep
=
this
.
gameStatus
[
this
.
gameStatus
.
current
];
let
nowStep
=
this
.
gameStatus
[
this
.
gameStatus
.
current
];
let
index
=
Math
.
floor
(
Math
.
random
()
*
this
.
randomList
.
length
)
let
index
=
Math
.
floor
(
Math
.
random
()
*
this
.
randomList
.
length
)
let
step
=
this
.
randomList
[
index
];
let
step
=
this
.
randomList
[
index
];
step
=
Math
.
min
(
step
,
this
.
_totalStep
-
nowStep
);
// if (nowStep < 5) {
// step = 3;
// } else {
// step = 1;
// }
step
=
Math
.
min
(
step
,
this
.
_totalStep
-
1
-
nowStep
);
console
.
log
(
"
random step ===
"
+
step
);
console
.
log
(
"
random step ===
"
+
step
);
this
.
gameStatus
.
step
=
step
;
this
.
gameStatus
.
step
=
step
;
...
@@ -172,12 +177,18 @@ export class GameServer {
...
@@ -172,12 +177,18 @@ export class GameServer {
}
}
}
}
else
if
(
data
.
type
==
"
right
"
)
{
else
if
(
data
.
type
==
"
right
"
)
{
let
nowStep
=
this
.
gameStatus
[
this
.
gameStatus
.
current
];
let
nowStep
:
number
=
this
.
gameStatus
[
this
.
gameStatus
.
current
];
const
jump
=
this
.
jumpList
.
find
(
jump
=>
parseInt
(
jump
.
from
)
==
parseInt
(
data
.
idx
));
console
.
log
(
"
nowStep ===
"
+
nowStep
);
const
jump
=
this
.
jumpList
.
find
(
jump
=>
parseInt
(
jump
.
from
)
==
nowStep
+
this
.
gameStatus
.
step
);
this
.
gameStatus
[
this
.
gameStatus
.
current
]
=
jump
?
parseInt
(
jump
.
to
)
:
nowStep
+
this
.
gameStatus
.
step
;
this
.
gameStatus
[
this
.
gameStatus
.
current
]
=
jump
?
parseInt
(
jump
.
to
)
:
nowStep
+
this
.
gameStatus
.
step
;
if
(
this
.
gameStatus
[
this
.
gameStatus
.
current
]
<
this
.
_totalStep
)
{
if
(
jump
)
{
console
.
log
(
"
jump=============
"
+
jump
);
}
if
(
this
.
gameStatus
[
this
.
gameStatus
.
current
]
<
this
.
_totalStep
-
1
)
{
this
.
gameStatus
.
step
=
null
;
this
.
gameStatus
.
step
=
null
;
this
.
gameStatus
.
state
=
2
;
this
.
gameStatus
.
state
=
2
;
this
.
gameStatus
.
jump
=
!!
jump
;
this
.
networkHelper
.
sendFrame
({
this
.
networkHelper
.
sendFrame
({
type
:
"
SERVER_playerRight
"
,
type
:
"
SERVER_playerRight
"
,
status
:
this
.
gameStatus
,
status
:
this
.
gameStatus
,
...
@@ -194,8 +205,14 @@ export class GameServer {
...
@@ -194,8 +205,14 @@ export class GameServer {
}
else
if
(
data
.
type
==
"
wrong
"
)
{
}
else
if
(
data
.
type
==
"
wrong
"
)
{
console
.
log
(
"
data =
"
+
JSON
.
stringify
(
data
));
console
.
log
(
"
data =
"
+
JSON
.
stringify
(
data
));
let
nowStep
:
number
=
this
.
gameStatus
[
this
.
gameStatus
.
current
];
console
.
log
(
"
nowStep ===
"
+
nowStep
);
const
jump
=
this
.
jumpList
.
find
(
jump
=>
parseInt
(
jump
.
to
)
==
nowStep
+
this
.
gameStatus
.
step
);
this
.
gameStatus
[
this
.
gameStatus
.
current
]
=
jump
?
parseInt
(
jump
.
from
)
:
nowStep
;
this
.
gameStatus
.
step
=
null
;
this
.
gameStatus
.
step
=
null
;
this
.
gameStatus
.
state
=
2
;
this
.
gameStatus
.
state
=
2
;
this
.
gameStatus
.
jump
=
!!
jump
;
this
.
networkHelper
.
sendFrame
({
this
.
networkHelper
.
sendFrame
({
type
:
"
SERVER_playerWrong
"
,
type
:
"
SERVER_playerWrong
"
,
status
:
this
.
gameStatus
,
status
:
this
.
gameStatus
,
...
...
assets/boardgame_yyh/script/defaultData.ts
View file @
9beace3b
...
@@ -12,76 +12,76 @@ export const defaultData = {
...
@@ -12,76 +12,76 @@ export const defaultData = {
cardDatas
:
[
cardDatas
:
[
{
{
id
:
1
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
bat
"
,
url
:
""
,
id
:
0
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
bat
"
,
url
:
""
,
},
},
{
{
id
:
2
,
rJumpId
:
6
,
wJumpId
:
null
,
word
:
"
man
"
,
url
:
""
,
id
:
1
,
rJumpId
:
5
,
wJumpId
:
null
,
word
:
"
man
"
,
url
:
""
,
},
},
{
{
id
:
3
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
pad
"
,
url
:
""
,
id
:
2
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
pad
"
,
url
:
""
,
},
},
{
{
id
:
4
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
dam
"
,
url
:
""
,
id
:
3
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
dam
"
,
url
:
""
,
},
},
{
{
id
:
5
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
map
"
,
url
:
""
,
id
:
4
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
map
"
,
url
:
""
,
},
},
{
{
id
:
6
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
ant
"
,
url
:
""
,
id
:
5
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
ant
"
,
url
:
""
,
},
},
{
{
id
:
7
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
can
"
,
url
:
""
,
id
:
6
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
can
"
,
url
:
""
,
},
},
{
{
id
:
8
,
rJumpId
:
13
,
wJumpId
:
null
,
word
:
"
cam
"
,
url
:
""
,
id
:
7
,
rJumpId
:
12
,
wJumpId
:
null
,
word
:
"
cam
"
,
url
:
""
,
},
},
{
{
id
:
9
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
mat
"
,
url
:
""
,
id
:
8
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
mat
"
,
url
:
""
,
},
},
{
{
id
:
10
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
cat
"
,
url
:
""
,
id
:
9
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
cat
"
,
url
:
""
,
},
},
{
{
id
:
1
1
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
fan
"
,
url
:
""
,
id
:
1
0
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
fan
"
,
url
:
""
,
},
},
{
{
id
:
1
2
,
rJumpId
:
21
,
wJumpId
:
null
,
word
:
"
tap
"
,
url
:
""
,
id
:
1
1
,
rJumpId
:
19
,
wJumpId
:
null
,
word
:
"
tap
"
,
url
:
""
,
},
},
{
{
id
:
1
3
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
cap
"
,
url
:
""
,
id
:
1
2
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
cap
"
,
url
:
""
,
},
},
{
{
id
:
1
4
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
bag
"
,
url
:
""
,
id
:
1
3
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
bag
"
,
url
:
""
,
},
},
{
{
id
:
1
5
,
rJumpId
:
19
,
wJumpId
:
null
,
word
:
"
yam
"
,
url
:
""
,
id
:
1
4
,
rJumpId
:
18
,
wJumpId
:
null
,
word
:
"
yam
"
,
url
:
""
,
},
},
{
{
id
:
1
6
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
yak
"
,
url
:
""
,
id
:
1
5
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
yak
"
,
url
:
""
,
},
},
{
{
id
:
1
7
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
rat
"
,
url
:
""
,
id
:
1
6
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
rat
"
,
url
:
""
,
},
},
{
{
id
:
1
8
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
rag
"
,
url
:
""
,
id
:
1
7
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
rag
"
,
url
:
""
,
},
},
{
{
id
:
1
9
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
pan
"
,
url
:
""
,
id
:
1
8
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
pan
"
,
url
:
""
,
},
},
{
{
id
:
20
,
rJumpId
:
24
,
wJumpId
:
null
,
word
:
"
dad
"
,
url
:
""
,
id
:
19
,
rJumpId
:
23
,
wJumpId
:
null
,
word
:
"
dad
"
,
url
:
""
,
},
},
{
{
id
:
2
1
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
jam
"
,
url
:
""
,
id
:
2
0
,
rJumpId
:
22
,
wJumpId
:
null
,
word
:
"
jam
"
,
url
:
""
,
},
},
{
{
id
:
2
2
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
ax
"
,
url
:
""
,
id
:
2
1
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
ax
"
,
url
:
""
,
},
},
{
{
id
:
2
3
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
hat
"
,
url
:
""
,
id
:
2
2
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
hat
"
,
url
:
""
,
},
},
{
{
id
:
2
4
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
map
"
,
url
:
""
,
id
:
2
3
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
map
"
,
url
:
""
,
},
},
]
]
...
...
assets/boardgame_yyh/textures/BtnExit.png
0 → 100644
View file @
9beace3b
9.59 KB
assets/boardgame_yyh/textures/BtnExit.png.meta
0 → 100644
View file @
9beace3b
{
"ver": "2.3.5",
"uuid": "cad89ca0-36b3-4714-94d2-d9ef3df6b4ba",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 158,
"height": 60,
"platformSettings": {},
"subMetas": {
"BtnExit": {
"ver": "1.0.4",
"uuid": "2b5dd43a-655a-4ac5-8116-f646a0e03ef9",
"rawTextureUuid": "cad89ca0-36b3-4714-94d2-d9ef3df6b4ba",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 158,
"height": 60,
"rawWidth": 158,
"rawHeight": 60,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/boardgame_yyh/textures/BtnFrame.png
0 → 100644
View file @
9beace3b
16.6 KB
assets/boardgame_yyh/textures/BtnFrame.png.meta
0 → 100644
View file @
9beace3b
{
"ver": "2.3.5",
"uuid": "43b4e521-9123-4fb9-8d0f-3fe09b4bc3bd",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 684,
"height": 244,
"platformSettings": {},
"subMetas": {
"BtnFrame": {
"ver": "1.0.4",
"uuid": "8cd35174-8a10-4be2-ae94-bb979d92c001",
"rawTextureUuid": "43b4e521-9123-4fb9-8d0f-3fe09b4bc3bd",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 684,
"height": 244,
"rawWidth": 684,
"rawHeight": 244,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/boardgame_yyh/textures/BtnPlayAgain.png
0 → 100644
View file @
9beace3b
8.55 KB
assets/boardgame_yyh/textures/BtnPlayAgain.png.meta
0 → 100644
View file @
9beace3b
{
"ver": "2.3.5",
"uuid": "a78958f5-493f-480c-ab6b-5b144fe67fe8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 158,
"height": 60,
"platformSettings": {},
"subMetas": {
"BtnPlayAgain": {
"ver": "1.0.4",
"uuid": "627f41fc-5bc7-4455-bde4-d8192ec8c1cb",
"rawTextureUuid": "a78958f5-493f-480c-ab6b-5b144fe67fe8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 158,
"height": 60,
"rawWidth": 158,
"rawHeight": 60,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/boardgame_yyh/textures/endbg.png
0 → 100644
View file @
9beace3b
160 KB
assets/boardgame_yyh/textures/endbg.png.meta
0 → 100644
View file @
9beace3b
{
"ver": "2.3.5",
"uuid": "75a7e8fc-f054-4b5f-815a-5b1252befbcc",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2176,
"height": 485,
"platformSettings": {},
"subMetas": {
"endbg": {
"ver": "1.0.4",
"uuid": "bfd75cec-a666-460c-b3a2-28b3e782be4c",
"rawTextureUuid": "75a7e8fc-f054-4b5f-815a-5b1252befbcc",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2176,
"height": 485,
"rawWidth": 2176,
"rawHeight": 485,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/boardgame_yyh/textures/labelLoss.png
0 → 100644
View file @
9beace3b
68 KB
assets/boardgame_yyh/textures/labelLoss.png.meta
0 → 100644
View file @
9beace3b
{
"ver": "2.3.5",
"uuid": "913b6562-93ac-4b3b-9f6e-06235ca3d194",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1064,
"height": 451,
"platformSettings": {},
"subMetas": {
"labelLoss": {
"ver": "1.0.4",
"uuid": "d188142c-57dc-4634-8de7-8e487f6ec2bc",
"rawTextureUuid": "913b6562-93ac-4b3b-9f6e-06235ca3d194",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1064,
"height": 451,
"rawWidth": 1064,
"rawHeight": 451,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
assets/boardgame_yyh/textures/labelWin.png
0 → 100644
View file @
9beace3b
59.4 KB
assets/boardgame_yyh/textures/labelWin.png.meta
0 → 100644
View file @
9beace3b
{
"ver": "2.3.5",
"uuid": "8632104b-7c73-4d3e-b5e0-7e8982cb24ed",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1070,
"height": 451,
"platformSettings": {},
"subMetas": {
"labelWin": {
"ver": "1.0.4",
"uuid": "a6b2490f-93b2-4033-9bab-2d21030a8733",
"rawTextureUuid": "8632104b-7c73-4d3e-b5e0-7e8982cb24ed",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1070,
"height": 451,
"rawWidth": 1070,
"rawHeight": 451,
"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