summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-09-13 19:28:59 +0200
committertpart <tpart120@proton.me>2024-09-13 19:29:04 +0200
commit1fcef10fe48679f9002d8b96b089b5e74a289152 (patch)
tree117d0cb78b5c17a8a9a841cd34d33254585d537d
parent1a3603848aede0e0633ad36a200d886db99a0a4e (diff)
downloadhurrycurry-1fcef10fe48679f9002d8b96b089b5e74a289152.tar
hurrycurry-1fcef10fe48679f9002d8b96b089b5e74a289152.tar.bz2
hurrycurry-1fcef10fe48679f9002d8b96b089b5e74a289152.tar.zst
Add patty and seared patty models; Implement items
-rw-r--r--client/map/item_factory.gd2
-rw-r--r--client/map/items/patty.gd21
-rw-r--r--client/map/items/patty.resbin0 -> 7798 bytes
-rw-r--r--client/map/items/patty.tscn10
-rw-r--r--client/map/items/seared_patty.gd21
-rw-r--r--client/map/items/seared_patty.resbin0 -> 6300 bytes
-rw-r--r--client/map/items/seared_patty.tscn10
7 files changed, 64 insertions, 0 deletions
diff --git a/client/map/item_factory.gd b/client/map/item_factory.gd
index ce5e3710..a9de9b3a 100644
--- a/client/map/item_factory.gd
+++ b/client/map/item_factory.gd
@@ -38,6 +38,8 @@ static func produce(full_name: String, owned_by: Node3D) -> Item:
"nigiri": return Nigiri.new(owned_by)
"steak": return Steak.new(owned_by)
"seared-steak": return SearedSteak.new(owned_by)
+ "patty": return Patty.new(owned_by)
+ "seared-patty": return SearedPatty.new(owned_by)
"rice": return Rice.new(owned_by)
"sliced-fish": return SlicedFish.new(owned_by)
"sliced-tomato": return SlicedTomato.new(owned_by)
diff --git a/client/map/items/patty.gd b/client/map/items/patty.gd
new file mode 100644
index 00000000..23d9879f
--- /dev/null
+++ b/client/map/items/patty.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 Patty
+extends Item
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ base.add_child(load("res://map/items/patty.tscn").instantiate())
diff --git a/client/map/items/patty.res b/client/map/items/patty.res
new file mode 100644
index 00000000..855d17e5
--- /dev/null
+++ b/client/map/items/patty.res
Binary files differ
diff --git a/client/map/items/patty.tscn b/client/map/items/patty.tscn
new file mode 100644
index 00000000..2d1bdab6
--- /dev/null
+++ b/client/map/items/patty.tscn
@@ -0,0 +1,10 @@
+[gd_scene load_steps=2 format=3 uid="uid://b1grk3gj58qbn"]
+
+[ext_resource type="ArrayMesh" uid="uid://wp3747kxnah1" path="res://map/items/patty.res" id="1_7tkah"]
+
+[node name="Patty" 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_7tkah")
+skeleton = NodePath("")
diff --git a/client/map/items/seared_patty.gd b/client/map/items/seared_patty.gd
new file mode 100644
index 00000000..3b6b528c
--- /dev/null
+++ b/client/map/items/seared_patty.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 SearedPatty
+extends Item
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ base.add_child(load("res://map/items/seared_patty.tscn").instantiate())
diff --git a/client/map/items/seared_patty.res b/client/map/items/seared_patty.res
new file mode 100644
index 00000000..d4dc6a44
--- /dev/null
+++ b/client/map/items/seared_patty.res
Binary files differ
diff --git a/client/map/items/seared_patty.tscn b/client/map/items/seared_patty.tscn
new file mode 100644
index 00000000..7ffe65f2
--- /dev/null
+++ b/client/map/items/seared_patty.tscn
@@ -0,0 +1,10 @@
+[gd_scene load_steps=2 format=3 uid="uid://dfriokxmga3c8"]
+
+[ext_resource type="ArrayMesh" uid="uid://dl8hstmmdkog4" path="res://map/items/seared_patty.res" id="1_gy1aa"]
+
+[node name="SearedPatty" 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_gy1aa")
+skeleton = NodePath("")