From d205ac89f2074b2b4e3553b9b6a3c546bfc64360 Mon Sep 17 00:00:00 2001 From: Renge Date: Mon, 9 May 2022 11:32:50 -0400 Subject: [PATCH] feat: move start game to mainmenu --- src/shattered_sword/Scenes/MainMenu.ts | 41 ++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/src/shattered_sword/Scenes/MainMenu.ts b/src/shattered_sword/Scenes/MainMenu.ts index 9c419d2..c46f3f8 100644 --- a/src/shattered_sword/Scenes/MainMenu.ts +++ b/src/shattered_sword/Scenes/MainMenu.ts @@ -13,6 +13,8 @@ import Levels from "./Levels"; import RandomMapGenerator from "../Tools/RandomMapGenerator"; import GameLevel from "./GameLevel"; import InputWrapper from "../Tools/InputWrapper"; +import TextInput from "../../Wolfie2D/Nodes/UIElements/TextInput"; +import Forest from "./Forest"; export default class MainMenu extends Scene { protected config: ConfigManager; @@ -22,6 +24,7 @@ export default class MainMenu extends Scene { private mainMenu: Layer; private about: Layer; private control: Layer; + private seedInput: TextInput; // private rmg: RandomMapGenerator; loadScene(): void { @@ -39,8 +42,14 @@ export default class MainMenu extends Scene { // The main menu this.mainMenu = this.addUILayer("mainMenu"); + const seedHint =