Commit 2f14acfd authored by 18손재민's avatar 18손재민 Committed by 18손재민

얻은 호패들을 텍스트로 보여줌

parent 4e3b26cf
......@@ -58,6 +58,8 @@ var gameScene = new Phaser.Class(
WordSpace.varAdjustCycle.resetCycle(this, 100, 0, true);
WordSpace.setPlayerTyping.initiate(this);
WordSpace.nameWordTextForTest = WordSpace.gameSceneForTest.add.text(50,400,'현재 가진 호패들 : 없음').setDepth(10).setColor('#000000');
},
update: function()
......@@ -66,6 +68,13 @@ var gameScene = new Phaser.Class(
{
element.attract();
});
let tempNames = '';
WordSpace.nameGroup.forEach(function(element)
{
tempNames += element.wordText + '\n';
});
WordSpace.nameWordTextForTest.setText('현재 가진 호패들 : \n' + tempNames);
WordSpace.weightTextObjForTest.setText('뇌의 무게: (현재) '+WordSpace.totalWeight+' / '+ WordSpace.brainCapacity+' (전체)');
WordSpace.setPlayerTyping.add('');
}
......
......@@ -3,6 +3,7 @@ var WordSpace = WordSpace || {};
// for test
WordSpace.gameSceneForTest = null;
WordSpace.weightTextObjForTest = null;
WordSpace.nameWordTextForTest = null;
WordSpace.isImageLoaded = 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