diff options
| author | Sophia Pearson <codergal89@gmail.com> | 2022-09-08 08:15:07 +0200 |
|---|---|---|
| committer | Sophia Pearson <codergal89@gmail.com> | 2022-09-08 08:15:07 +0200 |
| commit | ddbb045f6387a8ba23b1210b27a745516a387a52 (patch) | |
| tree | 227cab257340fd0acd7ae08c5f0f6606e3548a49 /Scripts/Credits.cs | |
| parent | bb55a4038366ff25e353aedac821d9b691be48eb (diff) | |
| download | texty-ddbb045f6387a8ba23b1210b27a745516a387a52.tar.xz texty-ddbb045f6387a8ba23b1210b27a745516a387a52.zip | |
credits: add empty credits screen
Diffstat (limited to 'Scripts/Credits.cs')
| -rw-r--r-- | Scripts/Credits.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Scripts/Credits.cs b/Scripts/Credits.cs new file mode 100644 index 0000000..1955656 --- /dev/null +++ b/Scripts/Credits.cs @@ -0,0 +1,17 @@ +using Godot; + +namespace Texty.Scripts +{ + public class Credits : Node + { + public override void _UnhandledKeyInput(InputEventKey @event) + { + if (@event.Scancode == (uint)KeyList.Escape) + { + var menu = ResourceLoader.Load<PackedScene>("res://Scenes/Menus/MainMenu.tscn"); + GetTree().ChangeSceneTo(menu); + } + } + } +} + |
