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
e4c6d54c
Commit
e4c6d54c
authored
Jul 10, 2019
by
18류지석
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/sound'
parents
a1ff4ffd
73b1b9d4
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
249 additions
and
1 deletion
+249
-1
BGM_twochae.ogg
assets/sound/BGM_twochae.ogg
+0
-0
index.html
index.html
+1
-0
BGMsound.js
js/BGMsound.js
+28
-0
ScenesData.js
js/ScenesData.js
+2
-0
package-lock.json
package-lock.json
+216
-0
package.json
package.json
+2
-1
No files found.
assets/sound/BGM_twochae.ogg
0 → 100644
View file @
e4c6d54c
File added
index.html
View file @
e4c6d54c
...
...
@@ -12,6 +12,7 @@
<script
src=
"js/WordReader.js"
></script>
<script
src=
"js/CSVParsing.js"
></script>
<script
src=
"js/SelectWord.js"
></script>
<script
src=
"js/BGMsound.js"
></script>
</head>
<body>
<script
src=
"js/Client.js"
></script>
...
...
js/BGMsound.js
0 → 100644
View file @
e4c6d54c
var
Audio
=
Audio
||
{}
Audio
.
loadSound
=
function
(
scene
)
{
scene
.
load
.
audio
(
'
menuBackground
'
,
'
assets/sound/BGM_twochae.ogg
'
)
}
Audio
.
playSound
=
function
(
scene
)
{
bgm
=
scene
.
sound
.
play
(
'
menuBackground
'
)
}
Audio
.
pauseSound
=
function
(
scene
)
{
bgm
=
scene
.
sound
.
pause
()
}
Audio
.
resumeSound
=
function
(
scene
)
{
bgm
=
scene
.
sound
.
resume
()
}
Audio
.
stopSound
=
function
(
scene
)
{
bgm
=
scene
.
sound
.
stop
()
}
// var Audio = new Audio('assets/sound/BGM_twochae.ogg');
// Audio.play();
\ No newline at end of file
js/ScenesData.js
View file @
e4c6d54c
...
...
@@ -13,12 +13,14 @@ var menuScene = new Phaser.Class(
{
Input
.
inputField
.
loadImage
(
this
);
BackGround
.
loadImage
(
this
);
Audio
.
loadSound
(
this
);
},
create
:
function
()
{
Input
.
inputField
.
generate
(
this
,
Input
.
menuSceneEnterReaction
);
BackGround
.
drawMenu
(
this
);
Audio
.
playSound
(
this
);
}
});
...
...
package-lock.json
View file @
e4c6d54c
This diff is collapsed.
Click to expand it.
package.json
View file @
e4c6d54c
...
...
@@ -14,6 +14,7 @@
"license"
:
"
ISC
"
,
"dependencies"
:
{
"
express
"
:
"
^4.17.1
"
,
"
socket.io
"
:
"
^2.2.0
"
"
socket.io
"
:
"
^2.2.0
"
,
"
web-audio-player
"
:
"
^1.3.3
"
}
}
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