Added robot asset and worked on placeholders. Placeholders are now able to be added to the game and later replaced by objects (Tested with Robot for now)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using Godot;
|
||||
|
||||
public class Placeholder
|
||||
{
|
||||
string name;
|
||||
public Vector3 pos;
|
||||
|
||||
public Placeholder(string name, Vector3 pos){
|
||||
this.name = name;
|
||||
this.pos = pos;
|
||||
GD.Print($"Generated placeholder {this.name}");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://cng1pe6j20vrr
|
||||
@@ -9,6 +9,11 @@ public partial class ResourceLoader
|
||||
{
|
||||
return GD.Load<PackedScene>($"res://Prefabs/Layer.tscn");
|
||||
}
|
||||
|
||||
public static PackedScene LoadRobotPrefab()
|
||||
{
|
||||
return GD.Load<PackedScene>($"res://Prefabs/Robot.tscn");
|
||||
}
|
||||
|
||||
public static Dictionary<string, MeshInstance3D> LoadTiles()
|
||||
{
|
||||
|
||||
@@ -53,6 +53,7 @@ public class WFC
|
||||
["corner_down_right"] = new() { Direction.Down, Direction.Right },
|
||||
|
||||
["junction"] = new() { Direction.Up, Direction.Down, Direction.Left, Direction.Right },
|
||||
["gate"] = new() { Direction.Up, Direction.Down, Direction.Left, Direction.Right },
|
||||
|
||||
["border"] = new() { }
|
||||
};
|
||||
@@ -78,6 +79,8 @@ public class WFC
|
||||
["end_left"] = 0.2f,
|
||||
["end_right"] = 0.3f,
|
||||
|
||||
["gate"] = 0.1f,
|
||||
|
||||
["border"] = 0.0f
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user