diff options
| author | tpart <tpart120@proton.me> | 2025-10-12 18:02:32 +0200 |
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2025-10-12 18:02:32 +0200 |
| commit | c7ac4afb934529b966c5229ba01436a4f2deff68 (patch) | |
| tree | cb998641b306e21771356e9ce75e01f834bbe99b /client/map | |
| parent | 3eebaa3b0331a4b51a48aa63156ad17587bf72d3 (diff) | |
| download | hurrycurry-c7ac4afb934529b966c5229ba01436a4f2deff68.tar hurrycurry-c7ac4afb934529b966c5229ba01436a4f2deff68.tar.bz2 hurrycurry-c7ac4afb934529b966c5229ba01436a4f2deff68.tar.zst | |
Add cooked cheese pizza (#393)
Diffstat (limited to 'client/map')
| -rw-r--r-- | client/map/item_factory.gd | 1 | ||||
| -rw-r--r-- | client/map/items/cooked_cheese_pizza.tscn | 34 | ||||
| -rw-r--r-- | client/map/items/pizza.gd | 28 | ||||
| -rw-r--r-- | client/map/items/pizza.gd.uid | 1 | ||||
| -rw-r--r-- | client/map/items/pizza.res | bin | 12837 -> 12872 bytes |
5 files changed, 64 insertions, 0 deletions
diff --git a/client/map/item_factory.gd b/client/map/item_factory.gd index 26e3eb40..028b9a15 100644 --- a/client/map/item_factory.gd +++ b/client/map/item_factory.gd @@ -78,6 +78,7 @@ static func produce_inner(item: ItemName, owned_by: Node3D) -> Item: "pot": return Pot.new(owned_by) "basket": return Basket.new(owned_by) "pan": return Pan.new(owned_by) + "pizza": return Pizza.new(owned_by) "foodprocessor": return FoodProcessor.new(owned_by) "glass": return Glass.new(owned_by) "plate": return Plate.new(owned_by) diff --git a/client/map/items/cooked_cheese_pizza.tscn b/client/map/items/cooked_cheese_pizza.tscn new file mode 100644 index 00000000..69337046 --- /dev/null +++ b/client/map/items/cooked_cheese_pizza.tscn @@ -0,0 +1,34 @@ +[gd_scene load_steps=6 format=3 uid="uid://cl1etmr26p262"] + +[ext_resource type="ArrayMesh" uid="uid://cwstqugiw76tc" path="res://map/items/pizza.res" id="1_vnyro"] + +[sub_resource type="Gradient" id="Gradient_xogo6"] +offsets = PackedFloat32Array(0, 0.14086306, 0.84237576, 1) +colors = PackedColorArray(0.52, 0.104000024, 0, 1, 0.7294118, 0.23921569, 0.11764706, 1, 1, 0.7391868, 0.13702077, 1, 1, 0.88600004, 0.43, 1) + +[sub_resource type="FastNoiseLite" id="FastNoiseLite_7am5t"] +frequency = 0.0139 +fractal_octaves = 3 +fractal_gain = 0.2 + +[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_gf4r2"] +width = 256 +height = 256 +noise = SubResource("FastNoiseLite_7am5t") +color_ramp = SubResource("Gradient_xogo6") + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_vnyro"] +resource_name = "Material.001" +cull_mode = 2 +albedo_texture = SubResource("NoiseTexture2D_gf4r2") +uv1_scale = Vector3(0.5, 0.5, 0.5) +uv1_offset = Vector3(0.5, 0, 0.5) +uv1_triplanar = true + +[node name="CookedCheesePizza" 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_vnyro") +skeleton = NodePath("") +surface_material_override/1 = SubResource("StandardMaterial3D_vnyro") diff --git a/client/map/items/pizza.gd b/client/map/items/pizza.gd new file mode 100644 index 00000000..1a6c1df8 --- /dev/null +++ b/client/map/items/pizza.gd @@ -0,0 +1,28 @@ +# 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 Pizza +extends Item + +func _init(owned_by_: Node3D): + super(owned_by_) + +func add_contents(contents: Array[String]): + base.add_child(load("res://map/items/cooked_cheese_pizza.tscn").instantiate()) + for c: String in contents: + match c: + "sliced-cheese": continue + "tomato-juice": continue + _: base.add_child(UnknownItem.new(owned_by, c)) diff --git a/client/map/items/pizza.gd.uid b/client/map/items/pizza.gd.uid new file mode 100644 index 00000000..0a7a85c5 --- /dev/null +++ b/client/map/items/pizza.gd.uid @@ -0,0 +1 @@ +uid://3ptl5whwr0s5 diff --git a/client/map/items/pizza.res b/client/map/items/pizza.res Binary files differindex c29eab9a..2f8b3b97 100644 --- a/client/map/items/pizza.res +++ b/client/map/items/pizza.res |