From 5d35ff1e5a2b9181beaff4ebe918d7889f807de9 Mon Sep 17 00:00:00 2001 From: tpart Date: Tue, 13 Aug 2024 00:22:23 +0200 Subject: Add sliced fish model --- client/map/item_factory.gd | 2 ++ client/map/items/sliced_fish.gd | 21 +++++++++++++++++++++ client/map/items/sliced_fish.res | Bin 0 -> 5903 bytes client/map/items/sliced_fish.tscn | 10 ++++++++++ 4 files changed, 33 insertions(+) create mode 100644 client/map/items/sliced_fish.gd create mode 100644 client/map/items/sliced_fish.res create mode 100644 client/map/items/sliced_fish.tscn (limited to 'client') diff --git a/client/map/item_factory.gd b/client/map/item_factory.gd index a48d4e10..07054874 100644 --- a/client/map/item_factory.gd +++ b/client/map/item_factory.gd @@ -84,5 +84,7 @@ static func produce(name: String, owned_by: Node3D) -> Item: return SlicedTomatoSteakPlate.new(owned_by) "fish": return Fish.new(owned_by) + "sliced-fish": + return SlicedFish.new(owned_by) var t: return GenericItem.new(owned_by, t) diff --git a/client/map/items/sliced_fish.gd b/client/map/items/sliced_fish.gd new file mode 100644 index 00000000..41f6d5a4 --- /dev/null +++ b/client/map/items/sliced_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 . +# +class_name SlicedFish +extends Item + +func _init(owned_by_: Node3D): + super(owned_by_) + base.add_child(load("res://map/items/sliced_fish.tscn").instantiate()) diff --git a/client/map/items/sliced_fish.res b/client/map/items/sliced_fish.res new file mode 100644 index 00000000..9937a93b Binary files /dev/null and b/client/map/items/sliced_fish.res differ diff --git a/client/map/items/sliced_fish.tscn b/client/map/items/sliced_fish.tscn new file mode 100644 index 00000000..5e60f301 --- /dev/null +++ b/client/map/items/sliced_fish.tscn @@ -0,0 +1,10 @@ +[gd_scene load_steps=2 format=3 uid="uid://dxs04puo5ow7u"] + +[ext_resource type="ArrayMesh" uid="uid://c3pxaxxbv721y" path="res://map/items/sliced_fish.res" id="1_nt0xc"] + +[node name="SlicedFish" type="Node3D"] + +[node name="Mesh" type="MeshInstance3D" parent="."] +transform = Transform3D(0.1, 0, 0, 0, -4.37114e-09, -0.1, 0, 0.1, -4.37114e-09, 0, 0.045, 0) +mesh = ExtResource("1_nt0xc") +skeleton = NodePath("") -- cgit v1.2.3-70-g09d2