diff options
Diffstat (limited to 'client/map/tiles/path.gd')
-rw-r--r-- | client/map/tiles/path.gd | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/client/map/tiles/path.gd b/client/map/tiles/path.gd index 65b7e62c..da7bb4fe 100644 --- a/client/map/tiles/path.gd +++ b/client/map/tiles/path.gd @@ -14,7 +14,13 @@ # along with this program. If not, see <https://www.gnu.org/licenses/>. # class_name Path -extends Tile +extends FloorLike -func get_base_mesh(): - return preload("res://map/tiles/path.tscn").instantiate() +static func fm_id() -> String: + return "path" + +static func floor_mesh() -> MeshInstance3D: + var node = super() + node.material_override = preload("res://map/tiles/path_material.tres") + node.position.y = -0.06 + return node |