diff options
author | nokoe <nokoe@mailbox.org> | 2025-06-21 01:52:33 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2025-06-21 01:52:33 +0200 |
commit | 16f72d038c37a2f5dd60a960f034ee2c3ff53f5b (patch) | |
tree | 9af64de6fe8b2b47a5e46b87adabde94ccd8b88b /client/map/tiles/path.gd | |
parent | 44ca1fe3780b76c73e03070fc20189607c414860 (diff) | |
download | hurrycurry-16f72d038c37a2f5dd60a960f034ee2c3ff53f5b.tar hurrycurry-16f72d038c37a2f5dd60a960f034ee2c3ff53f5b.tar.bz2 hurrycurry-16f72d038c37a2f5dd60a960f034ee2c3ff53f5b.tar.zst |
generalize floor meshing; fixes #278
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 |