[gd_scene load_steps=4 format=3 uid="uid://cjgovccsqtt4q"] [ext_resource type="Script" path="res://scripts/box.gd" id="1_5n53n"] [ext_resource type="Texture2D" uid="uid://cofru76vo4vqn" path="res://sprites/box.png" id="2_7bbsq"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_o2msx"] size = Vector2(9.75, 9.75) [node name="Box" type="StaticBody2D" groups=["box"]] position = Vector2(-80, 0) script = ExtResource("1_5n53n") [node name="Sprite2D" type="Sprite2D" parent="."] texture_filter = 1 texture = ExtResource("2_7bbsq") [node name="RayCastDown" type="RayCast2D" parent="."] target_position = Vector2(0, 15) [node name="RayCastUp" type="RayCast2D" parent="."] target_position = Vector2(0, -15) [node name="RayCastRight" type="RayCast2D" parent="."] target_position = Vector2(15, 0) [node name="RayCastLeft" type="RayCast2D" parent="."] target_position = Vector2(-15, 0) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("RectangleShape2D_o2msx") [node name="Area2D" type="Area2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] shape = SubResource("RectangleShape2D_o2msx")