Commit 032f5d04 authored by 18김재민's avatar 18김재민

공격 사운드(들) 추가, 추가로 만든 후 선정 예정

parent 9b13860d
...@@ -5,6 +5,7 @@ Audio.loadSound = function(scene) ...@@ -5,6 +5,7 @@ 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/arrow.ogg');
} }
Audio.playSound = function(scene, title) // 한 번만 재생할 때 사용 Audio.playSound = function(scene, title) // 한 번만 재생할 때 사용
......
...@@ -386,6 +386,7 @@ WordSpace.attack = function(wordText, grade) ...@@ -386,6 +386,7 @@ WordSpace.attack = function(wordText, grade)
if (wordText != '') if (wordText != '')
{ {
console.log('attack ' + wordText + ', grade: ' + grade); console.log('attack ' + wordText + ', grade: ' + grade);
Audio.playSound(ScenesData.gameScene, 'attack');
let toSend = []; let toSend = [];
WordSpace.nameGroup.forEach(function(element) WordSpace.nameGroup.forEach(function(element)
{ {
......
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