Add: MainColor
This commit is contained in:
@@ -1,37 +1,13 @@
|
||||
var MainMenu = {
|
||||
|
||||
preload: function() {
|
||||
game.load.image('tile_choco', '../../../resources/image/background/tile_choco.png');
|
||||
game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png');
|
||||
},
|
||||
|
||||
create: function() {
|
||||
game.stage.backgroundColor = '#4d4d4d';
|
||||
|
||||
// mouse app area
|
||||
var mouseBG = new AppAreaBG(
|
||||
AppAreaBG.COLOR_MOUSE_APP, 1,
|
||||
0, 60,
|
||||
GAME_SCREEN_SIZE.x, 280
|
||||
);
|
||||
mouseBG.printText(
|
||||
"마우스 연습 앱",
|
||||
game.world.centerX, 200,
|
||||
170, "#000", 0.03
|
||||
);
|
||||
|
||||
// typing app area
|
||||
var typingBG = new AppAreaBG(
|
||||
AppAreaBG.COLOR_TYPING_APP, 1,
|
||||
0, 340,
|
||||
GAME_SCREEN_SIZE.x, 378
|
||||
);
|
||||
typingBG.printText(
|
||||
"타 자 연 습 앱",
|
||||
game.world.centerX, 490,
|
||||
170, "#000", 0.03
|
||||
);
|
||||
|
||||
|
||||
// keyboard shortcut
|
||||
this.keyboardShortcut = new KeyboardShortcut();
|
||||
this.keyboardShortcut.addCallback(
|
||||
@@ -41,6 +17,11 @@ var MainMenu = {
|
||||
"menu_app" // callerClassName
|
||||
);
|
||||
|
||||
// bg
|
||||
game.add.graphics()
|
||||
.beginFill(MainColor.LIGHT_CHOCO_HEX, 1)
|
||||
.drawRect(0, 0,GAME_SCREEN_SIZE.x, GAME_SCREEN_SIZE.y);
|
||||
|
||||
// top ui
|
||||
// var screenTopUI = new ScreenTopUI();
|
||||
// screenTopUI.makeBackButton( (function() { this.back(); }).bind(this) );
|
||||
@@ -68,7 +49,6 @@ var MainMenu = {
|
||||
this.loadAppData();
|
||||
},
|
||||
|
||||
|
||||
back: function() {
|
||||
sessionStorageManager.clear();
|
||||
location.href = '../../web/client/login.html';
|
||||
|
||||
Reference in New Issue
Block a user