Added exploration node to DSL and worked on vertical pathfinding (Closed gates blocked horizontal movement as well)
This commit is contained in:
@@ -14,7 +14,7 @@ public partial class GameData
|
||||
public static bool canMove = true;
|
||||
public static int maxRobotCount = 1000;
|
||||
public static List<Robot> robots = new List<Robot>();
|
||||
public static float robotSpeed = 5f;
|
||||
public static float robotSpeed = 20f;
|
||||
public static float tileWidth = 6;
|
||||
public static float tileHeight = 4;
|
||||
|
||||
|
||||
@@ -52,7 +52,8 @@ public partial class ResourceLoader
|
||||
{
|
||||
{ new MoveNode(), GD.Load<PackedScene>($"res://Prefabs/DSL/MoveNode.tscn") },
|
||||
{ new HarvestNode(), GD.Load<PackedScene>($"res://Prefabs/DSL/HarvestNode.tscn") },
|
||||
{ new CraftNode(), GD.Load<PackedScene>($"res://Prefabs/DSL/CraftNode.tscn") }
|
||||
{ new CraftNode(), GD.Load<PackedScene>($"res://Prefabs/DSL/CraftNode.tscn") },
|
||||
{ new ExploreNode(), GD.Load<PackedScene>($"res://Prefabs/DSL/ExploreNode.tscn") }
|
||||
};
|
||||
return nodes;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public partial class UIHandler : Control
|
||||
|
||||
if (Input.IsActionJustPressed("map"))
|
||||
{
|
||||
map.ShowMap();
|
||||
map.ShowMap(false);
|
||||
}
|
||||
|
||||
if (Input.IsActionJustPressed("menu"))
|
||||
|
||||
Reference in New Issue
Block a user