diff --git a/src/game/global/global_variables.js b/src/game/global/global_variables.js index ceae7de..bbd7f0f 100644 --- a/src/game/global/global_variables.js +++ b/src/game/global/global_variables.js @@ -162,7 +162,7 @@ function getGameAppName() { if(isTypingPracticeApp()) return "typing_practice"; else if(isTypingTestApp()) - return "typing_test.html"; + return "typing_test"; else if(isTypingGameApp()) { if(isKoreanTypingApp()) return appName.substring("typing_korean_".length); diff --git a/src/game/mouse/space_invaders/loading.js b/src/game/mouse/space_invaders/loading.js index 52e4e0f..7d49b1a 100644 --- a/src/game/mouse/space_invaders/loading.js +++ b/src/game/mouse/space_invaders/loading.js @@ -1,14 +1,14 @@ var Loading = { preload: function() { - // this.game.load.image('loadingbar', './image/phaser.png'); + // game.load.image('loadingbar', './image/phaser.png'); }, create: function() { // let userID = sessionStorage.getItem("UserID"); // console.log("userID : " + userID); - // this.game.stage.backgroundColor = '#4d4d4d'; + // game.stage.backgroundColor = '#4d4d4d'; // // Progress report // this.textProgress = game.add.text(game.world.centerX, 100, '로딩중 . . .', textStyleBasic); @@ -20,44 +20,44 @@ var Loading = { // this.preloadBar.anchor.setTo(0.5); // this.preloadBar.alpha = 0; - this.game.load.onFileComplete.add(this.fileComplete, this); - this.game.load.onLoadComplete.add(this.loadComplete, this); + game.load.onFileComplete.add(this.fileComplete, this); + game.load.onLoadComplete.add(this.loadComplete, this); this.startLoading(); }, startLoading: function() { - this.game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png'); + game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png'); - this.game.load.image('star', '../../../resources/image/background/star_7x7.png'); + game.load.image('star', '../../../resources/image/background/star_7x7.png'); - this.game.load.image('alien_normal', '../../../resources/image/character/alien/green_alien.png'); + game.load.image('alien_normal', '../../../resources/image/character/alien/green_alien.png'); - this.game.load.image('heart_full', '../../../resources/image/ui/heart_full.png'); - this.game.load.image('heart_empty', '../../../resources/image/ui/heart_empty.png'); - // this.game.load.image('a', '../../../resources/image/icon/fullscreen_white.png'); - // this.game.load.image('b', '../../../resources/image/icon/fullscreen_white.png'); - // this.game.load.image('c', '../../../resources/image/icon/fullscreen_white.png'); - // this.game.load.image('d', '../../../resources/image/icon/fullscreen_white.png'); - // this.game.load.image('a', './image/phaser.png'); - // this.game.load.image('b', './image/phaser.png'); - // this.game.load.image('c', './image/phaser.png'); - // this.game.load.image('d', './image/phaser.png'); - // this.game.load.image('e', './image/phaser.png'); - // this.game.load.image('g', './image/phaser.png'); - // this.game.load.image('e', './image/phaser.png'); - // this.game.load.image('f', './image/phaser.png'); - // this.game.load.image('g', './image/phaser.png'); - // this.game.load.image('h', './image/phaser.png'); + game.load.image('heart_full', '../../../resources/image/ui/heart_full.png'); + game.load.image('heart_empty', '../../../resources/image/ui/heart_empty.png'); + // game.load.image('a', '../../../resources/image/icon/fullscreen_white.png'); + // game.load.image('b', '../../../resources/image/icon/fullscreen_white.png'); + // game.load.image('c', '../../../resources/image/icon/fullscreen_white.png'); + // game.load.image('d', '../../../resources/image/icon/fullscreen_white.png'); + // game.load.image('a', './image/phaser.png'); + // game.load.image('b', './image/phaser.png'); + // game.load.image('c', './image/phaser.png'); + // game.load.image('d', './image/phaser.png'); + // game.load.image('e', './image/phaser.png'); + // game.load.image('g', './image/phaser.png'); + // game.load.image('e', './image/phaser.png'); + // game.load.image('f', './image/phaser.png'); + // game.load.image('g', './image/phaser.png'); + // game.load.image('h', './image/phaser.png'); - // this.game.load.image('phaser', './image/phaser.png'); - // this.game.load.spritesheet('button', './image/button_basic.png', 200, 100); - // this.game.load.image('star', './image/star_particle.png'); - // this.game.load.image('medal_gold', './image/medal_gold.png'); - // this.game.load.image('medal_silver', './image/medal_silver.png'); - // this.game.load.image('medal_bronze', './image/medal_bronze.png'); + // game.load.image('phaser', './image/phaser.png'); + // game.load.spritesheet('button', './image/button_basic.png', 200, 100); + // game.load.image('star', './image/star_particle.png'); + // game.load.image('medal_gold', './image/medal_gold.png'); + // game.load.image('medal_silver', './image/medal_silver.png'); + // game.load.image('medal_bronze', './image/medal_bronze.png'); - this.game.load.start(); + game.load.start(); }, fileComplete: function(progress, cacheKey, success, totalLoaded, totalFiles) { diff --git a/src/game/result/result.js b/src/game/result/result.js index 9245f46..6b8b500 100644 --- a/src/game/result/result.js +++ b/src/game/result/result.js @@ -19,9 +19,9 @@ var Result = { // top ui var screenTopUI = new ScreenTopUI(); screenTopUI.makeBackButton( function() { - if(isTypingPracticeStage()) + if(isTypingPracticeApp()) location.href = '../../web/client/menu_typing_practice.html'; - else if(isTypingTestStage()) + else if(isTypingTestApp()) location.href = '../../web/client/menu_typing_test.html'; else location.href = '../../web/client/menu_app.html'; @@ -153,18 +153,6 @@ var Result = { restartStage: function() { location.href = "../../web/client/" + getGameAppName() + ".html"; - /* - if(isTypingPracticeApp()) - location.href = "../../web/client/typing_practice.html"; - else if(isTypingTestApp()) - location.href = "../../web/client/typing_test.html"; - 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"; - */ } } \ No newline at end of file diff --git a/src/game/start/start.js b/src/game/start/start.js index 8c72d2a..a640b45 100644 --- a/src/game/start/start.js +++ b/src/game/start/start.js @@ -163,18 +163,6 @@ var Start = { startStage: function() { location.href = "../../web/client/" + getGameAppName() + ".html"; - /* - if(isTypingPracticeApp()) - location.href = "../../web/client/typing_practice.html"; - else if(isTypingTestApp()) - location.href = "../../web/client/typing_test.html"; - 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"; - */ } } \ No newline at end of file diff --git a/src/game/typing/lib/hand.js b/src/game/typing/lib/hand.js index f61a190..688b4d2 100644 --- a/src/game/typing/lib/hand.js +++ b/src/game/typing/lib/hand.js @@ -109,6 +109,16 @@ Hand.prototype.unhighlightOffFinger = function() { } +Hand.loadResources = function() { + game.load.image('hand_palm', '../../../resources/image/ui/hand_palm.png'); + game.load.image('hand_thumb', '../../../resources/image/ui/hand_thumb.png'); + game.load.image('hand_index_finger', '../../../resources/image/ui/hand_index_finger.png'); + game.load.image('hand_middle_finger', '../../../resources/image/ui/hand_middle_finger.png'); + game.load.image('hand_little_finger', '../../../resources/image/ui/hand_little_finger.png'); + game.load.image('hand_ring_finger', '../../../resources/image/ui/hand_ring_finger.png'); +} + + Hand.DEFAULT_Y_PX = 540; // 680; @@ -260,4 +270,5 @@ RightHand.prototype.moveColumn = function(rowNo, key) { } + RightHand.DEFAULT_X_PX = 810; \ No newline at end of file diff --git a/src/game/typing/practice/loading.js b/src/game/typing/practice/loading.js index 828d696..9bbbe44 100644 --- a/src/game/typing/practice/loading.js +++ b/src/game/typing/practice/loading.js @@ -1,14 +1,14 @@ var Loading = { preload: function() { - // this.game.load.image('loadingbar', './image/phaser.png'); + // game.load.image('loadingbar', './image/phaser.png'); }, create: function() { // var userID = sessionStorage.getItem("UserID"); // console.log("userID : " + userID); - // this.game.stage.backgroundColor = '#4d4d4d'; + // game.stage.backgroundColor = '#4d4d4d'; // // Progress report // this.textProgress = game.add.text(game.world.centerX, 100, '로딩중 . . .', textStyleBasic); @@ -20,50 +20,44 @@ var Loading = { // this.preloadBar.anchor.setTo(0.5); // this.preloadBar.alpha = 0; - this.game.load.onFileComplete.add(this.fileComplete, this); - this.game.load.onLoadComplete.add(this.loadComplete, this); + game.load.onFileComplete.add(this.fileComplete, this); + game.load.onLoadComplete.add(this.loadComplete, this); this.startLoading(); }, startLoading: function() { - this.game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png'); - - this.game.load.image('hand_palm', '../../../resources/image/ui/hand_palm.png'); - this.game.load.image('hand_thumb', '../../../resources/image/ui/hand_thumb.png'); - this.game.load.image('hand_index_finger', '../../../resources/image/ui/hand_index_finger.png'); - this.game.load.image('hand_middle_finger', '../../../resources/image/ui/hand_middle_finger.png'); - this.game.load.image('hand_little_finger', '../../../resources/image/ui/hand_little_finger.png'); - this.game.load.image('hand_ring_finger', '../../../resources/image/ui/hand_ring_finger.png'); + game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png'); + Hand.loadResources(); Animal.loadResources(); - // this.game.load.image('hand_left', '../../../resources/image/ui/hand_left.png'); - // this.game.load.image('hand_right', '../../../resources/image/ui/hand_right.png'); - // this.game.load.image('a', '../../../resources/image/icon/fullscreen_white.png'); - // this.game.load.image('b', '../../../resources/image/icon/fullscreen_white.png'); - // this.game.load.image('c', '../../../resources/image/icon/fullscreen_white.png'); - // this.game.load.image('d', '../../../resources/image/icon/fullscreen_white.png'); - // this.game.load.image('a', './image/phaser.png'); - // this.game.load.image('b', './image/phaser.png'); - // this.game.load.image('c', './image/phaser.png'); - // this.game.load.image('d', './image/phaser.png'); - // this.game.load.image('e', './image/phaser.png'); - // this.game.load.image('g', './image/phaser.png'); - // this.game.load.image('e', './image/phaser.png'); - // this.game.load.image('f', './image/phaser.png'); - // this.game.load.image('g', './image/phaser.png'); - // this.game.load.image('h', './image/phaser.png'); + // game.load.image('hand_left', '../../../resources/image/ui/hand_left.png'); + // game.load.image('hand_right', '../../../resources/image/ui/hand_right.png'); + // game.load.image('a', '../../../resources/image/icon/fullscreen_white.png'); + // game.load.image('b', '../../../resources/image/icon/fullscreen_white.png'); + // game.load.image('c', '../../../resources/image/icon/fullscreen_white.png'); + // game.load.image('d', '../../../resources/image/icon/fullscreen_white.png'); + // game.load.image('a', './image/phaser.png'); + // game.load.image('b', './image/phaser.png'); + // game.load.image('c', './image/phaser.png'); + // game.load.image('d', './image/phaser.png'); + // game.load.image('e', './image/phaser.png'); + // game.load.image('g', './image/phaser.png'); + // game.load.image('e', './image/phaser.png'); + // game.load.image('f', './image/phaser.png'); + // game.load.image('g', './image/phaser.png'); + // game.load.image('h', './image/phaser.png'); - // this.game.load.image('phaser', './image/phaser.png'); - // this.game.load.spritesheet('button', './image/button_basic.png', 200, 100); - // this.game.load.image('star', './image/star_particle.png'); - // this.game.load.image('medal_gold', './image/medal_gold.png'); - // this.game.load.image('medal_silver', './image/medal_silver.png'); - // this.game.load.image('medal_bronze', './image/medal_bronze.png'); + // game.load.image('phaser', './image/phaser.png'); + // game.load.spritesheet('button', './image/button_basic.png', 200, 100); + // game.load.image('star', './image/star_particle.png'); + // game.load.image('medal_gold', './image/medal_gold.png'); + // game.load.image('medal_silver', './image/medal_silver.png'); + // game.load.image('medal_bronze', './image/medal_bronze.png'); - this.game.load.start(); + game.load.start(); }, fileComplete: function(progress, cacheKey, success, totalLoaded, totalFiles) { diff --git a/src/game/typing/test/loading.js b/src/game/typing/test/loading.js index 275a21d..ac982c3 100644 --- a/src/game/typing/test/loading.js +++ b/src/game/typing/test/loading.js @@ -1,14 +1,14 @@ var Loading = { preload: function() { - // this.game.load.image('loadingbar', './image/phaser.png'); + // game.load.image('loadingbar', './image/phaser.png'); }, create: function() { // var userID = sessionStorage.getItem("UserID"); // console.log("userID : " + userID); - // this.game.stage.backgroundColor = '#4d4d4d'; + // game.stage.backgroundColor = '#4d4d4d'; // // Progress report // this.textProgress = game.add.text(game.world.centerX, 100, '로딩중 . . .', textStyleBasic); @@ -20,41 +20,41 @@ var Loading = { // this.preloadBar.anchor.setTo(0.5); // this.preloadBar.alpha = 0; - this.game.load.onFileComplete.add(this.fileComplete, this); - this.game.load.onLoadComplete.add(this.loadComplete, this); + game.load.onFileComplete.add(this.fileComplete, this); + game.load.onLoadComplete.add(this.loadComplete, this); this.startLoading(); }, startLoading: function() { - this.game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png'); + game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png'); Animal.loadResources(); - // this.game.load.image('a', '../../../resources/image/icon/fullscreen_white.png'); - // this.game.load.image('b', '../../../resources/image/icon/fullscreen_white.png'); - // this.game.load.image('c', '../../../resources/image/icon/fullscreen_white.png'); - // this.game.load.image('d', '../../../resources/image/icon/fullscreen_white.png'); - // this.game.load.image('a', './image/phaser.png'); - // this.game.load.image('b', './image/phaser.png'); - // this.game.load.image('c', './image/phaser.png'); - // this.game.load.image('d', './image/phaser.png'); - // this.game.load.image('e', './image/phaser.png'); - // this.game.load.image('g', './image/phaser.png'); - // this.game.load.image('e', './image/phaser.png'); - // this.game.load.image('f', './image/phaser.png'); - // this.game.load.image('g', './image/phaser.png'); - // this.game.load.image('h', './image/phaser.png'); + // game.load.image('a', '../../../resources/image/icon/fullscreen_white.png'); + // game.load.image('b', '../../../resources/image/icon/fullscreen_white.png'); + // game.load.image('c', '../../../resources/image/icon/fullscreen_white.png'); + // game.load.image('d', '../../../resources/image/icon/fullscreen_white.png'); + // game.load.image('a', './image/phaser.png'); + // game.load.image('b', './image/phaser.png'); + // game.load.image('c', './image/phaser.png'); + // game.load.image('d', './image/phaser.png'); + // game.load.image('e', './image/phaser.png'); + // game.load.image('g', './image/phaser.png'); + // game.load.image('e', './image/phaser.png'); + // game.load.image('f', './image/phaser.png'); + // game.load.image('g', './image/phaser.png'); + // game.load.image('h', './image/phaser.png'); - // this.game.load.image('phaser', './image/phaser.png'); - // this.game.load.spritesheet('button', './image/button_basic.png', 200, 100); - // this.game.load.image('star', './image/star_particle.png'); - // this.game.load.image('medal_gold', './image/medal_gold.png'); - // this.game.load.image('medal_silver', './image/medal_silver.png'); - // this.game.load.image('medal_bronze', './image/medal_bronze.png'); + // game.load.image('phaser', './image/phaser.png'); + // game.load.spritesheet('button', './image/button_basic.png', 200, 100); + // game.load.image('star', './image/star_particle.png'); + // game.load.image('medal_gold', './image/medal_gold.png'); + // game.load.image('medal_silver', './image/medal_silver.png'); + // game.load.image('medal_bronze', './image/medal_bronze.png'); - this.game.load.start(); + game.load.start(); }, fileComplete: function(progress, cacheKey, success, totalLoaded, totalFiles) { diff --git a/src/game/typing/whac_a_mole/game.js b/src/game/typing/whac_a_mole/game.js index 03b849e..25ccb6f 100644 --- a/src/game/typing/whac_a_mole/game.js +++ b/src/game/typing/whac_a_mole/game.js @@ -161,24 +161,17 @@ var TypingPractice = { }, initTypingData: function() { - var typingTextMan = new TypingTextManager(); - - var typingPracticeContents = this.loadLetters(); - // console.log(typingPracticeContents); - // typingTextMan.makePracticeContents(typingPracticeContents, 30); - // this.typingRandomContents = typingTextMan.getContents(); - this.typingRandomContents = typingPracticeContents; - // console.log(this.typingRandomContents); - this.typingContentLength = this.typingRandomContents.length; + this.typingRandomLetters = this.loadLetters(); + // console.log(this.typingRandomLetters); + this.typingRandomLettersLength = this.typingRandomLetters.length; this.typingIndex = 0; }, shuffleLettetFollowingFKey: function(wordList) { - var typingTextMan = new TypingTextManager(); + var shuffleLetters = TypingTextManager.shuffledArray(wordList); var letters = []; - var shuffleLetters = typingTextMan.getShuffledArray(wordList); for(var i = 0; i < shuffleLetters.length; i++) { if(isKoreanTypingApp()) letters.push("ㄹ"); @@ -192,10 +185,9 @@ var TypingPractice = { }, shuffleLettetFollowingJKey: function(wordList) { - var typingTextMan = new TypingTextManager(); + var shuffleLetters = TypingTextManager.shuffledArray(wordList); var letters = []; - var shuffleLetters = typingTextMan.getShuffledArray(wordList); for(var i = 0; i < shuffleLetters.length; i++) { letters.push(shuffleLetters[i]); @@ -223,10 +215,9 @@ var TypingPractice = { }, shuffleLettetFollowingFJKey: function(wordList) { - // var typingTextMan = new TypingTextManager(); + var shuffleLetters = TypingTextManager.shuffledArray(wordList); var letters = []; - var shuffleLetters = TypingTextManager.shuffledArray(wordList); for(var i = 0; i < shuffleLetters.length; i++) { if(this.isLeftHandLetter(shuffleLetters[i])) { letters.push(shuffleLetters[i]); @@ -266,7 +257,7 @@ var TypingPractice = { allLetters = allLetters.concat(englishLeftUpperWordList); allLetters = allLetters.concat(englishRightUpperWordList); allLetters = allLetters.concat(englishLeftLowerWordList); - allLetters = allLetters.concat(["m"); // englishRightLowerWordList); + allLetters = allLetters.concat(["m"]); // englishRightLowerWordList); allLetters = allLetters.concat(englishSecondFingerWordList); } @@ -278,14 +269,16 @@ var TypingPractice = { var letters = []; if(isKoreanTypingApp()) { - letters = letters.concat(["ㄹ", "ㅓ"]); + letters = letters.concat(["ㄹ", "ㅓ", "ㄹ", "ㅓ", "ㄹ", "ㅓ"]); letters = letters.concat(this.shuffleLettetFollowingJKey(koreanBasicLeftWordList)); letters = letters.concat(this.shuffleLettetFollowingFKey(koreanBasicRightWordList)); + letters = letters.concat(["ㄹ", "ㅓ", "ㄹ", "ㅓ", "ㄹ", "ㅓ"]); letters = letters.concat(this.shuffleLettetFollowingJKey(koreanLeftUpperWordList)); letters = letters.concat(this.shuffleLettetFollowingFKey(koreanRightUpperWordList)); letters = letters.concat(this.shuffleLettetFollowingJKey(koreanLeftLowerWordList)); + letters = letters.concat(["ㄹ", "ㅓ", "ㄹ", "ㅓ", "ㄹ", "ㅓ"]); // letters = letters.concat(this.shuffleLettetFollowingFKey(koreanRightLowerWordList)); letters = letters.concat(this.shuffleLettetFollowingFJKey(koreanSecondFingerWordList.concat("ㅡ"))); @@ -298,14 +291,16 @@ var TypingPractice = { } } else { // isEnglishTypingApp - letters = letters.concat(["f", "j"]); + letters = letters.concat(["f", "j", "f", "j", "f", "j"]); letters = letters.concat(this.shuffleLettetFollowingJKey(englishBasicLeftWordList)); letters = letters.concat(this.shuffleLettetFollowingFKey(englishBasicRightWordList)); + letters = letters.concat(["f", "j", "f", "j", "f", "j"]); letters = letters.concat(this.shuffleLettetFollowingJKey(englishLeftUpperWordList)); letters = letters.concat(this.shuffleLettetFollowingFKey(englishRightUpperWordList)); letters = letters.concat(this.shuffleLettetFollowingJKey(englishLeftLowerWordList)); + letters = letters.concat(["f", "j", "f", "j", "f", "j"]); // letters = letters.concat(this.shuffleLettetFollowingFKey(englishRightLowerWordList)); letters = letters.concat(this.shuffleLettetFollowingFJKey(englishSecondFingerWordList.concat("m"))); @@ -317,8 +312,7 @@ var TypingPractice = { letters = letters.concat(this.suffleAllLetters()); } } - - console.log(letters); + // console.log(letters); return letters; }, @@ -329,28 +323,28 @@ var TypingPractice = { if(doneIndex < 0) { this.textTypingContentsDone[i].text = ""; } else { - this.textTypingContentsDone[i].text = this.typingRandomContents[doneIndex]; + this.textTypingContentsDone[i].text = this.typingRandomLetters[doneIndex]; } } - if(this.typingIndex == this.typingContentLength) { + if(this.typingIndex == this.typingRandomLettersLength) { this.textTypingContent.text = ""; return; } - this.textTypingContent.text = this.typingRandomContents[this.typingIndex]; + this.textTypingContent.text = this.typingRandomLetters[this.typingIndex]; for(var i = 0; i < TypingPractice.TYPING_CONTENT_PREVIEW_COUNT; i++) { var previewIndex = this.typingIndex + i + 1; - if(previewIndex < this.typingRandomContents.length) - this.textTypingContentPreview[i].text = this.typingRandomContents[previewIndex]; + if(previewIndex < this.typingRandomLetters.length) + this.textTypingContentPreview[i].text = this.typingRandomLetters[previewIndex]; else this.textTypingContentPreview[i].text = ""; } }, hideHighlightKey: function() { - var prevText = this.typingRandomContents[this.typingIndex]; + var prevText = this.typingRandomLetters[this.typingIndex]; if(prevText === undefined) return; @@ -358,7 +352,7 @@ var TypingPractice = { }, showHighlightKey: function() { - var typingText = this.typingRandomContents[this.typingIndex]; + var typingText = this.typingRandomLetters[this.typingIndex]; if(typingText === undefined) return; @@ -387,7 +381,7 @@ var TypingPractice = { checkTypingContents: function(evnet) { var inputContent = event.key; - var typingContent = this.typingRandomContents[this.typingIndex]; + var typingContent = this.typingRandomLetters[this.typingIndex]; if(this.isKeyPressed(inputContent, typingContent)) { // this.typingScore.increase(); @@ -395,7 +389,7 @@ var TypingPractice = { this.playNextContent(); - if(this.typingIndex === this.typingContentLength) { + if(this.typingIndex === this.typingRandomLettersLength) { // this.goResult(); } } else { diff --git a/src/game/typing/whac_a_mole/loading.js b/src/game/typing/whac_a_mole/loading.js index 828d696..16ace8a 100644 --- a/src/game/typing/whac_a_mole/loading.js +++ b/src/game/typing/whac_a_mole/loading.js @@ -1,14 +1,14 @@ var Loading = { preload: function() { - // this.game.load.image('loadingbar', './image/phaser.png'); + // game.load.image('loadingbar', './image/phaser.png'); }, create: function() { // var userID = sessionStorage.getItem("UserID"); // console.log("userID : " + userID); - // this.game.stage.backgroundColor = '#4d4d4d'; + // game.stage.backgroundColor = '#4d4d4d'; // // Progress report // this.textProgress = game.add.text(game.world.centerX, 100, '로딩중 . . .', textStyleBasic); @@ -20,50 +20,44 @@ var Loading = { // this.preloadBar.anchor.setTo(0.5); // this.preloadBar.alpha = 0; - this.game.load.onFileComplete.add(this.fileComplete, this); - this.game.load.onLoadComplete.add(this.loadComplete, this); + game.load.onFileComplete.add(this.fileComplete, this); + game.load.onLoadComplete.add(this.loadComplete, this); this.startLoading(); }, startLoading: function() { - this.game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png'); + game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png'); - this.game.load.image('hand_palm', '../../../resources/image/ui/hand_palm.png'); - this.game.load.image('hand_thumb', '../../../resources/image/ui/hand_thumb.png'); - this.game.load.image('hand_index_finger', '../../../resources/image/ui/hand_index_finger.png'); - this.game.load.image('hand_middle_finger', '../../../resources/image/ui/hand_middle_finger.png'); - this.game.load.image('hand_little_finger', '../../../resources/image/ui/hand_little_finger.png'); - this.game.load.image('hand_ring_finger', '../../../resources/image/ui/hand_ring_finger.png'); - - Animal.loadResources(); + // Hand.loadResources(); + // Animal.loadResources(); - // this.game.load.image('hand_left', '../../../resources/image/ui/hand_left.png'); - // this.game.load.image('hand_right', '../../../resources/image/ui/hand_right.png'); - // this.game.load.image('a', '../../../resources/image/icon/fullscreen_white.png'); - // this.game.load.image('b', '../../../resources/image/icon/fullscreen_white.png'); - // this.game.load.image('c', '../../../resources/image/icon/fullscreen_white.png'); - // this.game.load.image('d', '../../../resources/image/icon/fullscreen_white.png'); - // this.game.load.image('a', './image/phaser.png'); - // this.game.load.image('b', './image/phaser.png'); - // this.game.load.image('c', './image/phaser.png'); - // this.game.load.image('d', './image/phaser.png'); - // this.game.load.image('e', './image/phaser.png'); - // this.game.load.image('g', './image/phaser.png'); - // this.game.load.image('e', './image/phaser.png'); - // this.game.load.image('f', './image/phaser.png'); - // this.game.load.image('g', './image/phaser.png'); - // this.game.load.image('h', './image/phaser.png'); + // game.load.image('hand_left', '../../../resources/image/ui/hand_left.png'); + // game.load.image('hand_right', '../../../resources/image/ui/hand_right.png'); + // game.load.image('a', '../../../resources/image/icon/fullscreen_white.png'); + // game.load.image('b', '../../../resources/image/icon/fullscreen_white.png'); + // game.load.image('c', '../../../resources/image/icon/fullscreen_white.png'); + // game.load.image('d', '../../../resources/image/icon/fullscreen_white.png'); + // game.load.image('a', './image/phaser.png'); + // game.load.image('b', './image/phaser.png'); + // game.load.image('c', './image/phaser.png'); + // game.load.image('d', './image/phaser.png'); + // game.load.image('e', './image/phaser.png'); + // game.load.image('g', './image/phaser.png'); + // game.load.image('e', './image/phaser.png'); + // game.load.image('f', './image/phaser.png'); + // game.load.image('g', './image/phaser.png'); + // game.load.image('h', './image/phaser.png'); - // this.game.load.image('phaser', './image/phaser.png'); - // this.game.load.spritesheet('button', './image/button_basic.png', 200, 100); - // this.game.load.image('star', './image/star_particle.png'); - // this.game.load.image('medal_gold', './image/medal_gold.png'); - // this.game.load.image('medal_silver', './image/medal_silver.png'); - // this.game.load.image('medal_bronze', './image/medal_bronze.png'); + // game.load.image('phaser', './image/phaser.png'); + // game.load.spritesheet('button', './image/button_basic.png', 200, 100); + // game.load.image('star', './image/star_particle.png'); + // game.load.image('medal_gold', './image/medal_gold.png'); + // game.load.image('medal_silver', './image/medal_silver.png'); + // game.load.image('medal_bronze', './image/medal_bronze.png'); - this.game.load.start(); + game.load.start(); }, fileComplete: function(progress, cacheKey, success, totalLoaded, totalFiles) {