Added mechanic that the gate blocks switching to another layer, added map button, moved small parts to fit buttons.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user