Fix: apply animal sheet to game, menu
This commit is contained in:
@@ -30,7 +30,7 @@ TypingTextManager.prototype.fillLeftRightBasicKey = function() {
|
||||
var char = this.contents[i];
|
||||
// console.log(char);
|
||||
if(this.isKoreanConsonant(char)) {
|
||||
this.contents.splice(i + 1, 0, "ㅏ");
|
||||
this.contents.splice(i + 1, 0, "ㅓ");
|
||||
} else if(this.isKoreanVowel(char)) {
|
||||
this.contents.splice(i, 0, "ㄹ");
|
||||
}
|
||||
@@ -66,7 +66,7 @@ TypingTextManager.prototype.makePracticeContents = function(arr, repeatCount) {
|
||||
|
||||
TypingTextManager.prototype.makeTestContents = function(arr) {
|
||||
this.init();
|
||||
this.add(this.getShuffledArray());
|
||||
this.add(this.getShuffledArray(arr));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -380,9 +380,10 @@ var TypingPractice = {
|
||||
// this.goResult();
|
||||
}
|
||||
} else {
|
||||
this.typingScore.reset();
|
||||
if(this.playingAnimalIndex > 0)
|
||||
this.playingAnimalIndex--;
|
||||
this.typingScore.set(Animal.getAnimalPracticeTypingCount(this.playingAnimalIndex));
|
||||
|
||||
this.playingAnimalIndex = 0;
|
||||
this.animalList.activate(this.playingAnimalIndex);
|
||||
this.animalList.tweenAnimation(Animal.ANIMATION_TYPE_DAMAGE);
|
||||
}
|
||||
@@ -405,7 +406,7 @@ TypingPractice.TYPING_COUNT_PLUS_ENTER = 1;
|
||||
|
||||
TypingPractice.OFFSET_RIGHT_ALIGN = 10;
|
||||
|
||||
TypingPractice.STAGE_TIMER_SEC = 60;
|
||||
TypingPractice.STAGE_TIMER_SEC = 30;
|
||||
|
||||
TypingPractice.COLOR_CONTENT_INPUT = "#dddddd";
|
||||
TypingPractice.COLOR_BRACKET = "#dddd70";
|
||||
|
||||
@@ -38,6 +38,11 @@ TypingScore.prototype.reset = function() {
|
||||
this.print(this.typingCount);
|
||||
}
|
||||
|
||||
TypingScore.prototype.set = function(score) {
|
||||
this.typingCount = score;
|
||||
this.print(this.typingCount);
|
||||
}
|
||||
|
||||
TypingScore.prototype.print = function(typingCount) {
|
||||
this.scoreText.text = typingCount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user