Chaos_Kitchen/Scene/Interactibles/Crate.tscn

34 lines
1.2 KiB
Text

[gd_scene load_steps=4 format=3 uid="uid://nv8r4yu48mbj"]
[ext_resource type="Script" path="res://Scripts/Interactibles/Crate.gd" id="1_a65k5"]
[ext_resource type="Texture2D" uid="uid://b4nga0rwqktws" path="res://GraphicalAssets/Tilemaps/Tiles/tile_0274.png" id="1_aetqf"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jjien"]
size = Vector2(2, 2)
[node name="Crate" type="Area2D"]
script = ExtResource("1_a65k5")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture_filter = 1
texture_repeat = 1
texture = ExtResource("1_aetqf")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-10, 0)
shape = SubResource("RectangleShape2D_jjien")
[node name="CollisionShape2D2" type="CollisionShape2D" parent="."]
position = Vector2(0, -10)
shape = SubResource("RectangleShape2D_jjien")
[node name="CollisionShape2D3" type="CollisionShape2D" parent="."]
position = Vector2(0, 10)
shape = SubResource("RectangleShape2D_jjien")
[node name="CollisionShape2D4" type="CollisionShape2D" parent="."]
position = Vector2(10, 0)
shape = SubResource("RectangleShape2D_jjien")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="body_exited" from="." to="." method="_on_body_exited"]