From cf11d11099b8ddc03dc0c26f590193d35ba1bafd Mon Sep 17 00:00:00 2001 From: nokoe Date: Tue, 25 Jun 2024 00:14:48 +0200 Subject: more recipes, add tile factory --- client/map/items/bread_slice.res | Bin 0 -> 5169 bytes client/map/items/bread_slice.tscn | 9 +++++++++ client/map/items/burned_pot.gd | 23 +++++++++++++++++++++++ client/map/items/leek-pot.gd | 24 ++++++++++++++++++++++++ client/map/items/leek.gd | 25 +++++++++++++++++++++++++ client/map/items/leek.res | Bin 0 -> 11769 bytes client/map/items/leek.tscn | 10 ++++++++++ client/map/items/leek_tomato_juice_pot.gd | 24 ++++++++++++++++++++++++ client/map/items/pot_fill.gd | 27 +++++++++++++++++++++++++++ client/map/items/pot_fill.res | Bin 0 -> 704 bytes client/map/items/pot_fill.tscn | 12 ++++++++++++ client/map/items/slice.gd | 21 +++++++++++++++++++++ client/map/items/tomato_juice_pot.gd | 21 +++++++++++++++++++++ client/map/items/tomato_soup_pot.gd | 21 +++++++++++++++++++++ 14 files changed, 217 insertions(+) create mode 100644 client/map/items/bread_slice.res create mode 100644 client/map/items/bread_slice.tscn create mode 100644 client/map/items/burned_pot.gd create mode 100644 client/map/items/leek-pot.gd create mode 100644 client/map/items/leek.gd create mode 100644 client/map/items/leek.res create mode 100644 client/map/items/leek.tscn create mode 100644 client/map/items/leek_tomato_juice_pot.gd create mode 100644 client/map/items/pot_fill.gd create mode 100644 client/map/items/pot_fill.res create mode 100644 client/map/items/pot_fill.tscn create mode 100644 client/map/items/slice.gd create mode 100644 client/map/items/tomato_juice_pot.gd create mode 100644 client/map/items/tomato_soup_pot.gd (limited to 'client/map/items') diff --git a/client/map/items/bread_slice.res b/client/map/items/bread_slice.res new file mode 100644 index 00000000..f78b75ae Binary files /dev/null and b/client/map/items/bread_slice.res differ 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 . +# +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 . +# +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 . +# +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 new file mode 100644 index 00000000..4bf31849 Binary files /dev/null and b/client/map/items/leek.res differ 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 . +# +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 . +# +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 new file mode 100644 index 00000000..06c8590c Binary files /dev/null and b/client/map/items/pot_fill.res differ 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 . +# +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 . +# +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 . +# +class_name TomatoSoupPot +extends PotFill + +func _init(owned_by_: Node3D): + super(owned_by_) + set_color(Color(1., .3, .2)) -- cgit v1.2.3-70-g09d2