diff --git a/src/game/start/ads.js b/src/game/ads/ads.js similarity index 97% rename from src/game/start/ads.js rename to src/game/ads/ads.js index 2106118..125d1dc 100644 --- a/src/game/start/ads.js +++ b/src/game/ads/ads.js @@ -59,7 +59,7 @@ var Ads = { updateCounter: function() { this.counter--; if(this.counter == 0) - game.state.start('Start'); + location.href = '../../web/client/start.html'; else this.skipText.text = this.counter + "초 후에 게임 화면으로 넘어갑니다."; }, diff --git a/src/game/ads/main.js b/src/game/ads/main.js new file mode 100644 index 0000000..133044e --- /dev/null +++ b/src/game/ads/main.js @@ -0,0 +1,13 @@ +///////////////////////////// +// Main game + +var CONTENT_ID = "Ads"; + +var game = new Phaser.Game( + GAME_SCREEN_SIZE.x, GAME_SCREEN_SIZE.y, + Phaser.CANVAS, CONTENT_ID +); + + +game.state.add('Ads', Ads); +game.state.start('Ads'); diff --git a/src/game/lib/button/game_app_button.js b/src/game/lib/button/game_app_button.js index cde821f..62b98d8 100644 --- a/src/game/lib/button/game_app_button.js +++ b/src/game/lib/button/game_app_button.js @@ -83,7 +83,10 @@ GameAppButton.prototype.clickEvent = function() { sessionStorageManager.setPlayingAppName(this.appInfo.AppName); sessionStorageManager.setPlayingAppKoreanName(this.appInfo.KoreanName); - location.href = '../../web/client/start.html'; + if(isExperiencePlayerAccount()) + location.href = '../../web/client/ads.html'; + else + location.href = '../../web/client/start.html'; } diff --git a/src/game/lib/button/typing_app_button.js b/src/game/lib/button/typing_app_button.js index 3523b9e..b68569b 100644 --- a/src/game/lib/button/typing_app_button.js +++ b/src/game/lib/button/typing_app_button.js @@ -105,7 +105,10 @@ TypingAppButton.prototype.clickEvent = function() { sessionStorageManager.setPlayingAppName(this.appInfo.AppName); sessionStorageManager.setPlayingAppKoreanName(this.appInfo.KoreanName); - location.href = '../../web/client/start.html'; + if(isExperiencePlayerAccount()) + location.href = '../../web/client/ads.html'; + else + location.href = '../../web/client/start.html'; } diff --git a/src/game/start/main.js b/src/game/start/main.js index 2ce91f5..2d1978e 100644 --- a/src/game/start/main.js +++ b/src/game/start/main.js @@ -10,9 +10,4 @@ var game = new Phaser.Game( game.state.add('Start', Start); -game.state.add('Ads', Ads); - -if(isExperiencePlayerAccount()) - game.state.start('Ads'); -else - game.state.start('Start'); +game.state.start('Start'); diff --git a/src/web/client/ads.html b/src/web/client/ads.html new file mode 100644 index 0000000..ad4f9c1 --- /dev/null +++ b/src/web/client/ads.html @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + 광고 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + \ No newline at end of file diff --git a/src/web/client/start.html b/src/web/client/start.html index 461e157..929e141 100644 --- a/src/web/client/start.html +++ b/src/web/client/start.html @@ -34,7 +34,6 @@ - @@ -50,6 +49,7 @@ } +