Commit 099824bd authored by 18김재민's avatar 18김재민

단어 사라지는 소리 적용

parent 9a7701b1
......@@ -154,6 +154,8 @@ socket.on('someoneAttacked', function(msg) // {Id attackerId, Id victimId}
});
socket.on('attacked', function(msg) // object attackData
{
Audio.playSound(ScenesData.gameScene, 'Bagazi');
let attackedEvent = new Cycle(function()
{
if(!WordSpace.isInvincible)
......@@ -225,6 +227,9 @@ socket.on('defeat', function(msg) // object player
{
let lastAttacker = RoomData.findPlayer(msg.lastAttack.attackerId);
let attackWord = msg.lastAttack.word;
Audio.playSound(ScenesData.gameScene, 'killLog');
console.log(victim.nickname + ' defeated by ' + lastAttacker.nickname + ', with ' + msg.lastAttack.word);
if(WordSpace.lastAttackGroup.length != 0)
{
......
......@@ -59,6 +59,8 @@ class WordObject
}, 200);
RoomData.myself.playerImage.play(WordSpace.pyeongminAnims[Enums.characterAnim.write]);
RoomData.myself.playerImage.anims.chain(WordSpace.pyeongminAnims[Enums.characterAnim.sit]);
Audio.playSound(ScenesData.gameScene, 'killWord');
}
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