diff options
author | tpart <tpart120@proton.me> | 2024-09-16 15:53:29 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-16 15:53:29 +0200 |
commit | a5ae525cb15903b697fc67751130080ff30df585 (patch) | |
tree | b00318114df01885501e3295bd8142967af549b7 | |
parent | 180b786bff761c9301898ca732d7bf24af6f14c7 (diff) | |
download | hurrycurry-a5ae525cb15903b697fc67751130080ff30df585.tar hurrycurry-a5ae525cb15903b697fc67751130080ff30df585.tar.bz2 hurrycurry-a5ae525cb15903b697fc67751130080ff30df585.tar.zst |
Add cheese crate model; Implement tile
-rw-r--r-- | client/map/tile_factory.gd | 1 | ||||
-rw-r--r-- | client/map/tiles/cheese_crate.gd | 21 | ||||
-rw-r--r-- | client/map/tiles/cheese_crate.tscn | 24 |
3 files changed, 46 insertions, 0 deletions
diff --git a/client/map/tile_factory.gd b/client/map/tile_factory.gd index 215aaa51..4f478eb6 100644 --- a/client/map/tile_factory.gd +++ b/client/map/tile_factory.gd @@ -47,6 +47,7 @@ static func produce(tile_name: String, node_name: String, neighbors: Array) -> T "white-hole-counter": return ItemPortal.new(node_name, neighbors, true) "white-hole": return PlayerPortal.new(node_name, neighbors, true) + "cheese-crate": return CheeseCrate.new(node_name, neighbors) "coconut-crate": return CoconutCrate.new(node_name, neighbors) "dirty-plate-crate": return CounterBase.new(node_name, neighbors) "fish-crate": return FishCrate.new(node_name, neighbors) diff --git a/client/map/tiles/cheese_crate.gd b/client/map/tiles/cheese_crate.gd new file mode 100644 index 00000000..67591899 --- /dev/null +++ b/client/map/tiles/cheese_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 CheeseCrate +extends Crate + +func _init(rename: String, neighbors: Array): + super(rename, neighbors) + base.add_child(load("res://map/tiles/cheese_crate.tscn").instantiate()) diff --git a/client/map/tiles/cheese_crate.tscn b/client/map/tiles/cheese_crate.tscn new file mode 100644 index 00000000..7a1bd93a --- /dev/null +++ b/client/map/tiles/cheese_crate.tscn @@ -0,0 +1,24 @@ +[gd_scene load_steps=3 format=3 uid="uid://do7vpyky2hdd0"] + +[ext_resource type="PackedScene" uid="uid://xdui0oya4lpb" path="res://map/tiles/crate.tscn" id="1_7kkwt"] +[ext_resource type="PackedScene" uid="uid://0lbjf2sie4rk" path="res://map/items/cheese.tscn" id="2_3iu16"] + +[node name="CheeseCrate" instance=ExtResource("1_7kkwt")] + +[node name="Cheese" parent="." index="1" instance=ExtResource("2_3iu16")] +transform = Transform3D(0.939693, 0, 0.34202, 0, 1, 0, -0.34202, 0, 0.939693, -0.155919, 0.03, -0.239194) + +[node name="Cheese2" parent="." index="2" instance=ExtResource("2_3iu16")] +transform = Transform3D(-0.766045, 0, -0.642788, 0, 1, 0, 0.642788, 0, -0.766045, 0.143516, 0.03, -0.129342) + +[node name="Cheese3" parent="." index="3" instance=ExtResource("2_3iu16")] +transform = Transform3D(0.822958, 0, -0.568102, 0, 1, 0, 0.568102, 0, 0.822958, -0.139973, 0.03, 0.178952) + +[node name="Cheese4" parent="." index="4" instance=ExtResource("2_3iu16")] +transform = Transform3D(-0.909381, 0, 0.415964, 0, 1, 0, -0.415964, 0, -0.909381, 0.17718, 0.03, 0.178952) + +[node name="Cheese5" parent="." index="5" instance=ExtResource("2_3iu16")] +transform = Transform3D(-0.909381, 0, 0.415964, 0, 1, 0, -0.415964, 0, -0.909381, 0.102617, 0.25, -0.074814) + +[node name="Cheese6" parent="." index="6" instance=ExtResource("2_3iu16")] +transform = Transform3D(-0.11381, 0, 0.993503, 0, 1, 0, -0.993503, 0, -0.11381, -0.207069, 0.25, 0.0827757) |