aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-08-12 23:27:51 +0200
committertpart <tpart120@proton.me>2024-08-12 23:27:51 +0200
commita6a20bf99f0ecca1505dc977455ff784a7f85c5b (patch)
tree31d10c6b2f1525d87157681abd137b2b8c5f7692 /client
parent3483902113a08f4147b3ae38e56df90ba4aecf94 (diff)
downloadhurrycurry-a6a20bf99f0ecca1505dc977455ff784a7f85c5b.tar
hurrycurry-a6a20bf99f0ecca1505dc977455ff784a7f85c5b.tar.bz2
hurrycurry-a6a20bf99f0ecca1505dc977455ff784a7f85c5b.tar.zst
Add fish crate model
Diffstat (limited to 'client')
-rw-r--r--client/map/tile_factory.gd2
-rw-r--r--client/map/tiles/fish_crate.gd21
-rw-r--r--client/map/tiles/fish_crate.tscn21
3 files changed, 44 insertions, 0 deletions
diff --git a/client/map/tile_factory.gd b/client/map/tile_factory.gd
index 76c67103..ccad982e 100644
--- a/client/map/tile_factory.gd
+++ b/client/map/tile_factory.gd
@@ -28,6 +28,8 @@ static func produce(tile_name: String, node_name: String, neighbors: Array) -> T
return CounterBase.new(node_name, neighbors)
"flour-crate":
return FlourCounter.new(node_name, neighbors)
+ "fish-crate":
+ return FishCrate.new(node_name, neighbors)
"oven":
return Oven.new(node_name, neighbors)
"raw-steak-crate":
diff --git a/client/map/tiles/fish_crate.gd b/client/map/tiles/fish_crate.gd
new file mode 100644
index 00000000..289bcce3
--- /dev/null
+++ b/client/map/tiles/fish_crate.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 FishCrate
+extends Crate
+
+func _init(rename: String, neighbors: Array):
+ super(rename, neighbors)
+ base.add_child(load("res://map/tiles/fish_crate.tscn").instantiate())
diff --git a/client/map/tiles/fish_crate.tscn b/client/map/tiles/fish_crate.tscn
new file mode 100644
index 00000000..91d45f44
--- /dev/null
+++ b/client/map/tiles/fish_crate.tscn
@@ -0,0 +1,21 @@
+[gd_scene load_steps=3 format=3 uid="uid://d0u4ym5vny6v3"]
+
+[ext_resource type="PackedScene" uid="uid://xdui0oya4lpb" path="res://map/tiles/crate.tscn" id="1_uotdf"]
+[ext_resource type="PackedScene" uid="uid://dom5n7h7l7sr8" path="res://map/items/fish.tscn" id="3_p6tbn"]
+
+[node name="LeekCrate" instance=ExtResource("1_uotdf")]
+
+[node name="Fish" parent="." index="1" instance=ExtResource("3_p6tbn")]
+transform = Transform3D(-0.449443, -0.771467, -0.450378, 0.791587, -0.577595, 0.199436, -0.413994, -0.266878, 0.870279, -0.214561, 0.395904, -0.219162)
+
+[node name="Fish2" parent="." index="2" instance=ExtResource("3_p6tbn")]
+transform = Transform3D(-0.711008, -0.637308, 0.297164, 0.702745, -0.65893, 0.268256, 0.024849, 0.399563, 0.916369, -0.214561, 0.387099, 0.251797)
+
+[node name="Fish3" parent="." index="3" instance=ExtResource("3_p6tbn")]
+transform = Transform3D(0.570404, 0.618182, 0.540824, 0.777163, -0.619291, -0.111795, 0.265817, 0.484076, -0.833674, 0.258679, 0.387099, 0.251797)
+
+[node name="Fish4" parent="." index="4" instance=ExtResource("3_p6tbn")]
+transform = Transform3D(0.392672, 0.829406, 0.397361, 0.896997, -0.25003, -0.364529, -0.202991, 0.499572, -0.842154, 0.224403, 0.387099, -0.0202113)
+
+[node name="Fish5" parent="." index="5" instance=ExtResource("3_p6tbn")]
+transform = Transform3D(0.667773, 0.721732, 0.18216, 0.744349, -0.64583, -0.169849, -0.00494065, 0.249011, -0.968488, 0.162187, 0.340659, -0.264269)