[gd_scene load_steps=8 format=3 uid="uid://dcmyx5g6dksl8"]

[ext_resource type="PackedScene" uid="uid://d1ej2kiy7jcpv" path="res://scenes/crate.tscn" id="1_uivx3"]
[ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_vhl00"]
[ext_resource type="Script" path="res://scripts/trigger.gd" id="3_2qbah"]
[ext_resource type="PackedScene" uid="uid://b75mow511wmmb" path="res://scenes/player.tscn" id="3_8h5jv"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_1cyeq"]
size = Vector2(101, 20)

[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_bqh70"]
distance = -395.0

[sub_resource type="CircleShape2D" id="CircleShape2D_mfh1j"]

[node name="Game" type="Node2D"]
script = ExtResource("1_vhl00")

[node name="StaticBody2D" type="StaticBody2D" parent="."]
position = Vector2(622, 343)
metadata/_edit_group_ = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
position = Vector2(-0.5, 0)
shape = SubResource("RectangleShape2D_1cyeq")

[node name="RigidBody2D" parent="." instance=ExtResource("1_uivx3")]
position = Vector2(640, 228)
rotation = 0.806532

[node name="RigidBody2D2" parent="." instance=ExtResource("1_uivx3")]
position = Vector2(586, 297)
rotation = 0.806532

[node name="RigidBody2D3" parent="." instance=ExtResource("1_uivx3")]
position = Vector2(636, 279)
rotation = 0.806532

[node name="RigidBody2D4" parent="." instance=ExtResource("1_uivx3")]
position = Vector2(596, 225)
rotation = 0.806532

[node name="floor" type="StaticBody2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="floor"]
shape = SubResource("WorldBoundaryShape2D_bqh70")

[node name="CharacterBody2D" parent="." instance=ExtResource("3_8h5jv")]

[node name="Area2D" type="Area2D" parent="."]
position = Vector2(513, 319)
scale = Vector2(5, 5)
script = ExtResource("3_2qbah")
metadata/_edit_group_ = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_mfh1j")
debug_color = Color(0.825765, 0.00158581, 0.954354, 0.42)

[connection signal="areaTrigger" from="Area2D" to="." method="_on_trigger"]
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]