Add: AppInfoManager

This commit is contained in:
2018-05-09 10:08:09 +09:00
parent 024e114077
commit f44cabcb01
13 changed files with 124 additions and 16 deletions
+5 -1
View File
@@ -14,6 +14,7 @@ let MenuApp = {
let backButton = new BackButton( () => {
sessionStorage.removeItem("playerName");
sessionStorage.removeItem("playerUserID");
sessionStorage.removeItem("playingAppName");
location.href = '../../web/client/login.html';
});
@@ -24,6 +25,9 @@ let MenuApp = {
// app icons
let space_invaders = new AppButton(AppButton.TYPE_MOUSE, "icon_fullscreen",
() => {
sessionPlayingAppName = "space_invaders";
sessionStorage.setItem("playingAppName", sessionPlayingAppName);
location.href = '../../web/client/start.html';
}
);
@@ -41,7 +45,7 @@ let MenuApp = {
let screenBottom = new ScreenBottom(game);
screenBottom.makeBottomLine();
// screenBottom.printBottomLeftText("게임 진행 정보");
screenBottom.printBottomCenterText("메뉴");
screenBottom.printBottomCenterText(appInfoManager.getAppNameKorean(sessionPlayingAppName));
screenBottom.printBottomRightText(sessionPlayerName);
// this.loadTypingStageData();