Removed popup from the game, added simple options and menu. Added spawn to tiles and reworked content spawning
This commit is contained in:
@@ -90,7 +90,7 @@ public partial class World : Node3D
|
||||
{
|
||||
Robot robot = ResourceLoader.LoadRobotPrefab().Instantiate<Robot>();
|
||||
robot.Name = $"Robot #{robots.Count + 1}";
|
||||
robot.Position = map[0].tiles[rand.Next(layerSize), rand.Next(layerSize)].Position;
|
||||
robot.Position = map[0].tiles[0,0].Position;
|
||||
AddChild(robot);
|
||||
robots.Add(robot);
|
||||
}
|
||||
@@ -113,6 +113,15 @@ public partial class World : Node3D
|
||||
|
||||
map[layer] = layerNode;
|
||||
}
|
||||
map[0].tiles[0,0].wasVisited = true;
|
||||
map[0].tiles[0,0].containsDecoration = true;
|
||||
map[0].tiles[0,0].containsLight = true;
|
||||
map[0].tiles[0,0].containsResource = false;
|
||||
}
|
||||
|
||||
private void HandleTileVisit(int level)
|
||||
{
|
||||
HandleRenderData(BuildRenderData(level));
|
||||
}
|
||||
|
||||
private List<TileRenderData> BuildRenderData(int layerIndex)
|
||||
|
||||
Reference in New Issue
Block a user