Light and decorations adjusted. Added all resource and light spawn points

This commit is contained in:
=
2026-04-28 10:48:32 +02:00
parent 92a86c13b7
commit eccaec859f
4 changed files with 8 additions and 7 deletions
+3 -1
View File
@@ -141,10 +141,12 @@ public partial class World : Node3D
int posX, posY;
while(currentLight < layerSize * layerSize / 4)
while(currentLight < layerSize * 3)
{
posX = rand.Next(layerSize);
posY = rand.Next(layerSize);
//Skip already placed lights and skip junction and gate as they do not contain lights
if(layer.tiles[posX, posY].collapsedMesh == "junction" || layer.tiles[posX, posY].collapsedMesh == "gate") continue;
if(layer.tiles[posX, posY].containsLight) continue;
layer.tiles[posX, posY].containsLight = true;
currentLight++;