Added lowest layer to GameDate and Pathfinding. Fixed tile contentNode not being made visible.

This commit is contained in:
2026-05-09 10:07:16 +02:00
parent e00259cd31
commit 892365ff79
6 changed files with 6 additions and 8 deletions
+1
View File
@@ -144,5 +144,6 @@ public partial class Tile
{
wasVisited = true;
OnTileVisited?.Invoke(this, EventArgs.Empty);
ContentNode.Visible = true;
}
}
+1 -3
View File
@@ -47,10 +47,8 @@ public partial class World : Node3D
HandleRenderData(BuildRenderData(0));
//TODO: Remove for live build -> DEBUG ONLY
Robot robot = ResourceLoader.LoadRobotPrefab().Instantiate<Robot>();
robot.Name = $"Robot #{robots.Count + 1}";
robot.Name = "Bob";
robot.Position = map[0].tiles[0, 0].Position;
AddChild(robot);
robots.Add(robot);