Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP_L5R2_Boardgame
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
OP_L5R2_Boardgame
Commits
a04d4a41
Commit
a04d4a41
authored
Oct 31, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
64c5d49f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
350 additions
and
349 deletions
+350
-349
OP_L5R2_Boardgame.fire
assets/OP_L5R2_Boardgame/scene/OP_L5R2_Boardgame.fire
+347
-348
OP_L5R2_Boardgame.ts
assets/OP_L5R2_Boardgame/scene/OP_L5R2_Boardgame.ts
+2
-0
Server.ts
assets/OP_L5R2_Boardgame/script/Server.ts
+1
-1
No files found.
assets/OP_L5R2_Boardgame/scene/OP_L5R2_Boardgame.fire
View file @
a04d4a41
This diff is collapsed.
Click to expand it.
assets/OP_L5R2_Boardgame/scene/OP_L5R2_Boardgame.ts
View file @
a04d4a41
...
@@ -496,6 +496,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -496,6 +496,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
playLocalAudio
(
"
piece
"
);
this
.
playLocalAudio
(
"
piece
"
);
await
this
.
pieceMove
(
node
,
nowIdx
,
nextIdx
);
await
this
.
pieceMove
(
node
,
nowIdx
,
nextIdx
);
//todo
//todo
this
.
playLocalAudio
(
"
wrong
"
);
await
this
.
pieceGoBack
(
node
,
node
[
"
nowIndex
"
],
nowIdx
);
await
this
.
pieceGoBack
(
node
,
node
[
"
nowIndex
"
],
nowIdx
);
}
}
...
@@ -1003,6 +1004,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -1003,6 +1004,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
log
(
"
rollTheDice done
"
);
this
.
log
(
"
rollTheDice done
"
);
if
(
this
.
_status
.
back
)
{
if
(
this
.
_status
.
back
)
{
await
this
.
peaceJumpAndBack
();
await
this
.
peaceJumpAndBack
();
this
.
roundEndCheck
();
this
.
roundEndCheck
();
}
else
{
}
else
{
...
...
assets/OP_L5R2_Boardgame/script/Server.ts
View file @
a04d4a41
...
@@ -162,7 +162,7 @@ export class GameServer {
...
@@ -162,7 +162,7 @@ export class GameServer {
// } else {
// } else {
// step = 1;
// step = 1;
// }
// }
// step =
15
// step =
3
step
=
Math
.
min
(
step
,
this
.
_totalStep
-
1
-
nowStep
);
step
=
Math
.
min
(
step
,
this
.
_totalStep
-
1
-
nowStep
);
console
.
log
(
"
random step ===
"
+
step
);
console
.
log
(
"
random step ===
"
+
step
);
...
...
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