This commit is contained in:
2025-10-26 02:57:00 +02:00
parent 1fe75a871e
commit eea9c18358
18 changed files with 216 additions and 41 deletions

View File

@@ -0,0 +1,30 @@
[gd_scene load_steps=6 format=3 uid="uid://bsvy3yhylfoui"]
[ext_resource type="Script" uid="uid://c1xp6fm2mh83g" path="res://scripts/interactables/chair.gd" id="1_asrj3"]
[ext_resource type="PackedScene" uid="uid://n24dhbpflcec" path="res://scenes/interactable.tscn" id="3_dblhm"]
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_o804i"]
load_path = "res://.godot/imported/table_chair.png-e74f8b9bc13823f10c8b29c28e9a3a90.ctex"
[sub_resource type="AtlasTexture" id="AtlasTexture_asrj3"]
resource_local_to_scene = true
atlas = SubResource("CompressedTexture2D_o804i")
region = Rect2(32, 0, 32, 32)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_w04lg"]
size = Vector2(14, 18)
[node name="Chair" type="StaticBody2D"]
script = ExtResource("1_asrj3")
direction = 2
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_asrj3")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(1, 6)
shape = SubResource("RectangleShape2D_w04lg")
[node name="Interactable" parent="." instance=ExtResource("3_dblhm")]
[connection signal="interacted" from="Interactable" to="." method="_on_interacted"]