diff options
author | tpart <tpart120@proton.me> | 2025-09-22 22:36:22 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2025-09-22 22:36:22 +0200 |
commit | 299ceb44a8955ba34379097d9d06ec2437f34651 (patch) | |
tree | f127ef5385d28d1df7cb0e93c9bf51194c7b5611 /client/map/items | |
parent | e3032257713adf9f9f5b9d312f6b0cf2aed53404 (diff) | |
download | hurrycurry-299ceb44a8955ba34379097d9d06ec2437f34651.tar hurrycurry-299ceb44a8955ba34379097d9d06ec2437f34651.tar.bz2 hurrycurry-299ceb44a8955ba34379097d9d06ec2437f34651.tar.zst |
Add rolled dough item and model (#393)
Diffstat (limited to 'client/map/items')
-rw-r--r-- | client/map/items/dough.res | bin | 12899 -> 11602 bytes | |||
-rw-r--r-- | client/map/items/dough_material.tres | 5 | ||||
-rw-r--r-- | client/map/items/rolled_dough.gd | 21 | ||||
-rw-r--r-- | client/map/items/rolled_dough.gd.uid | 1 | ||||
-rw-r--r-- | client/map/items/rolled_dough.res | bin | 0 -> 8735 bytes | |||
-rw-r--r-- | client/map/items/rolled_dough.tscn | 10 |
6 files changed, 37 insertions, 0 deletions
diff --git a/client/map/items/dough.res b/client/map/items/dough.res Binary files differindex 58637689..9ccb0c48 100644 --- a/client/map/items/dough.res +++ b/client/map/items/dough.res 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 Binary files differnew file mode 100644 index 00000000..194e8c55 --- /dev/null +++ b/client/map/items/rolled_dough.res 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("") |