diff options
| author | tpart <tpart120@proton.me> | 2025-10-13 22:14:07 +0200 |
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2025-10-13 22:14:16 +0200 |
| commit | 7c37cd499f0e5c0b9d4029679f8fa8136f61e416 (patch) | |
| tree | bcb32b95283c7639652a2af22c6d1f768f6c15ab /client/map | |
| parent | 3b003d7daddd22e23d26ec1b99a27500b2f569c5 (diff) | |
| download | hurrycurry-7c37cd499f0e5c0b9d4029679f8fa8136f61e416.tar hurrycurry-7c37cd499f0e5c0b9d4029679f8fa8136f61e416.tar.bz2 hurrycurry-7c37cd499f0e5c0b9d4029679f8fa8136f61e416.tar.zst | |
Add noodle crate (#393)
Diffstat (limited to 'client/map')
| -rw-r--r-- | client/map/tile_factory.gd | 1 | ||||
| -rw-r--r-- | client/map/tiles/noodle_crate.gd | 21 | ||||
| -rw-r--r-- | client/map/tiles/noodle_crate.gd.uid | 1 | ||||
| -rw-r--r-- | client/map/tiles/noodle_crate.tscn | 31 |
4 files changed, 54 insertions, 0 deletions
diff --git a/client/map/tile_factory.gd b/client/map/tile_factory.gd index 5a7f7e3e..2a981944 100644 --- a/client/map/tile_factory.gd +++ b/client/map/tile_factory.gd @@ -94,6 +94,7 @@ func produce(raw_name: String, position: Vector2i, neighbors: Array) -> Tile: "leek-crate": return LeekCrate.new(ctx) "lettuce-crate": return LettuceCrate.new(ctx) "mushroom-crate": return MushroomCrate.new(ctx) + "noodle-crate": return NoodleCrate.new(ctx) "steak-crate": return SteakCrate.new(ctx) "rice-crate": return RiceCrate.new(ctx) "strawberry-crate": return StrawberryCrate.new(ctx) diff --git a/client/map/tiles/noodle_crate.gd b/client/map/tiles/noodle_crate.gd new file mode 100644 index 00000000..8e1fab7b --- /dev/null +++ b/client/map/tiles/noodle_crate.gd @@ -0,0 +1,21 @@ +# 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 NoodleCrate +extends Crate + +func _init(ctx: TileFactory.TileCC): + super(ctx) + base.add_child(load("res://map/tiles/noodle_crate.tscn").instantiate()) diff --git a/client/map/tiles/noodle_crate.gd.uid b/client/map/tiles/noodle_crate.gd.uid new file mode 100644 index 00000000..8c4c0454 --- /dev/null +++ b/client/map/tiles/noodle_crate.gd.uid @@ -0,0 +1 @@ +uid://c11foa16l6hj6 diff --git a/client/map/tiles/noodle_crate.tscn b/client/map/tiles/noodle_crate.tscn new file mode 100644 index 00000000..f4765018 --- /dev/null +++ b/client/map/tiles/noodle_crate.tscn @@ -0,0 +1,31 @@ +[gd_scene load_steps=3 format=3 uid="uid://b0jyx2gu6fcx7"] + +[ext_resource type="ArrayMesh" uid="uid://btn7oh1v2k40p" path="res://map/tiles/crate.res" id="1_fb56n"] +[ext_resource type="ArrayMesh" uid="uid://c7nmboj44jn7a" path="res://map/items/noodles.res" id="2_pkjkx"] + +[node name="Crate" 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_fb56n") +skeleton = NodePath("") + +[node name="Noodles" type="MeshInstance3D" parent="."] +transform = Transform3D(0.49983656, 0.012705037, 0.0014109544, -0.012783143, 0.4967825, 0.05517004, 0, -0.05518808, 0.49694493, -0.02444148, 0.3581394, 0.099653274) +mesh = ExtResource("2_pkjkx") + +[node name="Noodles2" type="MeshInstance3D" parent="."] +transform = Transform3D(0.36541817, 0, 0.16269466, 0, 0.4, 0, -0.16269466, 0, 0.36541817, -0.151, 0.239, 0.265) +mesh = ExtResource("2_pkjkx") + +[node name="Noodles3" type="MeshInstance3D" parent="."] +transform = Transform3D(-0.19513778, 0, 0.3491722, 0, 0.39999998, 0, -0.3491722, 0, -0.19513778, 0.23498613, 0.24920535, 0.14507401) +mesh = ExtResource("2_pkjkx") + +[node name="Noodles4" type="MeshInstance3D" parent="."] +transform = Transform3D(-0.3997121, 0, -0.015173763, 0, 0.39999998, 0, 0.015173763, 0, -0.3997121, 0.16035348, 0.24920535, -0.2861838) +mesh = ExtResource("2_pkjkx") + +[node name="Noodles5" type="MeshInstance3D" parent="."] +transform = Transform3D(0.111918226, 0, -0.38402385, 0, 0.39999995, 0, 0.38402385, 0, 0.111918226, -0.2625249, 0.24920535, -0.16159214) +mesh = ExtResource("2_pkjkx") |