initial commit

This commit is contained in:
Booklordofthedings 2024-05-12 09:49:07 +02:00
commit fe3761d448
122 changed files with 3439 additions and 0 deletions

29
Menus/Death/Death_Menu.cs Normal file
View file

@ -0,0 +1,29 @@
using Godot;
using System;
public partial class Death_Menu : Control
{
[Export] Label ToLabel;
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
ToLabel.Text = "Score: " + ((int)(GetNode("/root/Globals").Get("score"))).ToString() + "\n" +
"Highscore: " + ((int)GetNode("/root/Globals").Call("GetHighscore")).ToString();
}
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
}
public void _on_resume_btn_pressed()
{
GetTree().ChangeSceneToFile("res://Game/MainGame/Game.tscn");
}
public void _on_end_pressed()
{
GetTree().ChangeSceneToFile("res://Menus/MainMenu/MainMenu.tscn");
}
}