Commit f74f7ffc authored by 18김재민's avatar 18김재민

음악 처음부터 시작, 반복

parent a355eadd
var GameServer = GameServer || {};
GameServer.Phase = {READY: 0, START: 1, MAIN: 2, MUSIC: 3};
GameServer.startCount = 4;
GameServer.startCount = 1;
GameServer.currentPlayer = [];
GameServer.playingRoom = [];
......
......@@ -10,21 +10,26 @@ Audio.playSound = function(scene)
var bgm = scene.sound.add('BGM');
bgm.setLoop(true);
bgm.play();
console.log('PlayMusic');
}
Audio.pauseSound = function(scene)
{
bgm = scene.sound.pause();
var bgm = scene.sound.add('BGM');
bgm.pause();
}
Audio.resumeSound = function(scene)
{
var bgm = scene.sound.add('BGM');
bgm = scene.sound.resume();
}
Audio.stopSound = function(scene)
{
bgm = scene.sound.stop();
var bgm = scene.sound.add('BGM');
bgm.stop();
console.log('StopMusic');
}
......@@ -18,9 +18,9 @@ var menuScene = new Phaser.Class(
create: function()
{
Audio.playSound(this);
Input.inputField.generate(this, Input.menuSceneEnterReaction);
BackGround.drawMenu(this);
Audio.playSound(this);
}
});
......@@ -47,7 +47,7 @@ var gameScene = new Phaser.Class(
{
CSVParsing.CSVParse(this);
BackGround.drawBrain(this);
WordSpace.wordPhysicsGroup = this.physics.add.group();
Input.inputField.generate(this, Input.gameSceneEnterReaction);
......@@ -80,6 +80,7 @@ var gameScene = new Phaser.Class(
update: function()
{
WordSpace.wordForcedGroup.forEach(function(element)
{
element.attract();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment