diff --git a/resources/image/license/itq/itq_testsheet_small.png b/resources/image/license/itq/itq_testsheet_small.png new file mode 100644 index 0000000..2354738 Binary files /dev/null and b/resources/image/license/itq/itq_testsheet_small.png differ diff --git a/resources/image/license/itq/pen.afdesign b/resources/image/license/itq/pen.afdesign new file mode 100644 index 0000000..51473c7 Binary files /dev/null and b/resources/image/license/itq/pen.afdesign differ diff --git a/resources/image/license/itq/pen.png b/resources/image/license/itq/pen.png new file mode 100644 index 0000000..a4acd7e Binary files /dev/null and b/resources/image/license/itq/pen.png differ diff --git a/resources/image/license/itq/popup_check_info.png b/resources/image/license/itq/popup_check_info.png new file mode 100755 index 0000000..dc7eb1a Binary files /dev/null and b/resources/image/license/itq/popup_check_info.png differ diff --git a/resources/image/license/itq/popup_check_saved_file.png b/resources/image/license/itq/popup_check_saved_file.png new file mode 100755 index 0000000..5343f21 Binary files /dev/null and b/resources/image/license/itq/popup_check_saved_file.png differ diff --git a/resources/image/license/itq/popup_check_success_transfer.png b/resources/image/license/itq/popup_check_success_transfer.png new file mode 100755 index 0000000..ff54be8 Binary files /dev/null and b/resources/image/license/itq/popup_check_success_transfer.png differ diff --git a/resources/image/license/itq/popup_register.png b/resources/image/license/itq/popup_register.png new file mode 100755 index 0000000..7876cd2 Binary files /dev/null and b/resources/image/license/itq/popup_register.png differ diff --git a/resources/image/license/itq/popup_save_filename.png b/resources/image/license/itq/popup_save_filename.png new file mode 100755 index 0000000..8df51ef Binary files /dev/null and b/resources/image/license/itq/popup_save_filename.png differ diff --git a/resources/image/license/itq/popup_save_folder.png b/resources/image/license/itq/popup_save_folder.png new file mode 100755 index 0000000..70f4407 Binary files /dev/null and b/resources/image/license/itq/popup_save_folder.png differ diff --git a/resources/image/license/itq/popup_select_version.png b/resources/image/license/itq/popup_select_version.png new file mode 100755 index 0000000..84f351c Binary files /dev/null and b/resources/image/license/itq/popup_select_version.png differ diff --git a/resources/image/license/itq/program_control_center.png b/resources/image/license/itq/program_control_center.png new file mode 100755 index 0000000..1874a52 Binary files /dev/null and b/resources/image/license/itq/program_control_center.png differ diff --git a/resources/image/license/itq/program_control_center_after_transfer.png b/resources/image/license/itq/program_control_center_after_transfer.png new file mode 100755 index 0000000..9850b8c Binary files /dev/null and b/resources/image/license/itq/program_control_center_after_transfer.png differ diff --git a/src/game/license_simulator/itq/simulator.js b/src/game/license_simulator/itq/simulator.js index d0412ca..fbd035a 100644 --- a/src/game/license_simulator/itq/simulator.js +++ b/src/game/license_simulator/itq/simulator.js @@ -2,8 +2,24 @@ var GAME_SCREEN_SIZE = { x: 1024, y: 768 } var Simulator = { + preload: function() { + this.game.load.image('windows_basic_koas', '../../../resources/image/license/itq/windows_basic_koas.png'); + // this.game.load.image('confirm_tester_number', './image/confirm_tester_number.png'); + // this.game.load.image('control_center', './image/control_center.png'); + // this.game.load.image('register_tester_number', './image/register_tester_number.png'); + // this.game.load.image('register_version', './image/register_version.png'); + // this.game.load.image('send_file', './image/send_file.png'); + // this.game.load.image('wait_paper', './image/wait_paper.png'); + // this.game.load.image('windows_basic_koas_execute', './image/windows_basic_koas_execute.png'); + }, + create: function() { - game.stage.backgroundColor = "#4d4d4d"; + // game.stage.backgroundColor = "#4d4d4d"; + + this.bgImage = game.add.sprite(game.world.centerX, game.world.centerY, 'windows_basic_koas'); + this.bgImage.anchor.set(0.5); + + this.initVariables(); // keyboard shortcut this.keyboardShortcut = new KeyboardShortcut(); @@ -16,9 +32,75 @@ var Simulator = { this.fullscreenButton = new FullscreenButton(); + + // tip + var textStyle = { font: "bold 40px Arial", fill: "#fff", align: "center", boundsAlignH: "center", boundsAlignV: "middle" }; + this.tipText = game.add.text(game.world.centerX, game.world.height - 200, "Tip text", textStyle); + this.tipText.setShadow(3, 3, 'rgba(0, 0, 0, 0.5)', 2); + this.tipText.stroke = "#333"; + this.tipText.strokeThickness = 5; + this.tipText.anchor.set(0.5); + + this.printContents(); }, - back: function() { + initVariables: function() { + this.stageIndex = 0; + + this.tips = [ + "파워포인트, 아래한글, 엑셀 프로그램을 실행해봅니다.\n다른 프로그램은 절대 실행하지 마세요. (특히 인터넷)", + "KOAS 수험자용 - 프로그램을 실행합니다.", + "수험표에 있는 수험번호를 정확히 입력합니다.", + "아래한글 또는 MS오피스\n2010 버전을 선택하세요.", + "입력한 내용이 정확한지 자세히 확인하고\n[확인] 버튼을 누르세요.", + "기다리는 동안 시험지를 받습니다.\n시험지 위에 볼펜으로\n자신의 [수험번호], [이름]을 적습니다.", + "시험이 시작되면\n아래한글 또는 파워포인트/엑셀 프로그램을\n실행합니다.", + "프로그램 실행 후 가장 먼저 파일을 저장합니다.\n라이브러리>문서>ITQ 폴더!!! '수험번호-이름'!!!", + "내 정답 파일이 목록에 잘 보이는지 확인한 후,\n[답안 전송] 버튼을 누르세요.", + "자주 저장하세요!!!\n슬라이드/페이지마다 / 시험 종료 5분전 / 시험 종료시\n답안 전송도 함께 하세요.", + ]; + }, + + prev: function() { + this.stageIndex--; + if(this.stageIndex < 0) + this.stageIndex = 0; + + this.printContents(); + }, + + next: function() { + this.stageIndex++; + if(this.stageIndex > 9) + this.stageIndex = 9; + + this.printContents(); + }, + + printContents: function() { + // this.bgImage.loadTexture(this.images[this.stageIndex]); + + this.tipText.text = this.tips[this.stageIndex]; + switch(this.stageIndex) { + case 0: + case 5: + case 7: + case 9: + this.tipText.addColor("#ff0000", 0); // red + break; + default: + this.tipText.addColor("#ffffff", 0); // white + break; + } + }, + + showImage: function(image, x, y) { + image.x = x; + image.y = y; + }, + + hideImage: function(image) { + image.y = 0; }, } \ No newline at end of file