aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2025-10-02 14:35:25 +0200
committertpart <tpart120@proton.me>2025-10-02 14:35:25 +0200
commit10bd0b8a05c12c5f88cbd7e76521601817e70856 (patch)
treeaf77de740cd67b4c45e46386afa3fbd564c32e48
parenteb387907613e53be1e023080500046d8d4d20f4c (diff)
downloadhurrycurry-10bd0b8a05c12c5f88cbd7e76521601817e70856.tar
hurrycurry-10bd0b8a05c12c5f88cbd7e76521601817e70856.tar.bz2
hurrycurry-10bd0b8a05c12c5f88cbd7e76521601817e70856.tar.zst
Add mushroom crate (#393)
-rw-r--r--client/map/tile_factory.gd1
-rw-r--r--client/map/tiles/mushroom_crate.gd21
-rw-r--r--client/map/tiles/mushroom_crate.gd.uid1
-rw-r--r--client/map/tiles/mushroom_crate.tscn21
4 files changed, 44 insertions, 0 deletions
diff --git a/client/map/tile_factory.gd b/client/map/tile_factory.gd
index 5e54bdf9..5a7f7e3e 100644
--- a/client/map/tile_factory.gd
+++ b/client/map/tile_factory.gd
@@ -93,6 +93,7 @@ func produce(raw_name: String, position: Vector2i, neighbors: Array) -> Tile:
"flour-crate": return FlourCrate.new(ctx)
"leek-crate": return LeekCrate.new(ctx)
"lettuce-crate": return LettuceCrate.new(ctx)
+ "mushroom-crate": return MushroomCrate.new(ctx)
"steak-crate": return SteakCrate.new(ctx)
"rice-crate": return RiceCrate.new(ctx)
"strawberry-crate": return StrawberryCrate.new(ctx)
diff --git a/client/map/tiles/mushroom_crate.gd b/client/map/tiles/mushroom_crate.gd
new file mode 100644
index 00000000..de59b8f5
--- /dev/null
+++ b/client/map/tiles/mushroom_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 MushroomCrate
+extends Crate
+
+func _init(ctx: TileFactory.TileCC):
+ super(ctx)
+ base.add_child(load("res://map/tiles/mushroom_crate.tscn").instantiate())
diff --git a/client/map/tiles/mushroom_crate.gd.uid b/client/map/tiles/mushroom_crate.gd.uid
new file mode 100644
index 00000000..b0c54434
--- /dev/null
+++ b/client/map/tiles/mushroom_crate.gd.uid
@@ -0,0 +1 @@
+uid://by0dud130fog6
diff --git a/client/map/tiles/mushroom_crate.tscn b/client/map/tiles/mushroom_crate.tscn
new file mode 100644
index 00000000..01a5ed87
--- /dev/null
+++ b/client/map/tiles/mushroom_crate.tscn
@@ -0,0 +1,21 @@
+[gd_scene load_steps=3 format=3 uid="uid://dn4o5dyp7t021"]
+
+[ext_resource type="PackedScene" uid="uid://xdui0oya4lpb" path="res://map/tiles/crate.tscn" id="1_juoqu"]
+[ext_resource type="PackedScene" uid="uid://cc0jqiiywrrc0" path="res://map/items/mushroom.tscn" id="2_juoqu"]
+
+[node name="MushroomCrate" instance=ExtResource("1_juoqu")]
+
+[node name="Mushroom" parent="." index="1" instance=ExtResource("2_juoqu")]
+transform = Transform3D(0.3251556, 0, -0.94566053, 0.22043908, 0.9724513, 0.075795695, 0.91960883, -0.23310593, 0.316198, -0.18228972, 0.08433756, -0.16040182)
+
+[node name="Mushroom2" parent="." index="2" instance=ExtResource("2_juoqu")]
+transform = Transform3D(1.0213542, -0.27169096, -0.30499113, 0.30648074, 1.0527234, 0.08855964, 0.27000946, -0.16720423, 1.0531559, -0.15469912, 0.08611792, 0.22869657)
+
+[node name="Mushroom3" parent="." index="3" instance=ExtResource("2_juoqu")]
+transform = Transform3D(0.905218, -0.124258906, 0.40637422, 0.12618923, 0.9917586, 0.022162013, -0.40577894, 0.031218598, 0.91343796, 0.25116885, 0.080719024, 0.16321422)
+
+[node name="Mushroom4" parent="." index="4" instance=ExtResource("2_juoqu")]
+transform = Transform3D(-0.34809524, -0.05838425, -0.93563926, 0.1280063, 0.9857505, -0.10913467, 0.9286787, -0.15775698, -0.33566153, 0.2079333, 0.058740195, -0.1254655)
+
+[node name="Mushroom5" parent="." index="5" instance=ExtResource("2_juoqu")]
+transform = Transform3D(-0.09821522, -0.16101892, -0.9820523, 0.3132099, 0.9316722, -0.18408266, 0.94459164, -0.32566825, -0.041071653, 0, 0.15, 0.03306987)