diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/map/tile_factory.gd | 2 | ||||
-rw-r--r-- | client/map/tiles/coconut_crate.gd | 21 | ||||
-rw-r--r-- | client/map/tiles/coconut_crate.tscn | 18 |
3 files changed, 41 insertions, 0 deletions
diff --git a/client/map/tile_factory.gd b/client/map/tile_factory.gd index 4a8a1d7d..bd0a71ca 100644 --- a/client/map/tile_factory.gd +++ b/client/map/tile_factory.gd @@ -88,6 +88,8 @@ static func produce(tile_name: String, node_name: String, neighbors: Array) -> T return RiceCrate.new(node_name, neighbors) "strawberry-crate": return StrawberryCrate.new(node_name, neighbors) + "coconut-crate": + return CoconutCrate.new(node_name, neighbors) var t: push_warning("tile %s unknown" % t) return GenericTile.new(node_name, neighbors, t) diff --git a/client/map/tiles/coconut_crate.gd b/client/map/tiles/coconut_crate.gd new file mode 100644 index 00000000..55ef16d5 --- /dev/null +++ b/client/map/tiles/coconut_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 CoconutCrate +extends Crate + +func _init(rename: String, neighbors: Array): + super(rename, neighbors) + base.add_child(load("res://map/tiles/coconut_crate.tscn").instantiate()) diff --git a/client/map/tiles/coconut_crate.tscn b/client/map/tiles/coconut_crate.tscn new file mode 100644 index 00000000..af2146b1 --- /dev/null +++ b/client/map/tiles/coconut_crate.tscn @@ -0,0 +1,18 @@ +[gd_scene load_steps=3 format=3 uid="uid://cti8difugwnxm"] + +[ext_resource type="PackedScene" uid="uid://xdui0oya4lpb" path="res://map/tiles/crate.tscn" id="1_1qpmd"] +[ext_resource type="PackedScene" uid="uid://cmsirxgv7iqnk" path="res://map/items/coconut.tscn" id="3_s5fgf"] + +[node name="StrawberryCrate" instance=ExtResource("1_1qpmd")] + +[node name="Coconut" parent="." index="1" instance=ExtResource("3_s5fgf")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.177501, 0, -0.17735) + +[node name="Coconut2" parent="." index="2" instance=ExtResource("3_s5fgf")] +transform = Transform3D(0.735258, 0, 0.677788, 0, 1, 0, -0.677788, 0, 0.735258, 0.185726, 0, -0.192698) + +[node name="Coconut3" parent="." index="3" instance=ExtResource("3_s5fgf")] +transform = Transform3D(0.835347, 0, -0.549723, 0, 1, 0, 0.549723, 0, 0.835347, -0.177501, 0, 0.17735) + +[node name="Coconut4" parent="." index="4" instance=ExtResource("3_s5fgf")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.184021, 0, 0.17735) |