mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Floor system
This commit is contained in:
parent
8c17738371
commit
c1afa466d3
14 changed files with 199 additions and 86 deletions
|
|
@ -136,6 +136,16 @@ public partial class MainMenu : CanvasLayer
|
|||
SpawnMenu<OptionsMenu>(OptionsMenuTemplate, SubMenuHolder);
|
||||
}
|
||||
|
||||
private void OnRogueliteButtonPressed()
|
||||
{
|
||||
GlobalState.Session.NewSession();
|
||||
GlobalState.Session.AllowSaving = false;
|
||||
GlobalState.Session.Difficulty = DifficultyLevel.Normal;
|
||||
GlobalState.Session.GameMode = GameMode.Roguelite;
|
||||
GlobalState.Session.LevelNumber = 0;
|
||||
GlobalState.Instance.GotoScene("uid://bf1kqr3o6r6d4");
|
||||
}
|
||||
|
||||
private void _on_mainmenu_button_pressed()
|
||||
{
|
||||
if (MainMenuScene != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue