Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
wildfirecode13
xiaoxiaole
Commits
3d1bfd2b
Commit
3d1bfd2b
authored
Mar 16, 2020
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f83a4e52
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
0 deletions
+7
-0
haha.mp3
egret/resource/assets/sounds/haha.mp3
+0
-0
mapBg.mp3
egret/resource/assets/sounds/mapBg.mp3
+0
-0
playBg.mp3
egret/resource/assets/sounds/playBg.mp3
+0
-0
default.res.json
egret/resource/default.res.json
+5
-0
MainScene.ts
egret/src/mainScene/MainScene.ts
+1
-0
soundCtrl.ts
egret/src/soundCtrl.ts
+1
-0
No files found.
egret/resource/assets/sounds/haha.mp3
0 → 100644
View file @
3d1bfd2b
File added
egret/resource/assets/sounds/mapBg.mp3
View file @
3d1bfd2b
No preview for this file type
egret/resource/assets/sounds/playBg.mp3
View file @
3d1bfd2b
No preview for this file type
egret/resource/default.res.json
View file @
3d1bfd2b
...
...
@@ -4942,6 +4942,11 @@
"url"
:
"assets/common/arrowbg.png"
,
"type"
:
"image"
,
"name"
:
"arrowbg_png"
},
{
"url"
:
"assets/sounds/haha.mp3"
,
"type"
:
"sound"
,
"name"
:
"haha_mp3"
}
]
}
\ No newline at end of file
egret/src/mainScene/MainScene.ts
View file @
3d1bfd2b
...
...
@@ -2159,6 +2159,7 @@ export default class MainScene extends Scene {
this
.
commonContinuityTimes
=
1
;
this
.
effectContinuityTimes
=
1
;
if
(
movieClips
[
"bonusTime"
])
{
playSound
(
SoundType
.
bonusTime
);
this
.
addChild
(
movieClips
[
"bonusTime"
])
movieClips
[
"bonusTime"
].
gotoAndPlay
(
1
,
true
)
setTimeout
(()
=>
{
...
...
egret/src/soundCtrl.ts
View file @
3d1bfd2b
...
...
@@ -82,6 +82,7 @@ export enum SoundType {
playBg
=
'playBg'
,
line
=
'line'
,
bonusShoot
=
'bonusShoot'
,
bonusTime
=
'haha'
,
}
export
const
playSound
=
(
type
:
SoundType
)
=>
{
...
...
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