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
Hide 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
}]}
\ No newline at end of file
{
"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
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 {
Red
:
0
,
Blue
:
0
,
letter
:
""
,
current
:
"
Blue
"
,
current
:
"
Red
"
,
};
playerId
;
isRoomOwner
;
...
...
@@ -1008,124 +1008,124 @@ export default class SceneComponent extends MyCocosSceneComponent {
console
.
log
(
'
startTest->
'
+
this
.
_status
.
letter
);
courseware
&&
courseware
.
startTest
(
this
.
_status
.
letter
);
//开始录音
setTimeout
(
async
()
=>
{
let
testData
=
{
"
dtLastResponse
"
:
"
2021-09-17 13:36:26:109
"
,
"
refText
"
:
"
I haven't found anything out about him yet.
"
,
"
recordId
"
:
"
6144295213f0a2200000ed93
"
,
"
eof
"
:
1
,
"
result
"
:
{
"
pronunciation
"
:
25
,
"
resource_version
"
:
"
3.1.0
"
,
"
fluency
"
:
60
,
"
rhythm
"
:
90
,
"
kernel_version
"
:
"
5.2.4
"
,
"
overall
"
:
25
,
//75
"
integrity
"
:
100
,
"
duration
"
:
"
6.779
"
,
"
rear_tone
"
:
"
fall
"
,
"
speed
"
:
96
,
"
words
"
:
[
{
"
phonemes
"
:
[
{
"
phoneme
"
:
"
w
"
,
"
pronunciation
"
:
55
,
"
span
"
:
{
"
end
"
:
95
,
"
start
"
:
88
if
(
!
courseware
)
{
let
testData
=
{
"
dtLastResponse
"
:
"
2021-09-17 13:36:26:109
"
,
"
refText
"
:
"
I haven't found anything out about him yet.
"
,
"
recordId
"
:
"
6144295213f0a2200000ed93
"
,
"
eof
"
:
1
,
"
result
"
:
{
"
pronunciation
"
:
25
,
"
resource_version
"
:
"
3.1.0
"
,
"
fluency
"
:
60
,
"
rhythm
"
:
90
,
"
kernel_version
"
:
"
5.2.4
"
,
"
overall
"
:
25
,
//75
"
integrity
"
:
100
,
"
duration
"
:
"
6.779
"
,
"
rear_tone
"
:
"
fall
"
,
"
speed
"
:
96
,
"
words
"
:
[
{
"
phonemes
"
:
[
{
"
phoneme
"
:
"
w
"
,
"
pronunciation
"
:
55
,
"
span
"
:
{
"
end
"
:
95
,
"
start
"
:
88
}
},
{
"
phoneme
"
:
"
ɛ
"
,
"
pronunciation
"
:
100
,
"
span
"
:
{
"
end
"
:
107
,
"
start
"
:
95
}
},
{
"
phoneme
"
:
"
r
"
,
"
pronunciation
"
:
99
,
"
span
"
:
{
"
end
"
:
123
,
"
start
"
:
107
}
}
},
{
"
phoneme
"
:
"
ɛ
"
,
"
pronunciation
"
:
100
,
"
span
"
:
{
"
end
"
:
107
,
"
start
"
:
95
],
"
phonics
"
:
[
{
"
overall
"
:
85
,
"
phoneme
"
:
[
"
w
"
,
"
ɛ
"
,
"
r
"
],
"
spell
"
:
"
Where
"
}
],
"
scores
"
:
{
"
overall
"
:
80
,
"
pronunciation
"
:
92
},
"
span
"
:
{
"
end
"
:
123
,
"
start
"
:
88
},
{
"
phoneme
"
:
"
r
"
,
"
pronunciation
"
:
99
,
"
span
"
:
{
"
end
"
:
123
,
"
start
"
:
107
"
word
"
:
"
Where
"
},
{
"
phonemes
"
:
[
{
"
phoneme
"
:
"
w
"
,
"
pronunciation
"
:
55
,
"
span
"
:
{
"
end
"
:
95
,
"
start
"
:
88
}
},
{
"
phoneme
"
:
"
ɛ
"
,
"
pronunciation
"
:
100
,
"
span
"
:
{
"
end
"
:
107
,
"
start
"
:
95
}
},
{
"
phoneme
"
:
"
r
"
,
"
pronunciation
"
:
99
,
"
span
"
:
{
"
end
"
:
123
,
"
start
"
:
107
}
}
}
],
"
phonics
"
:
[
{
"
overall
"
:
85
,
"
phoneme
"
:
[
"
w
"
,
"
ɛ
"
,
"
r
"
],
"
spell
"
:
"
Where
"
}
],
"
scores
"
:
{
"
overall
"
:
80
,
"
pronunciation
"
:
92
},
"
span
"
:
{
"
end
"
:
123
,
"
start
"
:
88
},
"
word
"
:
"
Where
"
},
{
"
phonemes
"
:
[
{
"
phoneme
"
:
"
w
"
,
"
pronunciation
"
:
55
,
"
span
"
:
{
"
end
"
:
95
,
"
start
"
:
88
],
"
phonics
"
:
[
{
"
overall
"
:
85
,
"
phoneme
"
:
[
"
w
"
,
"
ɛ
"
,
"
r
"
],
"
spell
"
:
"
Where
"
}
],
"
scores
"
:
{
"
overall
"
:
10
,
"
pronunciation
"
:
92
},
{
"
phoneme
"
:
"
ɛ
"
,
"
pronunciation
"
:
100
,
"
span
"
:
{
"
end
"
:
107
,
"
start
"
:
95
}
"
span
"
:
{
"
end
"
:
123
,
"
start
"
:
88
},
{
"
phoneme
"
:
"
r
"
,
"
pronunciation
"
:
99
,
"
span
"
:
{
"
end
"
:
123
,
"
start
"
:
107
}
}
],
"
phonics
"
:
[
{
"
overall
"
:
85
,
"
phoneme
"
:
[
"
w
"
,
"
ɛ
"
,
"
r
"
],
"
spell
"
:
"
Where
"
}
],
"
scores
"
:
{
"
overall
"
:
10
,
"
pronunciation
"
:
92
},
"
span
"
:
{
"
end
"
:
123
,
"
start
"
:
88
},
"
word
"
:
"
Where
"
}
]
},
"
tokenId
"
:
"
6144295408558b08dd000001
"
,
"
applicationId
"
:
"
154838659000009e
"
}
if
(
!
courseware
)
{
"
word
"
:
"
Where
"
}
]
},
"
tokenId
"
:
"
6144295408558b08dd000001
"
,
"
applicationId
"
:
"
154838659000009e
"
}
if
(
this
.
recrodEnd
(
testData
))
{
await
this
.
showVoiceGood
();
return
resolve
(
true
)
...
...
@@ -1193,8 +1193,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
// return true;
let
score
=
data
.
result
.
overall
;
let
isSuccess
=
this
.
checkWords
(
data
);
this
.
log
(
"
score->
"
+
score
);
this
.
log
(
"
isSuccess->
"
+
isSuccess
);
if
(
score
>=
70
&&
isSuccess
)
{
//提示成功
return
true
;
}
else
{
return
false
;
...
...
assets/l2_boardgame2/script/AI.ts
View file @
9b2f4475
...
...
@@ -8,7 +8,7 @@ export class AI {
Red
:
0
,
Blue
:
0
,
letter
:
""
,
current
:
"
Blue
"
,
current
:
"
Red
"
,
};
constructor
(
networkHelper
:
NetworkHelper
,
playerData
:
any
)
{
...
...
assets/l2_boardgame2/script/Server.ts
View file @
9b2f4475
...
...
@@ -58,7 +58,7 @@ export class GameServer {
name
:
this
.
nameList
.
splice
(
0
,
1
)[
0
],
uuid
:
player
.
uuid
,
color
:
player
.
uuid
==
this
.
networkHelper
.
room
.
roomInfo
.
owner
?
"
Blue
"
:
"
Red
"
,
player
.
uuid
==
this
.
networkHelper
.
room
.
roomInfo
.
owner
?
"
Red
"
:
"
Blue
"
,
isAI
:
player
.
isAI
,
headUrl
:
this
.
headUrls
.
splice
(
0
,
1
)[
0
],
});
...
...
@@ -82,7 +82,7 @@ export class GameServer {
Red
:
0
,
Blue
:
0
,
letter
:
""
,
current
:
"
Blue
"
,
current
:
"
Red
"
,
};
startGame
()
{
this
.
networkHelper
.
sendFrame
({
...
...
@@ -108,7 +108,7 @@ export class GameServer {
const
playerInfo
=
{
uuid
:
"
ai_
"
+
i
,
isAI
:
true
,
color
:
"
Red
"
,
color
:
"
Blue
"
,
};
this
.
_aiPlayerList
.
push
(
new
AI
(
this
.
networkHelper
,
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