Add: animal icon for typing app button
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user