Add: seperate ads page from start page and apply Google Analytics code
This commit is contained in:
@@ -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 + "초 후에 게임 화면으로 넘어갑니다.";
|
||||
},
|
||||
@@ -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');
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user