Add: BackButton

This commit is contained in:
2018-05-07 10:29:19 +09:00
parent 6a027658fa
commit 5d95abf86e
5 changed files with 117 additions and 48 deletions
+7 -3
View File
@@ -6,9 +6,13 @@ let MenuApp = {
create: function() {
this.game.stage.backgroundColor = '#4d4d4d';
let backButton = new BackButton( () => {
location.href = '../../web/client/login.html';
});
let screenBottom = new ScreenBottom(game);
screenBottom.makeBottomLine();
screenBottom.printBottomLeftText(playerName);
screenBottom.printBottomLeftText("게임 진행 정보");
screenBottom.printBottomCenterText("메뉴");
screenBottom.printBottomRightText(playerName);
@@ -81,8 +85,8 @@ let MenuApp = {
playingStageData = new StageData(language, level);
// console.log(playingStageData);
this.startState('TypingTestStage');
}
},
}