Commit 8f50f148 authored by 18손재민's avatar 18손재민

반격시 호패 넣기 wip2

parent a5b33590
......@@ -61,6 +61,15 @@ var gameScene = new Phaser.Class(
WordSpace.nameWordTextForTest = WordSpace.gameSceneForTest.add.text(50,400,'현재 가진 호패들 : 없음').setDepth(10).setColor('#000000');
WordSpace.nameQueue.initiate();
RoomData.players.forEach(function(element)
{
if(element.nickname == PlayerData.nickname)
{
RoomData.myself = element;
return;
}
});
console.log(RoomData.myself);
},
update: function()
......
......@@ -419,7 +419,7 @@ WordSpace.nameQueue =
tempQueue[tempIdx] = tempElement;
}
tempQueue.forEach(function(element){
if(element.nickname != PlayerData.nickname && element.isAlive)
if(element.ownerId != PlayerData.idNum && element.isAlive)
WordSpace.nameQueue.queue.push(element);
});
},
......
......@@ -24,6 +24,7 @@ PlayerData.nickname = '홍길동'; //플레이어 닉네임
// 현재 들어가있는 Game Room의 정보
var RoomData = RoomData || {};
RoomData.myself = null;
RoomData.roomNum = -1;
RoomData.players = null;
RoomData.aliveCount = -1;
\ No newline at end of file
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