aboutsummaryrefslogtreecommitdiff
path: root/client/map
diff options
context:
space:
mode:
Diffstat (limited to 'client/map')
-rw-r--r--client/map/tile_factory.gd1
-rw-r--r--client/map/tiles/bun_crate.gd21
-rw-r--r--client/map/tiles/bun_crate.gd.uid1
-rw-r--r--client/map/tiles/bun_crate.tscn34
4 files changed, 57 insertions, 0 deletions
diff --git a/client/map/tile_factory.gd b/client/map/tile_factory.gd
index fb72fe77..316fcfae 100644
--- a/client/map/tile_factory.gd
+++ b/client/map/tile_factory.gd
@@ -74,6 +74,7 @@ func produce(tile_name: String, position: Vector2i, neighbors: Array) -> Tile:
"house-roof": return HouseRoof.new(ctx)
"house-roof-chimney": return HouseRoofChimney.new(ctx)
+ "bun-crate": return BunCrate.new(ctx)
"cheese-crate": return CheeseCrate.new(ctx)
"coconut-crate": return CoconutCrate.new(ctx)
"dirty-plate-crate": return CounterBase.new(ctx)
diff --git a/client/map/tiles/bun_crate.gd b/client/map/tiles/bun_crate.gd
new file mode 100644
index 00000000..10a69aa8
--- /dev/null
+++ b/client/map/tiles/bun_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 BunCrate
+extends Crate
+
+func _init(ctx: TileFactory.TileCC):
+ super(ctx)
+ base.add_child(load("res://map/tiles/bun_crate.tscn").instantiate())
diff --git a/client/map/tiles/bun_crate.gd.uid b/client/map/tiles/bun_crate.gd.uid
new file mode 100644
index 00000000..508d423c
--- /dev/null
+++ b/client/map/tiles/bun_crate.gd.uid
@@ -0,0 +1 @@
+uid://db7xuasfi403l
diff --git a/client/map/tiles/bun_crate.tscn b/client/map/tiles/bun_crate.tscn
new file mode 100644
index 00000000..00c8ead5
--- /dev/null
+++ b/client/map/tiles/bun_crate.tscn
@@ -0,0 +1,34 @@
+[gd_scene load_steps=3 format=3 uid="uid://bg2ykqq6rnyx6"]
+
+[ext_resource type="ArrayMesh" uid="uid://btn7oh1v2k40p" path="res://map/tiles/crate.res" id="1_84iuk"]
+[ext_resource type="ArrayMesh" uid="uid://ke5s5itvrqce" path="res://map/items/bun.res" id="2_a48hy"]
+
+[node name="BunCrate" 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_84iuk")
+
+[node name="Bun" type="MeshInstance3D" parent="."]
+transform = Transform3D(0.35355335, -0.35355335, 0, 0.35355335, 0.35355335, 0, 0, 0, 0.5, 0.075, 0.15, -0.175)
+mesh = ExtResource("2_a48hy")
+
+[node name="Bun2" type="MeshInstance3D" parent="."]
+transform = Transform3D(0.35355335, -0.35355335, 0, 0.35355335, 0.35355335, 0, 0, 0, 0.5, -0.15, 0.15, -0.175)
+mesh = ExtResource("2_a48hy")
+
+[node name="Bun3" type="MeshInstance3D" parent="."]
+transform = Transform3D(0.35355335, -0.35355335, 0, 0.35355335, 0.35355335, 0, 0, 0, 0.5, 0.3, 0.15, -0.175)
+mesh = ExtResource("2_a48hy")
+
+[node name="Bun4" type="MeshInstance3D" parent="."]
+transform = Transform3D(-0.35355338, 0.35355338, -4.371139e-08, 0.35355338, 0.35355338, 0, 3.090862e-08, -3.090862e-08, -0.5, -0.09912277, 0.15, 0.175)
+mesh = ExtResource("2_a48hy")
+
+[node name="Bun5" type="MeshInstance3D" parent="."]
+transform = Transform3D(-0.35355338, 0.35355338, -4.371139e-08, 0.35355338, 0.35355338, 0, 3.090862e-08, -3.090862e-08, -0.5, 0.12587723, 0.15, 0.17499998)
+mesh = ExtResource("2_a48hy")
+
+[node name="Bun6" type="MeshInstance3D" parent="."]
+transform = Transform3D(-0.35355338, 0.35355338, -4.371139e-08, 0.35355338, 0.35355338, 0, 3.090862e-08, -3.090862e-08, -0.5, -0.3241228, 0.15, 0.17500001)
+mesh = ExtResource("2_a48hy")