Fix: change animal record list

This commit is contained in:
2019-08-19 20:15:32 +09:00
parent 7a4197689e
commit 6dd9a8aa5b
8 changed files with 42 additions and 149 deletions
+10 -11
View File
@@ -70,7 +70,6 @@ TypingExamination.prototype.create = function() {
}
TypingExamination.prototype.fontLoaded = function() {
// this.animalList = new AnimalList(90);
this.makeAnimalRecordList();
// this.animalRecordList.hide();
this.animalRecordList.applyLoadedFont();
@@ -78,7 +77,7 @@ TypingExamination.prototype.fontLoaded = function() {
// typing content
var CONTENT_TEXT_WIDTH = 800;
var CONTENT_UNDERLINE_OFFSET = 13;
var CONTENT_UNDERLINE_OFFSET = 17;
var TYPING_CONTENT_UNDERLINE_OFFSET = 5;
var graphics = game.add.graphics(0, 0);
@@ -142,7 +141,8 @@ TypingExamination.prototype.fontLoaded = function() {
);
// current text line number / total line number
textStyleBasic.font = "38px Arial";
// textStyleBasic.font = "38px Arial";
textStyleBasic.font = "38px Nanum Gothic Coding";
textStyleBasic.backgroundColor = null;
this.textTypingLine = game.add.text(
RECORD_POSITION_X, TYPING_CONTENT_Y,
@@ -185,7 +185,7 @@ TypingExamination.prototype.fontLoaded = function() {
this.textTypingContentsDone[i].anchor.set(0, 0.5);
this.textTypingContentsDone[i].fontSize = FONT_SIZE;
textStyleBasic.font = "38px Arial";
textStyleBasic.font = "38px Nanum Gothic Coding";
this.textTypingRecordsDone[i] = game.add.text(
RECORD_POSITION_X, TYPING_CONTENT_Y - TYPING_OFFSET_Y - i * TYPING_TEXT_OFFSET_HEIGHT,
"", textStyleBasic
@@ -280,14 +280,13 @@ tweenCountDown() {
*/
TypingExamination.prototype.makeAnimalRecordList = function() {
this.animalRecordList = new AnimalRecordList(AnimalRecordList.TYPE_MENU);
this.animalRecordList.printScore(Animal.TYPE_PRACTICE);
this.animalRecordList = new AnimalRecordList(Animal.TYPE_EXAM);
this.animalRecordList.printScore(Animal.TYPE_EXAM);
}
TypingExamination.prototype.back = function() {
sessionStorageManager.resetPlayingAppData();
// location.href = '../../web/client/menu_typing_exam.html';
location.href = '../../web/client/main_menu.html';
}
@@ -309,7 +308,7 @@ TypingExamination.prototype.gameOver = function() {
}
TypingExamination.prototype.stopAndGoResult = function() {
this.animalList.stopAnimation();
this.animalRecordList.stopAnimation();
sessionStorageManager.setRecord(this.typingRecordTotal);
if(!isExperienceMaestroAccount())
@@ -587,9 +586,9 @@ TypingExamination.prototype.calculateTypingRecord = function(typingContent) {
// console.log('typingRecordTotal : ' + this.typingRecordTotal);
// console.log('-----------------------------------');
var animalLevelID = Animal.animalLevelIDByRecord(typingRecordTotalInteger, Animal.TYPE_TEST);
this.animalList.activate(animalLevelID);
this.animalList.tweenAnimation(Animal.ANIMATION_TYPE_CHANGE);
var animalLevelID = Animal.animalLevelIDByRecord(typingRecordTotalInteger, Animal.TYPE_EXAM);
this.animalRecordList.activate(animalLevelID);
this.animalRecordList.tweenAnimation(Animal.ANIMATION_TYPE_CHANGE);
}
TypingExamination.prototype.playNextContent = function() {