aboutsummaryrefslogtreecommitdiff
path: root/client/map/tiles
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-09-16 15:53:29 +0200
committertpart <tpart120@proton.me>2024-09-16 15:53:29 +0200
commita5ae525cb15903b697fc67751130080ff30df585 (patch)
treeb00318114df01885501e3295bd8142967af549b7 /client/map/tiles
parent180b786bff761c9301898ca732d7bf24af6f14c7 (diff)
downloadhurrycurry-a5ae525cb15903b697fc67751130080ff30df585.tar
hurrycurry-a5ae525cb15903b697fc67751130080ff30df585.tar.bz2
hurrycurry-a5ae525cb15903b697fc67751130080ff30df585.tar.zst
Add cheese crate model; Implement tile
Diffstat (limited to 'client/map/tiles')
-rw-r--r--client/map/tiles/cheese_crate.gd21
-rw-r--r--client/map/tiles/cheese_crate.tscn24
2 files changed, 45 insertions, 0 deletions
diff --git a/client/map/tiles/cheese_crate.gd b/client/map/tiles/cheese_crate.gd
new file mode 100644
index 00000000..67591899
--- /dev/null
+++ b/client/map/tiles/cheese_crate.gd
@@ -0,0 +1,21 @@
+# Hurry Curry! - a game about cooking
+# Copyright 2024 tpart
+#
+# 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 CheeseCrate
+extends Crate
+
+func _init(rename: String, neighbors: Array):
+ super(rename, neighbors)
+ base.add_child(load("res://map/tiles/cheese_crate.tscn").instantiate())
diff --git a/client/map/tiles/cheese_crate.tscn b/client/map/tiles/cheese_crate.tscn
new file mode 100644
index 00000000..7a1bd93a
--- /dev/null
+++ b/client/map/tiles/cheese_crate.tscn
@@ -0,0 +1,24 @@
+[gd_scene load_steps=3 format=3 uid="uid://do7vpyky2hdd0"]
+
+[ext_resource type="PackedScene" uid="uid://xdui0oya4lpb" path="res://map/tiles/crate.tscn" id="1_7kkwt"]
+[ext_resource type="PackedScene" uid="uid://0lbjf2sie4rk" path="res://map/items/cheese.tscn" id="2_3iu16"]
+
+[node name="CheeseCrate" instance=ExtResource("1_7kkwt")]
+
+[node name="Cheese" parent="." index="1" instance=ExtResource("2_3iu16")]
+transform = Transform3D(0.939693, 0, 0.34202, 0, 1, 0, -0.34202, 0, 0.939693, -0.155919, 0.03, -0.239194)
+
+[node name="Cheese2" parent="." index="2" instance=ExtResource("2_3iu16")]
+transform = Transform3D(-0.766045, 0, -0.642788, 0, 1, 0, 0.642788, 0, -0.766045, 0.143516, 0.03, -0.129342)
+
+[node name="Cheese3" parent="." index="3" instance=ExtResource("2_3iu16")]
+transform = Transform3D(0.822958, 0, -0.568102, 0, 1, 0, 0.568102, 0, 0.822958, -0.139973, 0.03, 0.178952)
+
+[node name="Cheese4" parent="." index="4" instance=ExtResource("2_3iu16")]
+transform = Transform3D(-0.909381, 0, 0.415964, 0, 1, 0, -0.415964, 0, -0.909381, 0.17718, 0.03, 0.178952)
+
+[node name="Cheese5" parent="." index="5" instance=ExtResource("2_3iu16")]
+transform = Transform3D(-0.909381, 0, 0.415964, 0, 1, 0, -0.415964, 0, -0.909381, 0.102617, 0.25, -0.074814)
+
+[node name="Cheese6" parent="." index="6" instance=ExtResource("2_3iu16")]
+transform = Transform3D(-0.11381, 0, 0.993503, 0, 1, 0, -0.993503, 0, -0.11381, -0.207069, 0.25, 0.0827757)