Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LWD_3
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
LWD_3
Commits
598625fd
Commit
598625fd
authored
Sep 24, 2021
by
Lwd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aaaa
parent
d399d96e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
game.js
play/assets/LWD_3/script/game/game.js
+1
-1
item.js
play/assets/LWD_3/script/game/item.js
+7
-2
speaker.js
play/assets/LWD_3/script/game/speaker.js
+2
-2
No files found.
play/assets/LWD_3/script/game/game.js
View file @
598625fd
...
...
@@ -144,7 +144,7 @@ var game = cc.Class({
//五秒没操作
hintPlay
:
function
()
{
this
.
playLionDragon
(
"
openmouth
"
)
//
this.playLionDragon("openmouth")
this
.
playCatDragon
(
"
begin
"
)
g
.
speaker
.
inst
.
playEffect
(
g
.
enum
.
E_Audio
.
CatHint
);
...
...
play/assets/LWD_3/script/game/item.js
View file @
598625fd
...
...
@@ -131,13 +131,14 @@ cc.Class({
g
.
data_mgr
.
nowNum
-=
1
;
//狮子猫动画
g
.
game
.
inst
.
playCatDragon
(
"
right
"
);
g
.
game
.
inst
.
playLionDragon
(
"
chew
"
);
//先播放错误声音
g
.
speaker
.
inst
.
playEffect
(
g
.
enum
.
E_Audio
.
Right
);
setTimeout
(()
=>
{
g
.
game
.
inst
.
playCatDragon
(
"
right
"
);
let
num
=
g
.
utils
.
randFromTo_Int
(
g
.
enum
.
E_Audio
.
CatRight1
,
g
.
enum
.
E_Audio
.
CatRight2
);
//先播放错误声音
...
...
@@ -192,7 +193,11 @@ cc.Class({
let
num
=
g
.
utils
.
randFromTo_Int
(
g
.
enum
.
E_Audio
.
CatError1
,
g
.
enum
.
E_Audio
.
CatError2
);
//先播放错误声音
g
.
speaker
.
inst
.
playEffect
(
num
);
g
.
speaker
.
inst
.
playEffect
(
num
,
()
=>
{
g
.
game
.
inst
.
playCatDragon
(
"
normal
"
);
});
g
.
game
.
inst
.
playCatDragon
(
"
wrong
"
);
g
.
game
.
inst
.
playLionDragon
(
"
normal
"
);
},
500
)
},
...
...
play/assets/LWD_3/script/game/speaker.js
View file @
598625fd
...
...
@@ -100,8 +100,8 @@ var speaker = cc.Class({
//播放音效
playEffect
:
function
(
num
)
{
g
.
snd_mgr
.
playEffect
(
this
.
eff_audio
[
num
]);
playEffect
:
function
(
num
,
cb
)
{
g
.
snd_mgr
.
playEffect
(
this
.
eff_audio
[
num
]
,
cb
);
},
...
...
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