diff options
author | nokoe <nokoe@mailbox.org> | 2025-09-29 20:40:15 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2025-09-29 20:40:49 +0200 |
commit | f158171def2828104d48d1725ab1089d56cdb04d (patch) | |
tree | ff3d7e9797f3d5751b302b56c613de0f49d9f9dd /client/map | |
parent | 497ae8a79e5da0bb8e23f53c962fcadedc97bdb9 (diff) | |
download | hurrycurry-f158171def2828104d48d1725ab1089d56cdb04d.tar hurrycurry-f158171def2828104d48d1725ab1089d56cdb04d.tar.bz2 hurrycurry-f158171def2828104d48d1725ab1089d56cdb04d.tar.zst |
add deep fryer
Diffstat (limited to 'client/map')
-rw-r--r-- | client/map/tile_factory.gd | 1 | ||||
-rw-r--r-- | client/map/tiles/counter_outer_corner.res | bin | 2366 -> 2492 bytes | |||
-rw-r--r-- | client/map/tiles/deep_fryer.gd | 26 | ||||
-rw-r--r-- | client/map/tiles/deep_fryer.gd.uid | 1 | ||||
-rw-r--r-- | client/map/tiles/deep_fryer.tscn | 25 | ||||
-rw-r--r-- | client/map/tiles/deep_fryer_base.res | bin | 0 -> 8029 bytes | |||
-rw-r--r-- | client/map/tiles/deep_fryer_basket.res | bin | 0 -> 14285 bytes | |||
-rw-r--r-- | client/map/tiles/deep_fryer_fill.res | bin | 0 -> 1566 bytes |
8 files changed, 53 insertions, 0 deletions
diff --git a/client/map/tile_factory.gd b/client/map/tile_factory.gd index 13fb2ce8..17bbd87a 100644 --- a/client/map/tile_factory.gd +++ b/client/map/tile_factory.gd @@ -66,6 +66,7 @@ func produce(raw_name: String, position: Vector2i, neighbors: Array) -> Tile: "oven": return Oven.new(ctx) "path": return Path.new(ctx) "rolling-board": return RollingBoard.new(ctx) + "deep-fryer": return DeepFryer.new(ctx) "sink": return Sink.new(ctx) "stove": return Stove.new(ctx) "street": return Street.new(ctx) diff --git a/client/map/tiles/counter_outer_corner.res b/client/map/tiles/counter_outer_corner.res Binary files differindex 53f0decf..68488c25 100644 --- a/client/map/tiles/counter_outer_corner.res +++ b/client/map/tiles/counter_outer_corner.res diff --git a/client/map/tiles/deep_fryer.gd b/client/map/tiles/deep_fryer.gd new file mode 100644 index 00000000..c50f1fd0 --- /dev/null +++ b/client/map/tiles/deep_fryer.gd @@ -0,0 +1,26 @@ +# 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 DeepFryer +extends CounterBase + +var deep_fryer = load("res://map/tiles/deep_fryer.tscn").instantiate() + +func _init(ctx: TileFactory.TileCC): + super(ctx) + base.add_child(deep_fryer) + +static func interact_target() -> Vector3: + return Vector3(0., 0.575, 0.) diff --git a/client/map/tiles/deep_fryer.gd.uid b/client/map/tiles/deep_fryer.gd.uid new file mode 100644 index 00000000..0fc161a4 --- /dev/null +++ b/client/map/tiles/deep_fryer.gd.uid @@ -0,0 +1 @@ +uid://x4gtbub0vfun diff --git a/client/map/tiles/deep_fryer.tscn b/client/map/tiles/deep_fryer.tscn new file mode 100644 index 00000000..f16e363e --- /dev/null +++ b/client/map/tiles/deep_fryer.tscn @@ -0,0 +1,25 @@ +[gd_scene load_steps=5 format=3 uid="uid://bys6bffu5srpt"] + +[ext_resource type="ArrayMesh" uid="uid://bketpomfy35to" path="res://map/tiles/deep_fryer_base.res" id="1_e4g0d"] +[ext_resource type="ArrayMesh" uid="uid://bqwi4qvtgjlk5" path="res://map/tiles/deep_fryer_basket.res" id="2_kukwf"] +[ext_resource type="ArrayMesh" uid="uid://c7k6gevpwdbv0" path="res://map/tiles/deep_fryer_fill.res" id="3_1rwcx"] + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1rwcx"] +cull_mode = 1 +albedo_color = Color(0.75, 0.58, 0.45000002, 1) +roughness = 0.1 + +[node name="DeepFryer" type="Node3D"] + +[node name="Mesh" type="MeshInstance3D" parent="."] +transform = Transform3D(0.75, 0, 0, 0, -3.278354e-08, -0.75, 0, 0.75, -3.278354e-08, 0, 0.5, 0) +mesh = ExtResource("1_e4g0d") + +[node name="Basket" type="MeshInstance3D" parent="."] +transform = Transform3D(0.75, 0, 0, 0, 0.75, 0, 0, 0, 0.75, 0, 0.55, 0) +mesh = ExtResource("2_kukwf") + +[node name="Fill" type="MeshInstance3D" parent="."] +transform = Transform3D(0.75, 0, 0, 0, -3.278354e-08, -0.75, 0, 0.75, -3.278354e-08, 0, 0.5, 0) +mesh = ExtResource("3_1rwcx") +surface_material_override/0 = SubResource("StandardMaterial3D_1rwcx") diff --git a/client/map/tiles/deep_fryer_base.res b/client/map/tiles/deep_fryer_base.res Binary files differnew file mode 100644 index 00000000..2a392ab6 --- /dev/null +++ b/client/map/tiles/deep_fryer_base.res diff --git a/client/map/tiles/deep_fryer_basket.res b/client/map/tiles/deep_fryer_basket.res Binary files differnew file mode 100644 index 00000000..afcb1889 --- /dev/null +++ b/client/map/tiles/deep_fryer_basket.res diff --git a/client/map/tiles/deep_fryer_fill.res b/client/map/tiles/deep_fryer_fill.res Binary files differnew file mode 100644 index 00000000..0280a561 --- /dev/null +++ b/client/map/tiles/deep_fryer_fill.res |