diff options
author | tpart <tpart120@proton.me> | 2024-09-13 21:37:44 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-13 21:37:44 +0200 |
commit | 389ab241b8e83bd591419eccc608ee3fb545e4a0 (patch) | |
tree | 34a1ff8fef0201b22448bf28e55200741bd5251b | |
parent | 12b181dadf5b0f58fbcf3c4c13b739259c5e6317 (diff) | |
download | hurrycurry-389ab241b8e83bd591419eccc608ee3fb545e4a0.tar hurrycurry-389ab241b8e83bd591419eccc608ee3fb545e4a0.tar.bz2 hurrycurry-389ab241b8e83bd591419eccc608ee3fb545e4a0.tar.zst |
Add lettuce and sliced lettuce models; Implement items
-rw-r--r-- | client/map/item_factory.gd | 4 | ||||
-rw-r--r-- | client/map/items/lettuce.gd | 21 | ||||
-rw-r--r-- | client/map/items/lettuce.res | bin | 0 -> 17892 bytes | |||
-rw-r--r-- | client/map/items/lettuce.tscn | 10 | ||||
-rw-r--r-- | client/map/items/sliced_lettuce.gd | 21 | ||||
-rw-r--r-- | client/map/items/sliced_lettuce.res | bin | 0 -> 5178 bytes | |||
-rw-r--r-- | client/map/items/sliced_lettuce.tscn | 10 |
7 files changed, 65 insertions, 1 deletions
diff --git a/client/map/item_factory.gd b/client/map/item_factory.gd index 38d9f1c0..97edd66f 100644 --- a/client/map/item_factory.gd +++ b/client/map/item_factory.gd @@ -42,9 +42,11 @@ static func produce(full_name: String, owned_by: Node3D) -> Item: "seared-patty": return SearedPatty.new(owned_by) "rice": return Rice.new(owned_by) "sliced-fish": return SlicedFish.new(owned_by) - "sliced-tomato": return SlicedTomato.new(owned_by) "strawberry": return Strawberry.new(owned_by) "tomato": return Tomato.new(owned_by) + "sliced-tomato": return SlicedTomato.new(owned_by) + "lettuce": return Lettuce.new(owned_by) + "sliced-lettuce": return SlicedLettuce.new(owned_by) "pot": return Pot.new(owned_by, contents) "foodprocessor": return FoodProcessor.new(owned_by, contents) diff --git a/client/map/items/lettuce.gd b/client/map/items/lettuce.gd new file mode 100644 index 00000000..fef657dc --- /dev/null +++ b/client/map/items/lettuce.gd @@ -0,0 +1,21 @@ +# Hurry Curry! - a game about cooking +# Copyright 2024 tpart +# +# 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 Lettuce +extends Item + +func _init(owned_by_: Node3D): + super(owned_by_) + base.add_child(load("res://map/items/lettuce.tscn").instantiate()) diff --git a/client/map/items/lettuce.res b/client/map/items/lettuce.res Binary files differnew file mode 100644 index 00000000..0ae1a660 --- /dev/null +++ b/client/map/items/lettuce.res diff --git a/client/map/items/lettuce.tscn b/client/map/items/lettuce.tscn new file mode 100644 index 00000000..c4ca7cb9 --- /dev/null +++ b/client/map/items/lettuce.tscn @@ -0,0 +1,10 @@ +[gd_scene load_steps=2 format=3 uid="uid://cuf8vwqk6xujk"] + +[ext_resource type="ArrayMesh" uid="uid://cyomlupimgm43" path="res://map/items/lettuce.res" id="1_axcdp"] + +[node name="Lettuce" type="Node3D"] + +[node name="Mesh" type="MeshInstance3D" parent="."] +transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0) +mesh = ExtResource("1_axcdp") +skeleton = NodePath("") diff --git a/client/map/items/sliced_lettuce.gd b/client/map/items/sliced_lettuce.gd new file mode 100644 index 00000000..18f27fff --- /dev/null +++ b/client/map/items/sliced_lettuce.gd @@ -0,0 +1,21 @@ +# Hurry Curry! - a game about cooking +# Copyright 2024 tpart +# +# 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 SlicedLettuce +extends Item + +func _init(owned_by_: Node3D): + super(owned_by_) + base.add_child(load("res://map/items/sliced_lettuce.tscn").instantiate()) diff --git a/client/map/items/sliced_lettuce.res b/client/map/items/sliced_lettuce.res Binary files differnew file mode 100644 index 00000000..4680f32b --- /dev/null +++ b/client/map/items/sliced_lettuce.res diff --git a/client/map/items/sliced_lettuce.tscn b/client/map/items/sliced_lettuce.tscn new file mode 100644 index 00000000..3fb675c6 --- /dev/null +++ b/client/map/items/sliced_lettuce.tscn @@ -0,0 +1,10 @@ +[gd_scene load_steps=2 format=3 uid="uid://c8tjoqcdn1gpj"] + +[ext_resource type="ArrayMesh" uid="uid://jkb0e8d584uo" path="res://map/items/sliced_lettuce.res" id="1_y7x7n"] + +[node name="SlicedLettuce" type="Node3D"] + +[node name="Mesh" type="MeshInstance3D" parent="."] +transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0) +mesh = ExtResource("1_y7x7n") +skeleton = NodePath("") |