From 3b9bcefd3faf44c6e68af14bcd493642afd12d65 Mon Sep 17 00:00:00 2001 From: MarcEricMartel Date: Sun, 11 Jun 2023 12:15:56 -0400 Subject: [PATCH] Mennu kinda done --- menu/start_game_menu.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/menu/start_game_menu.cs b/menu/start_game_menu.cs index f377326..897864f 100644 --- a/menu/start_game_menu.cs +++ b/menu/start_game_menu.cs @@ -126,14 +126,17 @@ public partial class start_game_menu : Control { _quit.Pressed += () => { _sndBtn.Play(); State = _state.QUIT;}; _cancel.Pressed += () => { _sndBtn.Play(); State = _state.START;}; _no.Pressed += () => { _sndBtn.Play(); State = _state.START;}; - _yes.Pressed += () => { _sndBtn.Play(); GetTree().Quit();}; + _yes.Pressed += () => GetTree().Quit(); State = _state.START; } private void startGame(_gameType type, long id = 0) { switch (type) { case _gameType.SINGLE: - + var scene = GD.Load("res://levels/test_level.tscn"); + var instance = scene.Instantiate(); + GetNode("/root/").AddChild(instance); + this.QueueFree(); break; case _gameType.LOCAL: