Adding robots to the game and the ability to click on them

This commit is contained in:
=
2026-04-26 13:44:15 +02:00
parent bd9de785b4
commit 21199f8026
12 changed files with 155 additions and 9 deletions
+2
View File
@@ -8,5 +8,7 @@ public partial class GameData
public static int currentLayer = 0;
//The layer that is currently visible
public static int visibleLayer = 0;
//Determines if the player can move the camera or not (Necessary for input and options menu)
public static bool canMove = true;
}
+19
View File
@@ -0,0 +1,19 @@
using Godot;
public partial class UIHandler : Control
{
public override void _Ready()
{
}
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
if (Input.IsActionJustPressed("codingwindow"))
{
GetNode<Panel>("./CodingWindow").Visible = !GetNode<Panel>("./CodingWindow").Visible;
}
}
}
+1
View File
@@ -0,0 +1 @@
uid://bm7knir4552j5