summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSophia Pearson <codergal89@gmail.com>2022-05-27 23:55:07 +0200
committerSophia Pearson <codergal89@gmail.com>2022-05-27 23:55:07 +0200
commit852f68409f5b6ac56a5f4b006002de755c5dd71c (patch)
tree53072996340682652bce1804caf741cb9cfd7ed9
parent0477b9ab34817165ac7b11ad77a6740995f55892 (diff)
downloadtexty-852f68409f5b6ac56a5f4b006002de755c5dd71c.tar.xz
texty-852f68409f5b6ac56a5f4b006002de755c5dd71c.zip
texty: add basic script
-rw-r--r--Scenes/Texty.tscn4
-rw-r--r--Scripts/Texty.cs19
2 files changed, 22 insertions, 1 deletions
diff --git a/Scenes/Texty.tscn b/Scenes/Texty.tscn
index 9b8c9b8..7b46cf4 100644
--- a/Scenes/Texty.tscn
+++ b/Scenes/Texty.tscn
@@ -1,9 +1,11 @@
-[gd_scene load_steps=3 format=2]
+[gd_scene load_steps=4 format=2]
[ext_resource path="res://Scenes/Game.tscn" type="PackedScene" id=1]
[ext_resource path="res://Scenes/StartMenu.tscn" type="PackedScene" id=2]
+[ext_resource path="res://Scripts/Texty.cs" type="Script" id=3]
[node name="Texty" type="Node"]
+script = ExtResource( 3 )
[node name="Game" parent="." instance=ExtResource( 1 )]
visible = false
diff --git a/Scripts/Texty.cs b/Scripts/Texty.cs
new file mode 100644
index 0000000..8497f29
--- /dev/null
+++ b/Scripts/Texty.cs
@@ -0,0 +1,19 @@
+using Godot;
+
+namespace Texty.Scripts
+{
+ public class Texty : Node
+ {
+
+ public Game Game;
+ public StartMenu StartMenu;
+
+ public override void _Ready()
+ {
+ Game = GetNode<Game>(nameof(Game));
+ StartMenu = GetNode<StartMenu>(nameof(StartMenu));
+ }
+
+ }
+}
+