Commit 74b1f5ae authored by 18김재민's avatar 18김재민

공격 사운드 시간 감소, 대기방 음악 추가

parent 76ffa1d0
...@@ -5,7 +5,8 @@ Audio.loadSound = function(scene) ...@@ -5,7 +5,8 @@ Audio.loadSound = function(scene)
{ {
scene.load.audio('login', 'assets/sound/login.ogg'); scene.load.audio('login', 'assets/sound/login.ogg');
scene.load.audio('startGame', 'assets/sound/startGame.ogg'); scene.load.audio('startGame', 'assets/sound/startGame.ogg');
scene.load.audio('attack', 'assets/sound/attack.ogg'); scene.load.audio('attack', 'assets/sound/attackShort.ogg');
scene.load.audio('inRoom', 'assets/sound/roomBGM.ogg');
} }
Audio.playSound = function(scene, title) // 한 번만 재생할 때 사용 Audio.playSound = function(scene, title) // 한 번만 재생할 때 사용
......
...@@ -103,6 +103,7 @@ socket.on('syncRoomData', function(msg) // {num roomNum, [] players} ...@@ -103,6 +103,7 @@ socket.on('syncRoomData', function(msg) // {num roomNum, [] players}
}); });
socket.on('startGame', function() socket.on('startGame', function()
{ {
Audio.killSound(ScenesData.roomScene, 'inRoom');
game.scene.remove('roomScene'); game.scene.remove('roomScene');
game.scene.start('gameScene'); game.scene.start('gameScene');
}); });
......
...@@ -49,7 +49,7 @@ var roomScene = new Phaser.Class( ...@@ -49,7 +49,7 @@ var roomScene = new Phaser.Class(
create: function() create: function()
{ {
BackGround.drawRoom(this); BackGround.drawRoom(this);
Audio.loopSound(this, 'inRoom');
this.players = []; this.players = [];
this.isCounting = false; this.isCounting = false;
......
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