Add: animal icon for typing app button
This commit is contained in:
@@ -20,8 +20,11 @@ class AppAreaBG {
|
||||
AppAreaBG.COLOR_MOUSE_APP = 0xffce54;
|
||||
AppAreaBG.COLOR_TYPING_APP = 0x99ccff;
|
||||
|
||||
AppAreaBG.COLOR_TYPING_KOREAN = 0xffccff;
|
||||
AppAreaBG.COLOR_TYPING_ENGLISH = 0x77aaff;
|
||||
AppAreaBG.COLOR_TYPING_KOREAN = 0x88bbff;
|
||||
AppAreaBG.COLOR_TYPING_ENGLISH = 0xbbccff;
|
||||
|
||||
AppAreaBG.GAP_X = 10;
|
||||
AppAreaBG.GAP_Y = 10;
|
||||
AppAreaBG.GAP_Y = 10;
|
||||
|
||||
AppAreaBG.MARGIN_X = 20;
|
||||
AppAreaBG.MARGIN_Y = 10;
|
||||
@@ -18,9 +18,9 @@ class MenuApp {
|
||||
GAME_SCREEN_SIZE.x, 280
|
||||
);
|
||||
mouseBG.printText(
|
||||
"마 우 스 연 습 앱",
|
||||
game.world.centerX, 320,
|
||||
36, "#000", 0.05
|
||||
"마우스 연습 앱",
|
||||
game.world.centerX, 200,
|
||||
170, "#000", 0.03
|
||||
);
|
||||
|
||||
// typing app area
|
||||
@@ -29,9 +29,9 @@ class MenuApp {
|
||||
GAME_SCREEN_SIZE.x, 378
|
||||
);
|
||||
typingBG.printText(
|
||||
"타 자 연 습 앱",
|
||||
game.world.centerX, 370,
|
||||
36, "#000", 0.05
|
||||
"타 자 연 습 앱",
|
||||
game.world.centerX, 500,
|
||||
170, "#000", 0.03
|
||||
);
|
||||
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ class MenuTypingPractice {
|
||||
preload() {
|
||||
game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png');
|
||||
game.load.image('space_invaders', '../../../resources/image/icon/space_invaders.png');
|
||||
|
||||
Animal.loadResources();
|
||||
}
|
||||
|
||||
create() {
|
||||
@@ -27,25 +29,25 @@ class MenuTypingPractice {
|
||||
|
||||
// korean app area
|
||||
let koreanBG = new AppAreaBG(AppAreaBG.COLOR_TYPING_KOREAN, 1,
|
||||
0, 60 + AppAreaBG.GAP_Y,
|
||||
GAME_SCREEN_SIZE.x, 270
|
||||
);
|
||||
koreanBG.printText(
|
||||
"한 글 타 자",
|
||||
game.world.centerX, 320,
|
||||
36, "#000", 0.05
|
||||
AppAreaBG.MARGIN_X, 60 + AppAreaBG.GAP_Y,
|
||||
GAME_SCREEN_SIZE.x - AppAreaBG.MARGIN_X * 2, 270
|
||||
);
|
||||
// koreanBG.printText(
|
||||
// "한 글 타 자",
|
||||
// game.world.centerX, 320,
|
||||
// 36, "#000", 0.05
|
||||
// );
|
||||
|
||||
// english app area
|
||||
let englishBG = new AppAreaBG(AppAreaBG.COLOR_TYPING_ENGLISH, 1,
|
||||
0, 340,
|
||||
GAME_SCREEN_SIZE.x, 270
|
||||
);
|
||||
englishBG.printText(
|
||||
"영 문 타 자",
|
||||
game.world.centerX, 370,
|
||||
36, "#000", 0.05
|
||||
AppAreaBG.MARGIN_X, 340,
|
||||
GAME_SCREEN_SIZE.x - AppAreaBG.MARGIN_X * 2, 270
|
||||
);
|
||||
// englishBG.printText(
|
||||
// "영 문 타 자",
|
||||
// game.world.centerX, 370,
|
||||
// 36, "#000", 0.05
|
||||
// );
|
||||
|
||||
|
||||
// typing tab buttons
|
||||
@@ -113,9 +115,11 @@ class MenuTypingPractice {
|
||||
TypingAppButton.BUTTON_UPPER_POS_Y
|
||||
);
|
||||
|
||||
let iconImage = "snail_shadow";
|
||||
let typingPracticeButton = new TypingAppButton(
|
||||
TypingAppButton.TYPE_PRACTICE_KOREAN,
|
||||
posX, posY,
|
||||
TypingAppButton.NONE_ICON,
|
||||
iconImage,
|
||||
activeApp.KoreanName,
|
||||
() => {
|
||||
sessionStorageManager.playingAppID = activeApp.AppID;
|
||||
@@ -137,9 +141,11 @@ class MenuTypingPractice {
|
||||
TypingAppButton.BUTTON_LOWER_POS_Y
|
||||
);
|
||||
|
||||
let iconImage = "snail_shadow";
|
||||
let typingPracticeButton = new TypingAppButton(
|
||||
TypingAppButton.TYPE_PRACTICE_ENGLISH,
|
||||
posX, posY,
|
||||
TypingAppButton.NONE_ICON,
|
||||
iconImage,
|
||||
activeApp.KoreanName,
|
||||
() => {
|
||||
sessionStorageManager.playingAppID = activeApp.AppID;
|
||||
|
||||
@@ -6,6 +6,8 @@ class MenuTypingTest {
|
||||
preload() {
|
||||
game.load.image('icon_fullscreen', '../../../resources/image/icon/fullscreen_white.png');
|
||||
game.load.image('space_invaders', '../../../resources/image/icon/space_invaders.png');
|
||||
|
||||
Animal.loadResources();
|
||||
}
|
||||
|
||||
create() {
|
||||
@@ -113,9 +115,11 @@ class MenuTypingTest {
|
||||
TypingAppButton.BUTTON_UPPER_POS_Y
|
||||
);
|
||||
|
||||
let iconImage = "snail_shadow";
|
||||
let typingTestButton = new TypingAppButton(
|
||||
TypingAppButton.TYPE_TEST_KOREAN,
|
||||
posX, posY,
|
||||
TypingAppButton.NONE_ICON,
|
||||
iconImage,
|
||||
activeApp.KoreanName,
|
||||
() => {
|
||||
sessionStorageManager.playingAppID = activeApp.AppID;
|
||||
@@ -137,9 +141,11 @@ class MenuTypingTest {
|
||||
TypingAppButton.BUTTON_LOWER_POS_Y
|
||||
);
|
||||
|
||||
let iconImage = "snail_shadow";
|
||||
let typingTestButton = new TypingAppButton(
|
||||
TypingAppButton.TYPE_TEST_ENGLISH,
|
||||
posX, posY,
|
||||
TypingAppButton.NONE_ICON,
|
||||
iconImage,
|
||||
activeApp.KoreanName,
|
||||
() => {
|
||||
sessionStorageManager.playingAppID = activeApp.AppID;
|
||||
|
||||
Reference in New Issue
Block a user