Mennu kinda done

This commit is contained in:
MarcEricMartel 2023-06-11 12:15:56 -04:00
parent 73804ee4bc
commit 3b9bcefd3f

View File

@ -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<PackedScene>("res://levels/test_level.tscn");
var instance = scene.Instantiate();
GetNode<Node>("/root/").AddChild(instance);
this.QueueFree();
break;
case _gameType.LOCAL: