Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
l2_boardgame2
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
l2_boardgame2
Commits
9b2f4475
Commit
9b2f4475
authored
Jul 21, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改内容
parent
36bc1536
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
412 additions
and
964 deletions
+412
-964
L2BG2-下雪动效_ske.json
assets/l2_boardgame2/dragonBones/L2BG2-下雪动效_ske.json
+0
-0
L2BG2-下雪动效_tex.json
assets/l2_boardgame2/dragonBones/L2BG2-下雪动效_tex.json
+2
-2
l2_boardgame2.fire
assets/l2_boardgame2/scene/l2_boardgame2.fire
+292
-845
l2_boardgame2.ts
assets/l2_boardgame2/scene/l2_boardgame2.ts
+114
-113
AI.ts
assets/l2_boardgame2/script/AI.ts
+1
-1
Server.ts
assets/l2_boardgame2/script/Server.ts
+3
-3
No files found.
assets/l2_boardgame2/dragonBones/L2BG2-下雪动效_ske.json
View file @
9b2f4475
This diff is collapsed.
Click to expand it.
assets/l2_boardgame2/dragonBones/L2BG2-下雪动效_tex.json
View file @
9b2f4475
{
"width"
:
256
,
"imagePath"
:
"L2BG2-下雪动效_tex.png"
,
"height"
:
128
,
"name"
:
"L2BG2-下雪动效"
,
"SubTexture"
:[{
"width"
:
39
,
"y"
:
1
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17"
,
"x"
:
124
},{
"width"
:
39
,
"y"
:
45
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝"
,
"x"
:
83
},{
"width"
:
39
,
"y"
:
1
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝_7"
,
"x"
:
1
},{
"width"
:
39
,
"y"
:
45
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝_2"
,
"x"
:
165
},{
"width"
:
39
,
"y"
:
1
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝_6"
,
"x"
:
83
},{
"width"
:
39
,
"y"
:
45
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝_3"
,
"x"
:
1
},{
"width"
:
39
,
"y"
:
45
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝_9"
,
"x"
:
42
},{
"width"
:
39
,
"y"
:
1
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝_8"
,
"x"
:
206
},{
"width"
:
39
,
"y"
:
45
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝_4"
,
"x"
:
124
},{
"width"
:
39
,
"y"
:
1
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17 拷贝 5_0"
,
"x"
:
165
},{
"width"
:
39
,
"y"
:
1
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝_5"
,
"x"
:
42
}]}
{
"width"
:
256
,
"imagePath"
:
"L2BG2-下雪动效_tex.png"
,
"height"
:
128
,
"name"
:
"L2BG2-下雪动效"
,
"SubTexture"
:[{
"width"
:
39
,
"y"
:
1
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17"
,
"x"
:
83
},{
"width"
:
39
,
"y"
:
45
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝"
,
"x"
:
42
},{
"width"
:
39
,
"y"
:
45
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝_7"
,
"x"
:
83
},{
"width"
:
39
,
"y"
:
1
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝_2"
,
"x"
:
1
},{
"width"
:
39
,
"y"
:
1
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝_6"
,
"x"
:
124
},{
"width"
:
39
,
"y"
:
45
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝_3"
,
"x"
:
165
},{
"width"
:
39
,
"y"
:
45
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝_9"
,
"x"
:
124
},{
"width"
:
39
,
"y"
:
45
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝_8"
,
"x"
:
1
},{
"width"
:
39
,
"y"
:
1
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝_4"
,
"x"
:
42
},{
"width"
:
39
,
"y"
:
1
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17 拷贝 5_0"
,
"x"
:
165
},{
"width"
:
39
,
"y"
:
1
,
"height"
:
42
,
"name"
:
"下雪效果9秒内循环/图层17_拷贝_5"
,
"x"
:
206
}]}
\ No newline at end of file
\ No newline at end of file
assets/l2_boardgame2/scene/l2_boardgame2.fire
View file @
9b2f4475
This diff is collapsed.
Click to expand it.
assets/l2_boardgame2/scene/l2_boardgame2.ts
View file @
9b2f4475
...
@@ -47,7 +47,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -47,7 +47,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
Red
:
0
,
Red
:
0
,
Blue
:
0
,
Blue
:
0
,
letter
:
""
,
letter
:
""
,
current
:
"
Blue
"
,
current
:
"
Red
"
,
};
};
playerId
;
playerId
;
isRoomOwner
;
isRoomOwner
;
...
@@ -1008,6 +1008,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -1008,6 +1008,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
console
.
log
(
'
startTest->
'
+
this
.
_status
.
letter
);
console
.
log
(
'
startTest->
'
+
this
.
_status
.
letter
);
courseware
&&
courseware
.
startTest
(
this
.
_status
.
letter
);
//开始录音
courseware
&&
courseware
.
startTest
(
this
.
_status
.
letter
);
//开始录音
setTimeout
(
async
()
=>
{
setTimeout
(
async
()
=>
{
if
(
!
courseware
)
{
let
testData
=
{
let
testData
=
{
"
dtLastResponse
"
:
"
2021-09-17 13:36:26:109
"
,
"
dtLastResponse
"
:
"
2021-09-17 13:36:26:109
"
,
"
refText
"
:
"
I haven't found anything out about him yet.
"
,
"
refText
"
:
"
I haven't found anything out about him yet.
"
,
...
@@ -1125,7 +1126,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -1125,7 +1126,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
"
tokenId
"
:
"
6144295408558b08dd000001
"
,
"
tokenId
"
:
"
6144295408558b08dd000001
"
,
"
applicationId
"
:
"
154838659000009e
"
"
applicationId
"
:
"
154838659000009e
"
}
}
if
(
!
courseware
)
{
if
(
this
.
recrodEnd
(
testData
))
{
if
(
this
.
recrodEnd
(
testData
))
{
await
this
.
showVoiceGood
();
await
this
.
showVoiceGood
();
return
resolve
(
true
)
return
resolve
(
true
)
...
@@ -1193,8 +1193,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -1193,8 +1193,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
// return true;
// return true;
let
score
=
data
.
result
.
overall
;
let
score
=
data
.
result
.
overall
;
let
isSuccess
=
this
.
checkWords
(
data
);
let
isSuccess
=
this
.
checkWords
(
data
);
this
.
log
(
"
score->
"
+
score
);
this
.
log
(
"
isSuccess->
"
+
isSuccess
);
if
(
score
>=
70
&&
isSuccess
)
{
if
(
score
>=
70
&&
isSuccess
)
{
//提示成功
return
true
;
return
true
;
}
else
{
}
else
{
return
false
;
return
false
;
...
...
assets/l2_boardgame2/script/AI.ts
View file @
9b2f4475
...
@@ -8,7 +8,7 @@ export class AI {
...
@@ -8,7 +8,7 @@ export class AI {
Red
:
0
,
Red
:
0
,
Blue
:
0
,
Blue
:
0
,
letter
:
""
,
letter
:
""
,
current
:
"
Blue
"
,
current
:
"
Red
"
,
};
};
constructor
(
networkHelper
:
NetworkHelper
,
playerData
:
any
)
{
constructor
(
networkHelper
:
NetworkHelper
,
playerData
:
any
)
{
...
...
assets/l2_boardgame2/script/Server.ts
View file @
9b2f4475
...
@@ -58,7 +58,7 @@ export class GameServer {
...
@@ -58,7 +58,7 @@ export class GameServer {
name
:
this
.
nameList
.
splice
(
0
,
1
)[
0
],
name
:
this
.
nameList
.
splice
(
0
,
1
)[
0
],
uuid
:
player
.
uuid
,
uuid
:
player
.
uuid
,
color
:
color
:
player
.
uuid
==
this
.
networkHelper
.
room
.
roomInfo
.
owner
?
"
Blue
"
:
"
Red
"
,
player
.
uuid
==
this
.
networkHelper
.
room
.
roomInfo
.
owner
?
"
Red
"
:
"
Blue
"
,
isAI
:
player
.
isAI
,
isAI
:
player
.
isAI
,
headUrl
:
this
.
headUrls
.
splice
(
0
,
1
)[
0
],
headUrl
:
this
.
headUrls
.
splice
(
0
,
1
)[
0
],
});
});
...
@@ -82,7 +82,7 @@ export class GameServer {
...
@@ -82,7 +82,7 @@ export class GameServer {
Red
:
0
,
Red
:
0
,
Blue
:
0
,
Blue
:
0
,
letter
:
""
,
letter
:
""
,
current
:
"
Blue
"
,
current
:
"
Red
"
,
};
};
startGame
()
{
startGame
()
{
this
.
networkHelper
.
sendFrame
({
this
.
networkHelper
.
sendFrame
({
...
@@ -108,7 +108,7 @@ export class GameServer {
...
@@ -108,7 +108,7 @@ export class GameServer {
const
playerInfo
=
{
const
playerInfo
=
{
uuid
:
"
ai_
"
+
i
,
uuid
:
"
ai_
"
+
i
,
isAI
:
true
,
isAI
:
true
,
color
:
"
Red
"
,
color
:
"
Blue
"
,
};
};
this
.
_aiPlayerList
.
push
(
new
AI
(
this
.
networkHelper
,
playerInfo
));
this
.
_aiPlayerList
.
push
(
new
AI
(
this
.
networkHelper
,
playerInfo
));
this
.
addPlayer
(
playerInfo
);
this
.
addPlayer
(
playerInfo
);
...
...
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