aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/map/tile_factory.gd1
-rw-r--r--client/map/tiles/potato_crate.gd21
-rw-r--r--client/map/tiles/potato_crate.gd.uid1
-rw-r--r--client/map/tiles/potato_crate.tscn38
4 files changed, 61 insertions, 0 deletions
diff --git a/client/map/tile_factory.gd b/client/map/tile_factory.gd
index 1162d44d..ba7d8ac3 100644
--- a/client/map/tile_factory.gd
+++ b/client/map/tile_factory.gd
@@ -85,6 +85,7 @@ func produce(tile_name: String, position: Vector2i, neighbors: Array) -> Tile:
"rice-crate": return RiceCrate.new(ctx)
"strawberry-crate": return StrawberryCrate.new(ctx)
"tomato-crate": return TomatoCrate.new(ctx)
+ "potato-crate": return PotatoCrate.new(ctx)
var t:
push_warning("tile %s unknown" % t)
diff --git a/client/map/tiles/potato_crate.gd b/client/map/tiles/potato_crate.gd
new file mode 100644
index 00000000..d5fdd8e9
--- /dev/null
+++ b/client/map/tiles/potato_crate.gd
@@ -0,0 +1,21 @@
+# Hurry Curry! - a game about cooking
+# Copyright (C) 2025 Hurry Curry! contributors
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, version 3 of the License only.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <https://www.gnu.org/licenses/>.
+#
+class_name PotatoCrate
+extends Crate
+
+func _init(ctx: TileFactory.TileCC):
+ super(ctx)
+ base.add_child(load("res://map/tiles/potato_crate.tscn").instantiate())
diff --git a/client/map/tiles/potato_crate.gd.uid b/client/map/tiles/potato_crate.gd.uid
new file mode 100644
index 00000000..cf021ee9
--- /dev/null
+++ b/client/map/tiles/potato_crate.gd.uid
@@ -0,0 +1 @@
+uid://tyivqc0wc6mi
diff --git a/client/map/tiles/potato_crate.tscn b/client/map/tiles/potato_crate.tscn
new file mode 100644
index 00000000..9ced8854
--- /dev/null
+++ b/client/map/tiles/potato_crate.tscn
@@ -0,0 +1,38 @@
+[gd_scene load_steps=3 format=3 uid="uid://c764nf6aojyvx"]
+
+[ext_resource type="ArrayMesh" uid="uid://btn7oh1v2k40p" path="res://map/tiles/crate.res" id="1_3ga66"]
+[ext_resource type="ArrayMesh" uid="uid://hj2dib0t8em3" path="res://map/items/potato.res" id="2_3ga66"]
+
+[node name="PotatoCrate" type="Node3D"]
+
+[node name="Crate" type="MeshInstance3D" parent="."]
+transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
+mesh = ExtResource("1_3ga66")
+
+[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
+transform = Transform3D(1.9395866e-08, 0.44372568, 0.074883275, 0.43525255, 0.019013587, -0.112666346, -0.11425943, 0.0724292, -0.42918384, -0.2245059, 0.2020701, -0.17833076)
+mesh = ExtResource("2_3ga66")
+
+[node name="MeshInstance3D6" type="MeshInstance3D" parent="."]
+transform = Transform3D(1.9395866e-08, 0.44372568, 0.074883275, 0.43525255, 0.019013587, -0.112666346, -0.11425943, 0.0724292, -0.42918384, -0.0090149045, 0.35778415, -0.17833076)
+mesh = ExtResource("2_3ga66")
+
+[node name="MeshInstance3D7" type="MeshInstance3D" parent="."]
+transform = Transform3D(0.07296345, 0.06498954, -0.43926376, 0.43169037, 0.09389621, 0.08559741, 0.10401813, -0.4352699, -0.04712081, 0.015495509, 0.3663897, 0.14554687)
+mesh = ExtResource("2_3ga66")
+
+[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
+transform = Transform3D(-0.12614171, -0.25575554, -0.3481054, 0.43195862, -0.07468642, -0.10165464, -1.5851693e-08, -0.3626445, 0.26643753, -0.18310761, 0.21690153, 0.19903006)
+mesh = ExtResource("2_3ga66")
+
+[node name="MeshInstance3D3" type="MeshInstance3D" parent="."]
+transform = Transform3D(0.08798323, 0.09877133, 0.43012, 0.44131497, -0.019691661, -0.08575129, 1.8829489e-08, 0.43858457, -0.1007151, 0.19106877, 0.19821344, -0.2371732)
+mesh = ExtResource("2_3ga66")
+
+[node name="MeshInstance3D5" type="MeshInstance3D" parent="."]
+transform = Transform3D(-0.061073676, -0.043150976, 0.4437432, 0.4453779, 0.0143979285, 0.062698804, -0.020209989, 0.4476948, 0.040753797, 0.1624504, 0.19821344, -0.01481241)
+mesh = ExtResource("2_3ga66")
+
+[node name="MeshInstance3D4" type="MeshInstance3D" parent="."]
+transform = Transform3D(-6.4949006e-09, -0.148586, 0.31689468, 0.35, -1.5298985e-08, 2.6817607e-17, 1.3851905e-08, 0.31689468, 0.148586, 0.23736578, 0.175, 0.22895074)
+mesh = ExtResource("2_3ga66")