aboutsummaryrefslogtreecommitdiff
path: root/client/map/tiles
diff options
context:
space:
mode:
Diffstat (limited to 'client/map/tiles')
-rw-r--r--client/map/tiles/crate.resbin0 -> 4840 bytes
-rw-r--r--client/map/tiles/crate.tscn10
-rw-r--r--client/map/tiles/leek_crate.gd21
-rw-r--r--client/map/tiles/leek_crate.tscn18
4 files changed, 49 insertions, 0 deletions
diff --git a/client/map/tiles/crate.res b/client/map/tiles/crate.res
new file mode 100644
index 00000000..1d1183c5
--- /dev/null
+++ b/client/map/tiles/crate.res
Binary files differ
diff --git a/client/map/tiles/crate.tscn b/client/map/tiles/crate.tscn
new file mode 100644
index 00000000..55da257b
--- /dev/null
+++ b/client/map/tiles/crate.tscn
@@ -0,0 +1,10 @@
+[gd_scene load_steps=2 format=3 uid="uid://xdui0oya4lpb"]
+
+[ext_resource type="ArrayMesh" uid="uid://btn7oh1v2k40p" path="res://map/tiles/crate.res" id="1_qu7f0"]
+
+[node name="Crate" type="Node3D"]
+
+[node name="Mesh" type="MeshInstance3D" parent="."]
+transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
+mesh = ExtResource("1_qu7f0")
+skeleton = NodePath("")
diff --git a/client/map/tiles/leek_crate.gd b/client/map/tiles/leek_crate.gd
new file mode 100644
index 00000000..f2a76416
--- /dev/null
+++ b/client/map/tiles/leek_crate.gd
@@ -0,0 +1,21 @@
+# Undercooked - a game about cooking
+# Copyright 2024 nokoe
+#
+# 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 LeekCrate
+extends Crate
+
+func _init(rename: String, neighbors: Array):
+ super(rename, neighbors)
+ base.add_child(load("res://map/tiles/leek_crate.tscn").instantiate())
diff --git a/client/map/tiles/leek_crate.tscn b/client/map/tiles/leek_crate.tscn
new file mode 100644
index 00000000..ae1c27ea
--- /dev/null
+++ b/client/map/tiles/leek_crate.tscn
@@ -0,0 +1,18 @@
+[gd_scene load_steps=3 format=3 uid="uid://bkrly2qyttgwh"]
+
+[ext_resource type="PackedScene" uid="uid://xdui0oya4lpb" path="res://map/tiles/crate.tscn" id="1_l8q4i"]
+[ext_resource type="PackedScene" uid="uid://cmpwfkdnrm6e6" path="res://map/items/leek.tscn" id="2_n2ove"]
+
+[node name="LeekCrate" instance=ExtResource("1_l8q4i")]
+
+[node name="Leek" parent="." index="1" instance=ExtResource("2_n2ove")]
+transform = Transform3D(0.931041, -0.363595, -0.0310037, 0.362361, 0.91115, 0.196215, -0.0430938, -0.193919, 0.980071, -0.136853, 0.0640022, -0.204823)
+
+[node name="Leek2" parent="." index="2" instance=ExtResource("2_n2ove")]
+transform = Transform3D(0.998583, -0.046823, 0.0361874, 0.0216211, 1.10258, 0.394088, -0.0486266, -0.471297, 0.91836, 0.103182, 0.0457853, -0.223387)
+
+[node name="Leek3" parent="." index="3" instance=ExtResource("2_n2ove")]
+transform = Transform3D(0.931041, -0.363595, -0.0310037, 0.355324, 0.922644, -0.149908, 0.0831111, 0.128554, 0.988214, -0.136853, 0.0939193, 0.253195)
+
+[node name="Leek4" parent="." index="4" instance=ExtResource("2_n2ove")]
+transform = Transform3D(0.846401, 0.566373, 0.246663, -0.36055, 1.01849, -0.386833, -0.39193, 0.286178, 0.888548, 0.0709044, 0.0457853, 0.191268)