diff --git a/resources/image/license/itq/wait_paper.png b/resources/image/license/itq/wait_paper.png new file mode 100644 index 0000000..0b1c511 Binary files /dev/null and b/resources/image/license/itq/wait_paper.png differ diff --git a/resources/image/license/itq/windows_basic_koas.png b/resources/image/license/itq/windows_basic_koas.png new file mode 100644 index 0000000..9fc9fd7 Binary files /dev/null and b/resources/image/license/itq/windows_basic_koas.png differ diff --git a/src/game/lib/button/fullscreen_button.js b/src/game/lib/button/fullscreen_button.js index ec0d947..11c3f57 100644 --- a/src/game/lib/button/fullscreen_button.js +++ b/src/game/lib/button/fullscreen_button.js @@ -1,5 +1,5 @@ FullscreenButton.prototype = Object.create(RoundRectButton); -FullscreenButton.constructor = BackButton; +FullscreenButton.constructor = FullscreenButton; function FullscreenButton() { game.scale.fullScreenScaleMode = Phaser.ScaleManager.EXACT_FIT; diff --git a/src/game/license_simulator/itq/loading.js b/src/game/license_simulator/itq/loading.js new file mode 100644 index 0000000..1fc07b8 --- /dev/null +++ b/src/game/license_simulator/itq/loading.js @@ -0,0 +1,66 @@ +var Loading = { + + preload: function() { + // game.load.image('loadingbar', './image/phaser.png'); + }, + + create: function() { + // var userID = sessionStorage.getItem("UserID"); + // console.log("userID : " + userID); + + game.stage.backgroundColor = '#4d4d4d'; + + // // Progress report + // this.textProgress = game.add.text(game.world.centerX, 100, '로딩중 . . .', textStyleBasic); + // this.textProgress.anchor.setTo(0.5, 0.4); + // this.textProgress.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2); + + // // Preload bar + // this.preloadBar = this.add.sprite(game.world.centerX, game.world.centerY, 'loadingbar'); + // this.preloadBar.anchor.setTo(0.5); + // this.preloadBar.alpha = 0; + + game.load.onFileComplete.add(this.fileComplete, this); + game.load.onLoadComplete.add(this.loadComplete, this); + + this.startLoading(); + }, + + startLoading: function() { + game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png'); + game.load.image('icon_home', '../../../resources/image/icon/home.png'); + + // SpriteIconTimer.loadResources(); + + game.load.start(); + }, + + fileComplete: function(progress, cacheKey, success, totalLoaded, totalFiles) { + // this.preloadBar.alpha = progress / 100; + + // console.log('progress : ' + progress); + + // text.setText("File Complete: " + progress + "% - " + totalLoaded + " out of " + totalFiles); + + // var newImage = game.add.image(x, y, cacheKey); + // newImage.scale.set(0.3); + + // x += newImage.width + 20; + // if (x > 700) + // { + // x = 32; + // y += 332; + // } + }, + + loadComplete: function(progress, cacheKey, success, totalLoaded, totalFiles) { + // this.preloadBar.alpha = 1; + + // if(isDebugMode()) { + // this.state.start('Login'); + // return; + // } + + this.state.start('Simulator'); + }, +} diff --git a/src/game/license_simulator/itq/main.js b/src/game/license_simulator/itq/main.js new file mode 100644 index 0000000..f5dee3b --- /dev/null +++ b/src/game/license_simulator/itq/main.js @@ -0,0 +1,15 @@ +///////////////////////////// +// Main game + +var CONTENT_ID = "ITQ Simulator"; + +var game = new Phaser.Game( + GAME_SCREEN_SIZE.x, GAME_SCREEN_SIZE.y, + Phaser.CANVAS, CONTENT_ID, + this, false, false +); + +game.state.add('Loading', Loading); +game.state.add('Simulator', Simulator); + +game.state.start('Loading'); \ No newline at end of file diff --git a/src/game/license_simulator/itq/simulator.js b/src/game/license_simulator/itq/simulator.js new file mode 100644 index 0000000..d0412ca --- /dev/null +++ b/src/game/license_simulator/itq/simulator.js @@ -0,0 +1,24 @@ +var GAME_SCREEN_SIZE = { x: 1024, y: 768 } + +var Simulator = { + + create: function() { + game.stage.backgroundColor = "#4d4d4d"; + + // keyboard shortcut + this.keyboardShortcut = new KeyboardShortcut(); + this.keyboardShortcut.addCallback( + Phaser.KeyCode.ESC, // keyCode + null, // keyDownHandler + (function() { this.back(); }).bind(this), // keyUpHandler + "keyboard_test" // callerClassName + ); + + this.fullscreenButton = new FullscreenButton(); + + }, + + back: function() { + }, + +} \ No newline at end of file diff --git a/src/web/client/grilled_meat.html b/src/web/client/grilled_meat.html index 4003cc8..6179d44 100644 --- a/src/web/client/grilled_meat.html +++ b/src/web/client/grilled_meat.html @@ -62,7 +62,7 @@ - + diff --git a/src/web/client/itq_simulator.html b/src/web/client/itq_simulator.html new file mode 100644 index 0000000..5e0da7c --- /dev/null +++ b/src/web/client/itq_simulator.html @@ -0,0 +1,70 @@ + + +
+ + + + + + + + + + + +