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
e328b615
Commit
e328b615
authored
Jul 14, 2019
by
18손재민
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/sound'
# Conflicts: # GameServer.js
parents
d18488f1
4da8cb65
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
9 deletions
+17
-9
login.ogg
assets/sound/login.ogg
+0
-0
startGame.ogg
assets/sound/startGame.ogg
+0
-0
BGMsound.js
js/BGMsound.js
+14
-7
ScenesData.js
js/ScenesData.js
+3
-2
No files found.
assets/sound/
BGM_twochae
.ogg
→
assets/sound/
login
.ogg
View file @
e328b615
File moved
assets/sound/startGame.ogg
0 → 100644
View file @
e328b615
File added
js/BGMsound.js
View file @
e328b615
...
@@ -2,27 +2,34 @@ var Audio = Audio || {}
...
@@ -2,27 +2,34 @@ var Audio = Audio || {}
Audio
.
loadSound
=
function
(
scene
)
Audio
.
loadSound
=
function
(
scene
)
{
{
scene
.
load
.
audio
(
'
menuBackground
'
,
'
assets/sound/BGM_twochae.ogg
'
)
scene
.
load
.
audio
(
'
BGM
'
,
'
assets/sound/login.ogg
'
);
}
}
Audio
.
playSound
=
function
(
scene
)
Audio
.
playSound
=
function
(
scene
)
{
{
bgm
=
scene
.
sound
.
play
(
'
menuBackground
'
)
var
bgm
=
scene
.
sound
.
add
(
'
BGM
'
);
bgm
.
setLoop
(
true
);
bgm
.
play
();
console
.
log
(
'
PlayMusic
'
);
}
}
Audio
.
pauseSound
=
function
(
scene
)
Audio
.
pauseSound
=
function
(
scene
)
{
{
bgm
=
scene
.
sound
.
pause
()
var
bgm
=
scene
.
sound
.
add
(
'
BGM
'
);
bgm
.
pause
();
}
}
Audio
.
resumeSound
=
function
(
scene
)
Audio
.
resumeSound
=
function
(
scene
)
{
{
bgm
=
scene
.
sound
.
resume
()
var
bgm
=
scene
.
sound
.
add
(
'
BGM
'
);
bgm
=
scene
.
sound
.
resume
();
}
}
Audio
.
stopSound
=
function
(
scene
)
Audio
.
stopSound
=
function
(
scene
)
{
{
bgm
=
scene
.
sound
.
stop
()
var
bgm
=
scene
.
sound
.
add
(
'
BGM
'
);
bgm
.
stop
();
console
.
log
(
'
StopMusic
'
);
}
}
// var Audio = new Audio('assets/sound/BGM_twochae.ogg');
// Audio.play();
\ No newline at end of file
js/ScenesData.js
View file @
e328b615
...
@@ -18,9 +18,9 @@ var menuScene = new Phaser.Class(
...
@@ -18,9 +18,9 @@ var menuScene = new Phaser.Class(
create
:
function
()
create
:
function
()
{
{
Audio
.
playSound
(
this
);
Input
.
inputField
.
generate
(
this
,
Input
.
menuSceneEnterReaction
);
Input
.
inputField
.
generate
(
this
,
Input
.
menuSceneEnterReaction
);
BackGround
.
drawMenu
(
this
);
BackGround
.
drawMenu
(
this
);
Audio
.
playSound
(
this
);
}
}
});
});
...
@@ -95,6 +95,7 @@ var gameScene = new Phaser.Class(
...
@@ -95,6 +95,7 @@ var gameScene = new Phaser.Class(
update
:
function
()
update
:
function
()
{
{
WordSpace
.
wordForcedGroup
.
forEach
(
function
(
element
)
WordSpace
.
wordForcedGroup
.
forEach
(
function
(
element
)
{
{
element
.
attract
();
element
.
attract
();
...
...
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