Adding robots to the game and the ability to click on them
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://bm7knir4552j5
|
||||
Reference in New Issue
Block a user