Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
l2_boardgame2_tree
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_tree
Commits
123f50a1
Commit
123f50a1
authored
Jul 25, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传测试
parent
19e71838
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
11 deletions
+18
-11
l2_boardgame2_tree.ts
assets/l2_boardgame2_tree/scene/l2_boardgame2_tree.ts
+7
-5
BoardGame2_LoadingLayer.ts
assets/l2_boardgame2_tree/script/BoardGame2_LoadingLayer.ts
+1
-1
MyCocosSceneComponent.ts
assets/l2_boardgame2_tree/script/MyCocosSceneComponent.ts
+5
-0
defaultData.ts
assets/l2_boardgame2_tree/script/defaultData.ts
+5
-5
No files found.
assets/l2_boardgame2_tree/scene/l2_boardgame2_tree.ts
View file @
123f50a1
...
...
@@ -25,11 +25,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
addPreloadAudio
()
{
// TODO 根据自己的配置预加载音频资源
this
.
_audioResList
.
push
({
url
:
this
.
data
.
gameStartAudio
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
gameLoadingAudio
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
waitingWheel
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
waitingPiece
});
this
.
_audioResList
.
push
({
url
:
this
.
data
.
waitingTurn
});
this
.
data
.
gameStartAudio
&&
this
.
_audioResList
.
push
({
url
:
this
.
data
.
gameStartAudio
});
this
.
data
.
gameLoadingAudio
&&
this
.
_audioResList
.
push
({
url
:
this
.
data
.
gameLoadingAudio
});
this
.
data
.
waitingWheel
&&
this
.
_audioResList
.
push
({
url
:
this
.
data
.
waitingWheel
});
this
.
data
.
waitingPiece
&&
this
.
_audioResList
.
push
({
url
:
this
.
data
.
waitingPiece
});
this
.
data
.
waitingTurn
&&
this
.
_audioResList
.
push
({
url
:
this
.
data
.
waitingTurn
});
}
addPreloadAnima
()
{
}
...
...
@@ -924,6 +924,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
this
.
_status
.
current
==
playerMe
.
color
)
{
// let rightBlock = this.getRightBlock();
let
rightBlock
=
this
.
getCurrentBlock
();
let
idx
=
this
.
getNextRightIdx
();
const
pieceRed
=
cc
.
find
(
"
Canvas/bg/chessBoard/pieceRed
"
);
const
pieceBlue
=
cc
.
find
(
"
Canvas/bg/chessBoard/pieceBlue
"
);
const
riData
=
rightBlock
.
getComponent
(
"
BoardGame2_ItemData
"
);
...
...
@@ -933,6 +934,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
await
this
.
pieceFindRightBlock
(
rightBlock
,
idx
);
}
this
.
updateProgress
(
idx
);
pieceRed
[
"
cantMove
"
]
=
true
;
pieceBlue
[
"
cantMove
"
]
=
true
;
this
.
_status
.
letter
=
""
;
...
...
assets/l2_boardgame2_tree/script/BoardGame2_LoadingLayer.ts
View file @
123f50a1
...
...
@@ -3,7 +3,7 @@ import { asyncPlayDragonBoneAnimation } from "./util";
const
{
ccclass
,
property
}
=
cc
.
_decorator
;
@
ccclass
export
default
class
SceneComponent
extends
cc
.
Component
{
export
default
class
L2_boardgame2_tree
SceneComponent
extends
cc
.
Component
{
ctor
()
{
}
...
...
assets/l2_boardgame2_tree/script/MyCocosSceneComponent.ts
View file @
123f50a1
...
...
@@ -192,6 +192,11 @@ export class MyCocosSceneComponent extends cc.Component {
});
}
});
}
else
{
resolve
(
0
);
if
(
cb
)
{
cb
();
}
}
});
}
...
...
assets/l2_boardgame2_tree/script/defaultData.ts
View file @
123f50a1
export
const
defaultData
=
{
gameStartAudio
:
"
http://staging-teach.cdn.ireadabc.com/7c18e0838dcf0707f885842ed09e1579.mp3
"
,
""
,
gameLoadingAudio
:
"
http://staging-teach.cdn.ireadabc.com/6b3846cee6afa2ae450234aeec835beb.mp3
"
,
""
,
waitingWheel
:
"
http://staging-teach.cdn.ireadabc.com/23376490a9ba0f4a3fe0618fc1c935e1.mp3
"
,
""
,
waitingPiece
:
"
http://staging-teach.cdn.ireadabc.com/b44fa51172b19b555fda30717c773027.mp3
"
,
""
,
waitingTurn
:
"
http://staging-teach.cdn.ireadabc.com/a6a5c388c636bc6d063946e91b4bd21a.mp3
"
,
""
,
};
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