Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sejong25
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Tear of Sejong
sejong25
Commits
a355eadd
Commit
a355eadd
authored
Jul 10, 2019
by
18김재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
음악 처음부터 시작, 반복 성공 / 넘어가면 멈추게 해야함
parent
2fdf73fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
BGMsound.js
js/BGMsound.js
+9
-7
No files found.
js/BGMsound.js
View file @
a355eadd
...
...
@@ -2,27 +2,29 @@ var Audio = Audio || {}
Audio
.
loadSound
=
function
(
scene
)
{
scene
.
load
.
audio
(
'
menuBackground
'
,
'
assets/sound/BGM_twochae.ogg
'
)
scene
.
load
.
audio
(
'
BGM
'
,
'
assets/sound/BGM_twochae.ogg
'
);
}
Audio
.
playSound
=
function
(
scene
)
{
bgm
=
scene
.
sound
.
play
(
'
menuBackground
'
)
var
bgm
=
scene
.
sound
.
add
(
'
BGM
'
);
bgm
.
setLoop
(
true
);
bgm
.
play
();
}
Audio
.
pauseSound
=
function
(
scene
)
{
bgm
=
scene
.
sound
.
pause
()
bgm
=
scene
.
sound
.
pause
()
;
}
Audio
.
resumeSound
=
function
(
scene
)
{
bgm
=
scene
.
sound
.
resume
()
bgm
=
scene
.
sound
.
resume
()
;
}
Audio
.
stopSound
=
function
(
scene
)
{
bgm
=
scene
.
sound
.
stop
()
bgm
=
scene
.
sound
.
stop
()
;
}
// var Audio = new Audio('assets/sound/BGM_twochae.ogg');
// Audio.play();
\ 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