Add: english_upper_lower

This commit is contained in:
2018-08-25 18:35:00 +09:00
parent 8c37a337c1
commit 89eb5af931
8 changed files with 172 additions and 130 deletions
+10 -4
View File
@@ -22,8 +22,7 @@ class TypingPractice {
this.typingScore = new TypingScore();
let STAGE_TIMER_SEC = 5;
this.stageTimer = new StageTimer( STAGE_TIMER_SEC, () => {
this.stageTimer = new StageTimer( TypingPractice.STAGE_TIMER_SEC, () => {
self.isOnStage = false;
// self.goResult();
@@ -39,7 +38,7 @@ class TypingPractice {
let TYPING_CONTENT_Y = 200;
textStyleBasic.font = "bold 84px Arial";
textStyleBasic.font = "bold 84px Times New Roman";
this.textTypingContent = game.add.text(game.world.centerX, TYPING_CONTENT_Y, "", textStyleBasic)
.setShadow(3, 3, 'rgba(0, 0, 0, 1)', 2)
.addColor(TypingPractice.COLOR_CONTENT_INPUT, 0);
@@ -207,6 +206,7 @@ class TypingPractice {
case "english_basic":
testContent = englishBasicWordList;
/*
testContent = [
"a",
"C",
@@ -223,6 +223,7 @@ class TypingPractice {
"k",
"N",
];
*/
break;
case "english_left_upper":
testContent = englishLeftUpperWordList;
@@ -239,6 +240,9 @@ class TypingPractice {
case "english_right_lower":
testContent = englishRightLowerWordList;
break;
case "english_upper_lower":
testContent = englishUpperLowerWordList;
break;
case "english_word":
testContent = englishWordList;
break;
@@ -286,6 +290,7 @@ class TypingPractice {
showHighlightKey() {
let typingText = this.typingRandomContents[this.typingIndex];
console.log(typingText);
if(typingText === undefined)
return;
@@ -294,6 +299,7 @@ class TypingPractice {
moveHands() {
let typingText = this.typingRandomContents[this.typingIndex];
console.log(typingText);
if(typingText === undefined)
return;
@@ -377,7 +383,7 @@ TypingPractice.TYPING_COUNT_PLUS_ENTER = 1;
TypingPractice.OFFSET_RIGHT_ALIGN = 10;
TypingPractice.WORD_COUNT_FOR_STAGE = 10;
TypingPractice.STAGE_TIMER_SEC = 60;
TypingPractice.COLOR_CONTENT_INPUT = "#dddddd";
TypingPractice.COLOR_BRACKET = "#dddd70";