From 84a96522aad9970d6ade4849f865d4e66e448f3d Mon Sep 17 00:00:00 2001 From: nokoe Date: Tue, 13 Aug 2024 14:14:01 +0200 Subject: add rice models --- client/map/tiles/rice_crate.gd | 21 +++++++++++++++++++++ client/map/tiles/rice_crate.tscn | 9 +++++++++ 2 files changed, 30 insertions(+) create mode 100644 client/map/tiles/rice_crate.gd create mode 100644 client/map/tiles/rice_crate.tscn (limited to 'client/map/tiles') 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 . +# +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) -- cgit v1.2.3-70-g09d2