Add: WhacAMole typing game

This commit is contained in:
2018-10-04 16:45:47 +09:00
parent 740115ee53
commit 72c8b9e1f4
28 changed files with 1136 additions and 112 deletions
+17 -7
View File
@@ -3,7 +3,8 @@ var Result = {
preload: function() {
game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png');
Animal.loadResources();
if(isTypingPracticeApp() || isTypingTestApp())
Animal.loadResources();
RankingBoard.loadResources();
game.load.image('star', '../../../resources/image/ui/star_particle.png');
@@ -67,10 +68,12 @@ var Result = {
var record = NumberUtil.numberWithCommas(Math.floor(sessionStorageManager.getRecord()));
style.font = "80px Arial";
if(sessionStorageManager.getPlayingAppID() < 100) {
// if(sessionStorageManager.getPlayingAppID() < 100) {
if(isTypingPracticeApp() || isTypingTestApp()) {
var leftAnimal = new Animal(Animal.TYPE_ANIMATION, game.world.centerX - 200, 150);
var animalLevelID = 0;
if(sessionStorageManager.getPlayingAppID() < 20)
// if(sessionStorageManager.getPlayingAppID() < 20)
if(isTypingPracticeApp())
animalLevelID = Animal.animalLevelIDByRecord(sessionStorageManager.getRecord(), Animal.TYPE_PRACTICE);
else
animalLevelID = Animal.animalLevelIDByRecord(sessionStorageManager.getRecord(), Animal.TYPE_TEST);
@@ -147,14 +150,21 @@ var Result = {
var startButton = new RoundRectButton(setting, RoundRectButton.NONE_ICON, "다시 시작", this.restartStage);
},
restartStage: function() {
if(sessionStorageManager.getPlayingAppName().indexOf("practice_") == 0) {
location.href = "../../web/client/" + getGameAppName() + ".html";
/*
if(isTypingPracticeApp())
location.href = "../../web/client/typing_practice.html";
} else if(sessionStorageManager.getPlayingAppName().indexOf("test_") == 0) {
else if(isTypingTestApp())
location.href = "../../web/client/typing_test.html";
} else {
else if(isTypingGameApp())
location.href = "../../web/client/" + this.getGameAppName() + ".html";
// else if(isMouseGameApp())
// location.href = "../../web/client/" + this.getGameAppName() + ".html";
else
location.href = "../../web/client/" + sessionStorageManager.getPlayingAppName() + ".html";
}
*/
}
}