Added mechanic that the gate blocks switching to another layer, added map button, moved small parts to fit buttons.

This commit is contained in:
=
2026-05-02 20:08:18 +02:00
parent a2c35c44cb
commit 7f13505759
9 changed files with 111 additions and 67 deletions
+6 -3
View File
@@ -13,11 +13,14 @@ public partial class Map : PanelContainer
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
}
public void ShowMap()
{
Visible = !Visible;
if (!Visible) return;
foreach (Node node in grid.GetChildren())
{
grid.RemoveChild(node);
@@ -45,7 +48,7 @@ public partial class Map : PanelContainer
{
label.Text = "\u2193 Z | \u2192 X";
}
else if(z == -1)
else if (z == -1)
{
label.Text = x.ToString();
}
@@ -54,7 +57,7 @@ public partial class Map : PanelContainer
label.Text = z.ToString();
}
grid.AddChild(label);
continue;
continue;
}
texture = new TextureRect();
if (tiles[x, z].wasVisited)