diff options
author | nokoe <nokoe@mailbox.org> | 2024-06-25 00:14:48 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2024-06-25 00:15:24 +0200 |
commit | cf11d11099b8ddc03dc0c26f590193d35ba1bafd (patch) | |
tree | be36250dd56e7a064d09335379de9770101fd484 /client/map/items | |
parent | a0572f92fddb1ddc1f4d62f22f8ecfb1f623bf21 (diff) | |
download | hurrycurry-cf11d11099b8ddc03dc0c26f590193d35ba1bafd.tar hurrycurry-cf11d11099b8ddc03dc0c26f590193d35ba1bafd.tar.bz2 hurrycurry-cf11d11099b8ddc03dc0c26f590193d35ba1bafd.tar.zst |
more recipes, add tile factory
Diffstat (limited to 'client/map/items')
-rw-r--r-- | client/map/items/bread_slice.res | bin | 0 -> 5169 bytes | |||
-rw-r--r-- | client/map/items/bread_slice.tscn | 9 | ||||
-rw-r--r-- | client/map/items/burned_pot.gd | 23 | ||||
-rw-r--r-- | client/map/items/leek-pot.gd | 24 | ||||
-rw-r--r-- | client/map/items/leek.gd | 25 | ||||
-rw-r--r-- | client/map/items/leek.res | bin | 0 -> 11769 bytes | |||
-rw-r--r-- | client/map/items/leek.tscn | 10 | ||||
-rw-r--r-- | client/map/items/leek_tomato_juice_pot.gd | 24 | ||||
-rw-r--r-- | client/map/items/pot_fill.gd | 27 | ||||
-rw-r--r-- | client/map/items/pot_fill.res | bin | 0 -> 704 bytes | |||
-rw-r--r-- | client/map/items/pot_fill.tscn | 12 | ||||
-rw-r--r-- | client/map/items/slice.gd | 21 | ||||
-rw-r--r-- | client/map/items/tomato_juice_pot.gd | 21 | ||||
-rw-r--r-- | client/map/items/tomato_soup_pot.gd | 21 |
14 files changed, 217 insertions, 0 deletions
diff --git a/client/map/items/bread_slice.res b/client/map/items/bread_slice.res Binary files differnew file mode 100644 index 00000000..f78b75ae --- /dev/null +++ b/client/map/items/bread_slice.res diff --git a/client/map/items/bread_slice.tscn b/client/map/items/bread_slice.tscn new file mode 100644 index 00000000..3a435e17 --- /dev/null +++ b/client/map/items/bread_slice.tscn @@ -0,0 +1,9 @@ +[gd_scene load_steps=2 format=3 uid="uid://ccajf36datccs"] + +[ext_resource type="ArrayMesh" uid="uid://cwftutpb2lxca" path="res://map/items/bread_slice.res" id="1_yv77k"] + +[node name="BreadSlice" type="Node3D"] + +[node name="Mesh" type="MeshInstance3D" parent="."] +mesh = ExtResource("1_yv77k") +skeleton = NodePath("") diff --git a/client/map/items/burned_pot.gd b/client/map/items/burned_pot.gd new file mode 100644 index 00000000..dc749259 --- /dev/null +++ b/client/map/items/burned_pot.gd @@ -0,0 +1,23 @@ +# Undercooked - 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 BurnedPot +extends PotFill + +func _init(owned_by_: Node3D): + super(owned_by_) + steam.emitting = true + steam.color = Color(0., 0., 0.) + set_color(Color(.1, .1, .1)) diff --git a/client/map/items/leek-pot.gd b/client/map/items/leek-pot.gd new file mode 100644 index 00000000..3b16d3cf --- /dev/null +++ b/client/map/items/leek-pot.gd @@ -0,0 +1,24 @@ +# Undercooked - 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 LeekPot +extends Pot + +func _init(owned_by_: Node3D): + super(owned_by_) + var leek: Node3D = load("res://map/items/leek.tscn").instantiate() + leek.rotation_degrees = Vector3(14.5, 0, -25) + leek.position.x = .03 + base.add_child(leek) diff --git a/client/map/items/leek.gd b/client/map/items/leek.gd new file mode 100644 index 00000000..fd74bd68 --- /dev/null +++ b/client/map/items/leek.gd @@ -0,0 +1,25 @@ +# Undercooked - 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 Leek +extends Item + +func _init(owned_by_: Node3D): + super(owned_by_) + var leek: Node3D = load("res://map/items/leek.tscn").instantiate() + leek.rotation_degrees = Vector3(90, 0, 0) + leek.position.z = -.25 + leek.position.y = .1 + base.add_child(leek) diff --git a/client/map/items/leek.res b/client/map/items/leek.res Binary files differnew file mode 100644 index 00000000..4bf31849 --- /dev/null +++ b/client/map/items/leek.res diff --git a/client/map/items/leek.tscn b/client/map/items/leek.tscn new file mode 100644 index 00000000..1bd5a01b --- /dev/null +++ b/client/map/items/leek.tscn @@ -0,0 +1,10 @@ +[gd_scene load_steps=2 format=3 uid="uid://cmpwfkdnrm6e6"] + +[ext_resource type="ArrayMesh" uid="uid://cix4ji823kitw" path="res://map/items/leek.res" id="1_sum7m"] + +[node name="Leek" type="Node3D"] + +[node name="leek" type="MeshInstance3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 0.75, 0, 0, 0, 1, 0, 0, 0) +mesh = ExtResource("1_sum7m") +skeleton = NodePath("") diff --git a/client/map/items/leek_tomato_juice_pot.gd b/client/map/items/leek_tomato_juice_pot.gd new file mode 100644 index 00000000..fc6cb465 --- /dev/null +++ b/client/map/items/leek_tomato_juice_pot.gd @@ -0,0 +1,24 @@ +# Undercooked - 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 LeekTomatoJuicePot +extends TomatoJuicePot + +func _init(owned_by_: Node3D): + super(owned_by_) + var leek: Node3D = load("res://map/items/leek.tscn").instantiate() + leek.rotation_degrees = Vector3(14.5, 0, -25) + leek.position.x = .03 + base.add_child(leek) diff --git a/client/map/items/pot_fill.gd b/client/map/items/pot_fill.gd new file mode 100644 index 00000000..bd262c63 --- /dev/null +++ b/client/map/items/pot_fill.gd @@ -0,0 +1,27 @@ +# Undercooked - 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 PotFill +extends Pot + +var fill: MeshInstance3D = load("res://map/items/pot_fill.tscn").instantiate() + +func _init(owned_by_: Node3D): + super(owned_by_) + add_child(fill) + +func set_color(c: Color): + var mat: BaseMaterial3D = fill.get_active_material(0) + mat.albedo_color = c diff --git a/client/map/items/pot_fill.res b/client/map/items/pot_fill.res Binary files differnew file mode 100644 index 00000000..06c8590c --- /dev/null +++ b/client/map/items/pot_fill.res diff --git a/client/map/items/pot_fill.tscn b/client/map/items/pot_fill.tscn new file mode 100644 index 00000000..2b3a1eda --- /dev/null +++ b/client/map/items/pot_fill.tscn @@ -0,0 +1,12 @@ +[gd_scene load_steps=3 format=3 uid="uid://cwo8o5a6f5p4i"] + +[ext_resource type="ArrayMesh" uid="uid://bduftri3viodq" path="res://map/items/pot_fill.res" id="1_5suf6"] + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_djkvw"] +resource_local_to_scene = true + +[node name="PotFill" type="MeshInstance3D"] +transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0) +mesh = ExtResource("1_5suf6") +skeleton = NodePath("") +surface_material_override/0 = SubResource("StandardMaterial3D_djkvw") diff --git a/client/map/items/slice.gd b/client/map/items/slice.gd new file mode 100644 index 00000000..0449689a --- /dev/null +++ b/client/map/items/slice.gd @@ -0,0 +1,21 @@ +# Undercooked - 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 BreadSlice +extends Item + +func _init(owned_by_: Node3D): + super(owned_by_) + base.add_child(load("res://map/items/bread_slice.tscn").instantiate()) diff --git a/client/map/items/tomato_juice_pot.gd b/client/map/items/tomato_juice_pot.gd new file mode 100644 index 00000000..a27eeb1a --- /dev/null +++ b/client/map/items/tomato_juice_pot.gd @@ -0,0 +1,21 @@ +# Undercooked - 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 TomatoJuicePot +extends PotFill + +func _init(owned_by_: Node3D): + super(owned_by_) + set_color(Color(1., 0., 0.)) diff --git a/client/map/items/tomato_soup_pot.gd b/client/map/items/tomato_soup_pot.gd new file mode 100644 index 00000000..1194fae3 --- /dev/null +++ b/client/map/items/tomato_soup_pot.gd @@ -0,0 +1,21 @@ +# Undercooked - 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 TomatoSoupPot +extends PotFill + +func _init(owned_by_: Node3D): + super(owned_by_) + set_color(Color(1., .3, .2)) |