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
9344bdc9
Commit
9344bdc9
authored
Jul 14, 2019
by
18김재민
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
게임 시작 징소리 추가
parent
4da8cb65
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
BGMsound.js
js/BGMsound.js
+11
-6
ScenesData.js
js/ScenesData.js
+3
-2
No files found.
js/BGMsound.js
View file @
9344bdc9
...
@@ -2,16 +2,21 @@ var Audio = Audio || {}
...
@@ -2,16 +2,21 @@ var Audio = Audio || {}
Audio
.
loadSound
=
function
(
scene
)
Audio
.
loadSound
=
function
(
scene
)
{
{
scene
.
load
.
audio
(
'
BGM
'
,
'
assets/sound/login.ogg
'
);
scene
.
load
.
audio
(
'
login
'
,
'
assets/sound/login.ogg
'
);
scene
.
load
.
audio
(
'
startGame
'
,
'
assets/sound/startGame.ogg
'
);
}
}
Audio
.
play
Sound
=
function
(
scene
)
Audio
.
play
Login
=
function
(
scene
)
{
{
var
bgm
=
scene
.
sound
.
add
(
'
BGM
'
);
var
bgm
=
scene
.
sound
.
add
(
'
login
'
);
bgm
.
setLoop
(
true
);
bgm
.
setLoop
(
true
);
bgm
.
play
();
bgm
.
play
();
console
.
log
(
'
PlayMusic
'
);
}
Audio
.
playStart
=
function
(
scene
)
{
var
bgm
=
scene
.
sound
.
add
(
'
startGame
'
);
bgm
.
play
();
}
}
Audio
.
pauseSound
=
function
(
scene
)
Audio
.
pauseSound
=
function
(
scene
)
...
@@ -28,8 +33,8 @@ Audio.resumeSound = function(scene)
...
@@ -28,8 +33,8 @@ Audio.resumeSound = function(scene)
Audio
.
stopSound
=
function
(
scene
)
Audio
.
stopSound
=
function
(
scene
)
{
{
var
bgm
=
scene
.
sound
.
add
(
'
BGM
'
);
var
bgm
=
scene
.
sound
.
add
(
'
login
'
);
bgm
.
setLoop
(
false
);
bgm
.
stop
();
bgm
.
stop
();
console
.
log
(
'
StopMusic
'
);
}
}
js/ScenesData.js
View file @
9344bdc9
...
@@ -18,7 +18,7 @@ var menuScene = new Phaser.Class(
...
@@ -18,7 +18,7 @@ var menuScene = new Phaser.Class(
create
:
function
()
create
:
function
()
{
{
Audio
.
play
Sound
(
this
);
Audio
.
play
Login
(
this
);
Input
.
inputField
.
generate
(
this
,
Input
.
menuSceneEnterReaction
);
Input
.
inputField
.
generate
(
this
,
Input
.
menuSceneEnterReaction
);
BackGround
.
drawMenu
(
this
);
BackGround
.
drawMenu
(
this
);
}
}
...
@@ -41,13 +41,14 @@ var gameScene = new Phaser.Class(
...
@@ -41,13 +41,14 @@ var gameScene = new Phaser.Class(
WordSpace
.
loadImage
(
this
);
WordSpace
.
loadImage
(
this
);
Input
.
inputField
.
loadImage
(
this
);
Input
.
inputField
.
loadImage
(
this
);
CSVParsing
.
loadText
(
this
);
CSVParsing
.
loadText
(
this
);
Audio
.
loadSound
(
this
);
},
},
create
:
function
()
create
:
function
()
{
{
CSVParsing
.
CSVParse
(
this
);
CSVParsing
.
CSVParse
(
this
);
BackGround
.
drawBrain
(
this
);
BackGround
.
drawBrain
(
this
);
Audio
.
playStart
(
this
);
WordSpace
.
wordPhysicsGroup
=
this
.
physics
.
add
.
group
();
WordSpace
.
wordPhysicsGroup
=
this
.
physics
.
add
.
group
();
Input
.
inputField
.
generate
(
this
,
Input
.
gameSceneEnterReaction
);
Input
.
inputField
.
generate
(
this
,
Input
.
gameSceneEnterReaction
);
...
...
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