Fix: screen top ui, screen bottom ui
This commit is contained in:
@@ -11,12 +11,14 @@ class TypingTest {
|
||||
|
||||
game.stage.backgroundColor = '#4d4d4d';
|
||||
|
||||
// top
|
||||
let backButton = new BackButton( () => {
|
||||
// top ui
|
||||
let screenTopUI = new ScreenTopUI();
|
||||
screenTopUI.makeBackButton( () => {
|
||||
sessionStorageManager.resetPlayingAppData();
|
||||
|
||||
location.href = '../../web/client/menu_typing_test.html';
|
||||
});
|
||||
screenTopUI.makeFullScreenButton();
|
||||
|
||||
|
||||
// this.animalOnTitle = new Animal(Animal.TYPE_ON_TITLE, game.world.centerX - 200, 30);
|
||||
this.animalOnTitle = new Animal(Animal.TYPE_ON_TITLE, game.world.centerX, GAME_SCREEN_SIZE.y - 110);
|
||||
@@ -27,8 +29,6 @@ class TypingTest {
|
||||
this.averageTypingSpeedText = new AverageTypingSpeed();
|
||||
this.contentProgressText = new ContentProgress();
|
||||
|
||||
let fullscreenButton = new FullscreenButton(game);
|
||||
|
||||
|
||||
// typing content
|
||||
let typingContentBG = new TypingContentBG();
|
||||
@@ -103,11 +103,11 @@ class TypingTest {
|
||||
}
|
||||
|
||||
|
||||
// bottom
|
||||
let screenBottom = new ScreenBottom();
|
||||
screenBottom.printBottomLeftTextWithBestRecord(sessionStorageManager.bestRecord);
|
||||
screenBottom.printBottomCenterText(sessionStorageManager.playingAppKoreanName);
|
||||
screenBottom.printBottomRightText(sessionStorageManager.playerName);
|
||||
// bottom ui
|
||||
let screenBottomUI = new ScreenBottomUI();
|
||||
screenBottomUI.printLeftTextWithBestRecord(sessionStorageManager.bestRecord);
|
||||
screenBottomUI.printCenterText(sessionStorageManager.playingAppKoreanName);
|
||||
screenBottomUI.printRightText(sessionStorageManager.playerName);
|
||||
|
||||
|
||||
this.startGame();
|
||||
|
||||
Reference in New Issue
Block a user