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
73b1b9d4
Commit
73b1b9d4
authored
Jul 09, 2019
by
18김재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BGM 추가, 음악 지속적으로 나오게 해야함
parent
36b20ba1
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
249 additions
and
1 deletion
+249
-1
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.
index.html
View file @
73b1b9d4
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
<script
src=
"js/WordReader.js"
></script>
<script
src=
"js/WordReader.js"
></script>
<script
src=
"js/CSVParsing.js"
></script>
<script
src=
"js/CSVParsing.js"
></script>
<script
src=
"js/SelectWord.js"
></script>
<script
src=
"js/SelectWord.js"
></script>
<script
src=
"js/BGMsound.js"
></script>
</head>
</head>
<body>
<body>
<script
src=
"js/Client.js"
></script>
<script
src=
"js/Client.js"
></script>
...
...
js/BGMsound.js
0 → 100644
View file @
73b1b9d4
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 @
73b1b9d4
...
@@ -13,12 +13,14 @@ var menuScene = new Phaser.Class(
...
@@ -13,12 +13,14 @@ var menuScene = new Phaser.Class(
{
{
Input
.
inputField
.
loadImage
(
this
);
Input
.
inputField
.
loadImage
(
this
);
BackGround
.
loadImage
(
this
);
BackGround
.
loadImage
(
this
);
Audio
.
loadSound
(
this
);
},
},
create
:
function
()
create
:
function
()
{
{
Input
.
inputField
.
generate
(
this
,
Input
.
menuSceneEnterReaction
);
Input
.
inputField
.
generate
(
this
,
Input
.
menuSceneEnterReaction
);
BackGround
.
drawMenu
(
this
);
BackGround
.
drawMenu
(
this
);
Audio
.
playSound
(
this
);
}
}
});
});
...
...
package-lock.json
View file @
73b1b9d4
This diff is collapsed.
Click to expand it.
package.json
View file @
73b1b9d4
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
"license"
:
"
ISC
"
,
"license"
:
"
ISC
"
,
"dependencies"
:
{
"dependencies"
:
{
"
express
"
:
"
^4.17.1
"
,
"
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