[gd_scene format=3 uid="uid://cexci4ob8r45g"] [ext_resource type="Script" uid="uid://ct51411gsine2" path="res://scripts/gamecontroller.gd" id="1_lnu2h"] [ext_resource type="Script" uid="uid://ct34rf6jscqmo" path="res://scripts/player.gd" id="1_uwrxv"] [ext_resource type="Script" uid="uid://ck2uw1e2b0646" path="res://scripts/trigger.gd" id="1_yqjtg"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_rk402"] size = Vector2(336, 20) [sub_resource type="RectangleShape2D" id="RectangleShape2D_3udav"] [sub_resource type="CircleShape2D" id="CircleShape2D_rk402"] radius = 21.0 [sub_resource type="CircleShape2D" id="CircleShape2D_3udav"] [sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_rk402"] [node name="Game" type="Node2D" unique_id=55511178] script = ExtResource("1_lnu2h") [node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=704028978] position = Vector2(512, 413) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=2047135679] position = Vector2(134, 0) shape = SubResource("RectangleShape2D_rk402") [node name="RigidBody2D" type="RigidBody2D" parent="." unique_id=1467136223] position = Vector2(520, -51) rotation = -0.5400262 metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D" unique_id=2111742955] shape = SubResource("RectangleShape2D_3udav") debug_color = Color(0.8750005, 0.33663103, 0.2080481, 0.41960785) [node name="RigidBody2D2" type="RigidBody2D" parent="." unique_id=375764923] position = Vector2(512, 309) rotation = -0.5400262 metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D2" unique_id=1689937601] shape = SubResource("RectangleShape2D_3udav") debug_color = Color(0.8750005, 0.33663103, 0.2080481, 0.41960785) [node name="RigidBody2D3" type="RigidBody2D" parent="." unique_id=1851225816] position = Vector2(513, 269) rotation = -0.5400262 metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D3" unique_id=1720572197] shape = SubResource("RectangleShape2D_3udav") debug_color = Color(0.8750005, 0.33663103, 0.2080481, 0.41960785) [node name="RigidBody2D4" type="RigidBody2D" parent="." unique_id=190350635] position = Vector2(507, 236.99997) rotation = -0.5400262 metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D4" unique_id=938737972] shape = SubResource("RectangleShape2D_3udav") debug_color = Color(0.8750005, 0.33663103, 0.2080481, 0.41960785) [node name="Trigger" type="Area2D" parent="." unique_id=644670290] position = Vector2(442, 424) script = ExtResource("1_yqjtg") metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="Trigger" unique_id=258207955] shape = SubResource("CircleShape2D_rk402") debug_color = Color(0.7183221, 0.30049416, 0.93278134, 0.41960785) [node name="CharacterBody2D" type="CharacterBody2D" parent="." unique_id=1639753258] position = Vector2(743, 389) script = ExtResource("1_uwrxv") metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D" unique_id=1073881258] shape = SubResource("CircleShape2D_3udav") debug_color = Color(0.3147444, 0.626224, 7.70092e-07, 0.41960785) [node name="StaticBody2D2" type="StaticBody2D" parent="." unique_id=220630225] position = Vector2(622, 483) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2" unique_id=705904648] shape = SubResource("WorldBoundaryShape2D_rk402") [node name="StaticBody2D3" type="StaticBody2D" parent="." unique_id=1402599454] position = Vector2(45, 348) rotation = 1.5573014 metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D3" unique_id=1824150982] shape = SubResource("WorldBoundaryShape2D_rk402") [connection signal="areaTriggered" from="Trigger" to="." method="_on_trigger"] [connection signal="body_entered" from="Trigger" to="Trigger" method="_on_body_entered"]