Add: Keyboard, KeyButton

This commit is contained in:
2018-06-11 09:46:49 +09:00
parent 37129bbe23
commit 8a820ff07f
4 changed files with 411 additions and 78 deletions
+10 -7
View File
@@ -51,11 +51,16 @@ class TypingPractice {
.addColor(textPreviewColor[0], 0);
this.hand_left = game.add.image(300, 600, "hand_left");
// let keyButton = new KeyButton(100, 400, 100, "A", "align_type");
new Keyboard();
this.hand_left = game.add.image(360, 680, "hand_left");
this.hand_left.scale.set(2);
this.hand_left.anchor.set(0.5);
this.hand_right = game.add.image(700, 600, "hand_right");
this.hand_right = game.add.image(660, 680, "hand_right");
this.hand_right.scale.set(2);
this.hand_right.anchor.set(0.5);
@@ -356,15 +361,13 @@ class TypingPractice {
}
TypingPractice.TYPING_CONTENT_PREVIEW_COUNT = 3;
TypingPractice.TYPING_CONTENT_PREVIEW_COUNT = 3;
TypingPractice.TYPING_CONTENT_DONE_COUNT = 3;
TypingPractice.TYPING_COUNT_PLUS_ENTER = 1;
TypingPractice.TYPING_COUNT_PLUS_ENTER = 1;
TypingPractice.OFFSET_RIGHT_ALIGN = 10;
TypingPractice.WORD_COUNT_FOR_STAGE = 10;
// if(isDebugMode())
// WORD_COUNT_FOR_STAGE = 3;
TypingPractice.WORD_COUNT_FOR_STAGE = 10;
TypingPractice.COLOR_CONTENT_WRONG = "#aaaaaa";
TypingPractice.COLOR_CONTENT_RIGHT = "#ffff4d";