Commit 2fab5dd6 authored by 18손재민's avatar 18손재민 Committed by 18류지석

공격 시 적절한 단어가 아니면 고치도록 함

parent 303a919d
......@@ -295,6 +295,7 @@ Input.inputField =
});
scene.input.keyboard.on('keydown-ENTER', function()
{
Input.convInput = Input.removeConVow(Input.convInput);
if (Input.attackMode) WordSpace.attack(Input.convInput, Input.attackOption.wordGrade);
else WordSpace.findWord(Input.convInput);
WordSpace.resetGameOverTimer();
......
......@@ -212,6 +212,7 @@ WordSpace.findWord = function(wordText)
WordSpace.attack = function(wordText, grade)
{
wordText = Input.removeConVow(wordText);
if (wordText != '')
{
console.log('attack ' + wordText + ', grade: ' + grade);
......
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