diff options
Diffstat (limited to 'client/map/tiles')
-rw-r--r-- | client/map/tiles/rice_crate.gd | 21 | ||||
-rw-r--r-- | client/map/tiles/rice_crate.tscn | 9 |
2 files changed, 30 insertions, 0 deletions
diff --git a/client/map/tiles/rice_crate.gd b/client/map/tiles/rice_crate.gd new file mode 100644 index 00000000..7c596d44 --- /dev/null +++ b/client/map/tiles/rice_crate.gd @@ -0,0 +1,21 @@ +# Hurry Curry! - a game about cooking +# Copyright 2024 nokoe +# +# 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 RiceCrate +extends Crate + +func _init(rename: String, neighbors: Array): + super(rename, neighbors) + base.add_child(load("res://map/tiles/rice_crate.tscn").instantiate()) diff --git a/client/map/tiles/rice_crate.tscn b/client/map/tiles/rice_crate.tscn new file mode 100644 index 00000000..72c6c540 --- /dev/null +++ b/client/map/tiles/rice_crate.tscn @@ -0,0 +1,9 @@ +[gd_scene load_steps=3 format=3 uid="uid://bk0jvgj6xg23d"] + +[ext_resource type="PackedScene" uid="uid://xdui0oya4lpb" path="res://map/tiles/crate.tscn" id="1_wfea8"] +[ext_resource type="PackedScene" uid="uid://rs4b17lp80cx" path="res://map/items/rice.tscn" id="2_fbw0j"] + +[node name="RiceCrate" instance=ExtResource("1_wfea8")] + +[node name="Rice" parent="." index="1" instance=ExtResource("2_fbw0j")] +transform = Transform3D(3, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0) |