Add: Keyboard, KeyButton
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user