Fixed light and object placement.

This commit is contained in:
=
2026-04-27 17:46:56 +02:00
parent 3060d3d6f7
commit 6a7f4690f2
8 changed files with 67 additions and 16 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ public partial class World : Node3D
foreach (var kvp in tileMeshes)
{
tilePlaceholders[kvp.Key] = new List<Placeholder>();
foreach (MeshInstance3D child in kvp.Value.GetChildren())
foreach (Node3D child in kvp.Value.GetChildren())
{
tilePlaceholders[kvp.Key].Add(new Placeholder(child.Name, child.Transform));
}
@@ -141,7 +141,7 @@ public partial class World : Node3D
int posX, posY;
while(currentLight < layerSize * 2)
while(currentLight < layerSize * layerSize / 2)
{
posX = rand.Next(layerSize);
posY = rand.Next(layerSize);