aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-08-12 15:23:57 +0200
committertpart <tpart120@proton.me>2024-08-12 15:24:04 +0200
commit5568d2c43a9f598f3af1bfa2bf3699f503e19e3e (patch)
tree90fad20fb81d642a7c8624b383d8a338babc1490 /client
parentada25eeb227b201b1519ff46a888476a832256e6 (diff)
downloadhurrycurry-5568d2c43a9f598f3af1bfa2bf3699f503e19e3e.tar
hurrycurry-5568d2c43a9f598f3af1bfa2bf3699f503e19e3e.tar.bz2
hurrycurry-5568d2c43a9f598f3af1bfa2bf3699f503e19e3e.tar.zst
Add fish model
Diffstat (limited to 'client')
-rw-r--r--client/map/item_factory.gd2
-rw-r--r--client/map/items/fish.gd21
-rw-r--r--client/map/items/fish.resbin0 -> 28432 bytes
-rw-r--r--client/map/items/fish.tscn10
4 files changed, 33 insertions, 0 deletions
diff --git a/client/map/item_factory.gd b/client/map/item_factory.gd
index d4d0b054..a48d4e10 100644
--- a/client/map/item_factory.gd
+++ b/client/map/item_factory.gd
@@ -82,5 +82,7 @@ static func produce(name: String, owned_by: Node3D) -> Item:
return SlicedTomatoPlate.new(owned_by)
"sliced-tomato-steak-plate":
return SlicedTomatoSteakPlate.new(owned_by)
+ "fish":
+ return Fish.new(owned_by)
var t:
return GenericItem.new(owned_by, t)
diff --git a/client/map/items/fish.gd b/client/map/items/fish.gd
new file mode 100644
index 00000000..7aaf3153
--- /dev/null
+++ b/client/map/items/fish.gd
@@ -0,0 +1,21 @@
+# Hurry Curry! - 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 Fish
+extends Item
+
+func _init(owned_by_: Node3D):
+ super(owned_by_)
+ base.add_child(load("res://map/items/fish.tscn").instantiate())
diff --git a/client/map/items/fish.res b/client/map/items/fish.res
new file mode 100644
index 00000000..65f099bb
--- /dev/null
+++ b/client/map/items/fish.res
Binary files differ
diff --git a/client/map/items/fish.tscn b/client/map/items/fish.tscn
new file mode 100644
index 00000000..2ca59cf9
--- /dev/null
+++ b/client/map/items/fish.tscn
@@ -0,0 +1,10 @@
+[gd_scene load_steps=2 format=3 uid="uid://dom5n7h7l7sr8"]
+
+[ext_resource type="ArrayMesh" uid="uid://dgsvwyghdj0es" path="res://map/items/fish.res" id="1_ysgnj"]
+
+[node name="Fish" type="Node3D"]
+
+[node name="Mesh" type="MeshInstance3D" parent="."]
+transform = Transform3D(-4.37114e-10, 0.01, 0, -0.01, -4.37114e-10, 0, 0, 0, 0.01, 0, 0.0754571, 0)
+mesh = ExtResource("1_ysgnj")
+skeleton = NodePath("")