aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2025-09-22 22:36:22 +0200
committertpart <tpart120@proton.me>2025-09-22 22:36:22 +0200
commit299ceb44a8955ba34379097d9d06ec2437f34651 (patch)
treef127ef5385d28d1df7cb0e93c9bf51194c7b5611
parente3032257713adf9f9f5b9d312f6b0cf2aed53404 (diff)
downloadhurrycurry-299ceb44a8955ba34379097d9d06ec2437f34651.tar
hurrycurry-299ceb44a8955ba34379097d9d06ec2437f34651.tar.bz2
hurrycurry-299ceb44a8955ba34379097d9d06ec2437f34651.tar.zst
Add rolled dough item and model (#393)
-rw-r--r--client/map/item_factory.gd1
-rw-r--r--client/map/items/dough.resbin12899 -> 11602 bytes
-rw-r--r--client/map/items/dough_material.tres5
-rw-r--r--client/map/items/rolled_dough.gd21
-rw-r--r--client/map/items/rolled_dough.gd.uid1
-rw-r--r--client/map/items/rolled_dough.resbin0 -> 8735 bytes
-rw-r--r--client/map/items/rolled_dough.tscn10
7 files changed, 38 insertions, 0 deletions
diff --git a/client/map/item_factory.gd b/client/map/item_factory.gd
index 4818dd5f..717b47c4 100644
--- a/client/map/item_factory.gd
+++ b/client/map/item_factory.gd
@@ -43,6 +43,7 @@ static func produce(full_name: String, owned_by: Node3D) -> Item:
"fish": return Fish.new(owned_by)
"flour": return Flour.new(owned_by)
"leek": return Leek.new(owned_by)
+ "rolled-dough": return RolledDough.new(owned_by)
"strawberry-mochi": return Mochi.new(owned_by, Color(.98, .70, .75))
"nigiri": return Nigiri.new(owned_by)
"steak": return Steak.new(owned_by)
diff --git a/client/map/items/dough.res b/client/map/items/dough.res
index 58637689..9ccb0c48 100644
--- a/client/map/items/dough.res
+++ b/client/map/items/dough.res
Binary files differ
diff --git a/client/map/items/dough_material.tres b/client/map/items/dough_material.tres
new file mode 100644
index 00000000..9de18768
--- /dev/null
+++ b/client/map/items/dough_material.tres
@@ -0,0 +1,5 @@
+[gd_resource type="StandardMaterial3D" format=3 uid="uid://cg7o7rn06bve1"]
+
+[resource]
+albedo_color = Color(0.7326888, 0.62363213, 0.49303913, 1)
+subsurf_scatter_strength = 1.0
diff --git a/client/map/items/rolled_dough.gd b/client/map/items/rolled_dough.gd
new file mode 100644
index 00000000..aae1acb5
--- /dev/null
+++ b/client/map/items/rolled_dough.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 RolledDough
+extends Item
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ base.add_child(load("res://map/items/rolled_dough.tscn").instantiate())
diff --git a/client/map/items/rolled_dough.gd.uid b/client/map/items/rolled_dough.gd.uid
new file mode 100644
index 00000000..a7f17f07
--- /dev/null
+++ b/client/map/items/rolled_dough.gd.uid
@@ -0,0 +1 @@
+uid://d2ipe2p5l210x
diff --git a/client/map/items/rolled_dough.res b/client/map/items/rolled_dough.res
new file mode 100644
index 00000000..194e8c55
--- /dev/null
+++ b/client/map/items/rolled_dough.res
Binary files differ
diff --git a/client/map/items/rolled_dough.tscn b/client/map/items/rolled_dough.tscn
new file mode 100644
index 00000000..04577c96
--- /dev/null
+++ b/client/map/items/rolled_dough.tscn
@@ -0,0 +1,10 @@
+[gd_scene load_steps=2 format=3 uid="uid://dwfvdvvgenyn5"]
+
+[ext_resource type="ArrayMesh" uid="uid://dtqjpqwxq5mvn" path="res://map/items/rolled_dough.res" id="1_uyf2v"]
+
+[node name="RolledDough" type="Node3D"]
+
+[node name="Mesh" type="MeshInstance3D" parent="."]
+transform = Transform3D(0.3, 0, 0, 0, 0.05, 0, 0, 0, 0.3, 0, 0.05, 0)
+mesh = ExtResource("1_uyf2v")
+skeleton = NodePath("")