Added more symbols to the game, added gates blocking pathfinding and improved DSL feedback system with enum for better control and UX
This commit is contained in:
@@ -14,6 +14,7 @@ public partial class Layer : Node3D
|
||||
public bool hasContentGenerated = false;
|
||||
public Vector2I gateCoordinate;
|
||||
public List<string> currentResources;
|
||||
public bool isGateOpen = false;
|
||||
|
||||
// Called when the node enters the scene tree for the first time.
|
||||
public override void _Ready()
|
||||
@@ -89,7 +90,7 @@ public partial class Layer : Node3D
|
||||
var node = new Node3D
|
||||
{
|
||||
Position = tile.Position,
|
||||
Visible = false
|
||||
Visible = tile.collapsedMesh != null && tile.collapsedMesh == "gate"
|
||||
};
|
||||
decorationRoot.AddChild(node);
|
||||
|
||||
@@ -115,7 +116,7 @@ public partial class Layer : Node3D
|
||||
for (int z = 0; z < layerSize; z++)
|
||||
{
|
||||
//Exclude spawn from border generation
|
||||
if(x == 0 && z == 0) continue;
|
||||
if(x == 0 && z == 0 && level == 0) continue;
|
||||
if (!IsBorder(x, z))
|
||||
continue;
|
||||
|
||||
@@ -155,6 +156,7 @@ public partial class Layer : Node3D
|
||||
if (tiles[posX, posY].tileMeshes.ContainsKey("gate"))
|
||||
{
|
||||
tiles[posX, posY].Collapse("gate");
|
||||
tiles[posX, posY].containsDecoration = true;
|
||||
gateCoordinate = new Vector2I(posX, posY);
|
||||
Propagate(gateCoordinate);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user