[gd_scene load_steps=4 format=3 uid="uid://d1ugwu6dqomtg"] [ext_resource type="Script" uid="uid://b6422kdu30lo4" path="res://script/wall.gd" id="1_xxgf6"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_oh6kn"] size = Vector2(20, 640) [sub_resource type="RectangleShape2D" id="RectangleShape2D_xxgf6"] size = Vector2(640, 20) [node name="wall" type="Node2D"] script = ExtResource("1_xxgf6") [node name="ColorRect" type="ColorRect" parent="."] offset_right = 640.0 offset_bottom = 640.0 color = Color(0, 0, 0, 1) [node name="StaticBody2D" type="StaticBody2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"] position = Vector2(0, 320) shape = SubResource("RectangleShape2D_oh6kn") [node name="CollisionShape2D2" type="CollisionShape2D" parent="StaticBody2D"] position = Vector2(640, 320) shape = SubResource("RectangleShape2D_oh6kn") [node name="CollisionShape2D3" type="CollisionShape2D" parent="StaticBody2D"] position = Vector2(320, 0) shape = SubResource("RectangleShape2D_xxgf6") [node name="CollisionShape2D4" type="CollisionShape2D" parent="StaticBody2D"] position = Vector2(320, 640) shape = SubResource("RectangleShape2D_xxgf6") [node name="Area2D" type="Area2D" parent="."] collision_layer = 3 collision_mask = 3 [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] position = Vector2(0, 320) shape = SubResource("RectangleShape2D_oh6kn") [node name="CollisionShape2D2" type="CollisionShape2D" parent="Area2D"] position = Vector2(640, 320) shape = SubResource("RectangleShape2D_oh6kn") [node name="CollisionShape2D3" type="CollisionShape2D" parent="Area2D"] position = Vector2(320, 0) shape = SubResource("RectangleShape2D_xxgf6") [node name="CollisionShape2D4" type="CollisionShape2D" parent="Area2D"] position = Vector2(320, 640) shape = SubResource("RectangleShape2D_xxgf6") [connection signal="body_exited" from="Area2D" to="." method="_on_area_2d_body_exited"]