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
407bbe0c
Commit
407bbe0c
authored
Jul 28, 2022
by
杨一航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
音效调整
parent
12342e0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
87 deletions
+10
-87
boardgame_yyh.ts
assets/boardgame_yyh/scene/boardgame_yyh.ts
+5
-5
defaultData.ts
assets/boardgame_yyh/script/defaultData.ts
+5
-82
No files found.
assets/boardgame_yyh/scene/boardgame_yyh.ts
View file @
407bbe0c
...
...
@@ -250,16 +250,16 @@ export default class SceneComponent extends MyCocosSceneComponent {
this
.
cat
.
getChildByName
(
"
btn
"
).
on
(
"
click
"
,
()
=>
{
this
.
catAni
();
this
.
catAni
(
true
);
})
}
catAni
()
{
catAni
(
playAudio
?
)
{
let
state
=
this
.
_status
.
state
if
(
!
this
.
isMySide
)
{
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
normal
"
,
0
);
this
.
playAudioByUrl
(
this
.
data
.
waitingTurn
)
playAudio
&&
this
.
playAudioByUrl
(
this
.
data
.
waitingTurn
)
return
}
if
(
state
==
-
1
)
{
...
...
@@ -267,9 +267,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
else
if
(
state
==
0
)
{
this
.
cat
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
"
begin
"
,
0
);
this
.
playAudioByUrl
(
this
.
data
.
waitingWheel
)
playAudio
&&
this
.
playAudioByUrl
(
this
.
data
.
waitingWheel
)
}
else
if
(
state
==
1
)
{
this
.
playAudioByUrl
(
this
.
data
.
waitingPiece
)
playAudio
&&
this
.
playAudioByUrl
(
this
.
data
.
waitingPiece
)
}
else
if
(
state
==
2
)
{
...
...
assets/boardgame_yyh/script/defaultData.ts
View file @
407bbe0c
export
const
defaultData
=
{
gameStartAudio
:
"
gameStartAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/7c18e0838dcf0707f885842ed09e1579.mp3
"
,
gameLoadingAudio
:
"
gameLoadingAudio
"
:
"
http://staging-teach.cdn.ireadabc.com/6b3846cee6afa2ae450234aeec835beb.mp3
"
,
waitingWheel
:
"
waitingWheel
"
:
"
http://staging-teach.cdn.ireadabc.com/23376490a9ba0f4a3fe0618fc1c935e1.mp3
"
,
waitingPiece
:
"
waitingPiece
"
:
"
http://staging-teach.cdn.ireadabc.com/b44fa51172b19b555fda30717c773027.mp3
"
,
waitingTurn
:
"
waitingTurn
"
:
"
http://staging-teach.cdn.ireadabc.com/a6a5c388c636bc6d063946e91b4bd21a.mp3
"
,
cardDatas
:
[
{
id
:
0
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
bat
"
,
url
:
""
,
},
{
id
:
1
,
rJumpId
:
5
,
wJumpId
:
null
,
word
:
"
man
"
,
url
:
""
,
},
{
id
:
2
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
pad
"
,
url
:
""
,
},
{
id
:
3
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
dam
"
,
url
:
""
,
},
{
id
:
4
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
map
"
,
url
:
""
,
},
{
id
:
5
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
ant
"
,
url
:
""
,
},
{
id
:
6
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
can
"
,
url
:
""
,
},
{
id
:
7
,
rJumpId
:
12
,
wJumpId
:
null
,
word
:
"
cam
"
,
url
:
""
,
},
{
id
:
8
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
mat
"
,
url
:
""
,
},
{
id
:
9
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
cat
"
,
url
:
""
,
},
{
id
:
10
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
fan
"
,
url
:
""
,
},
{
id
:
11
,
rJumpId
:
19
,
wJumpId
:
null
,
word
:
"
tap
"
,
url
:
""
,
},
{
id
:
12
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
cap
"
,
url
:
""
,
},
{
id
:
13
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
bag
"
,
url
:
""
,
},
{
id
:
14
,
rJumpId
:
18
,
wJumpId
:
null
,
word
:
"
yam
"
,
url
:
""
,
},
{
id
:
15
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
yak
"
,
url
:
""
,
},
{
id
:
16
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
rat
"
,
url
:
""
,
},
{
id
:
17
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
rag
"
,
url
:
""
,
},
{
id
:
18
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
pan
"
,
url
:
""
,
},
{
id
:
19
,
rJumpId
:
23
,
wJumpId
:
null
,
word
:
"
dad
"
,
url
:
""
,
},
{
id
:
20
,
rJumpId
:
22
,
wJumpId
:
null
,
word
:
"
jam
"
,
url
:
""
,
},
{
id
:
21
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
ax
"
,
url
:
""
,
},
{
id
:
22
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
hat
"
,
url
:
""
,
},
{
id
:
23
,
rJumpId
:
null
,
wJumpId
:
null
,
word
:
"
map
"
,
url
:
""
,
},
]
};
\ 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