Add: images
|
After Width: | Height: | Size: 128 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 93 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 36 KiB |
@@ -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;
|
||||
},
|
||||
|
||||
}
|
||||