[gd_scene load_steps=9 format=3 uid="uid://bt6uaac8wfn8k"] [ext_resource type="Script" path="res://scripts/trigger.gd" id="1_8ewqq"] [ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_wwyby"] [ext_resource type="Script" path="res://scripts/player.gd" id="2_j20wl"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_ggdp1"] size = Vector2(72, 20) [sub_resource type="RectangleShape2D" id="RectangleShape2D_0u5k2"] size = Vector2(34, 36) [sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_gmy8j"] [sub_resource type="CircleShape2D" id="CircleShape2D_civmy"] radius = 21.0238 [sub_resource type="CircleShape2D" id="CircleShape2D_q23dn"] [node name="Game" type="Node2D"] script = ExtResource("1_wwyby") [node name="Brick" type="StaticBody2D" parent="."] position = Vector2(598, 444) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="Brick"] shape = SubResource("RectangleShape2D_ggdp1") [node name="Brick4" type="StaticBody2D" parent="."] position = Vector2(802, 440) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="Brick4"] shape = SubResource("RectangleShape2D_ggdp1") [node name="Brick3" type="StaticBody2D" parent="."] position = Vector2(706, 421) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="Brick3"] shape = SubResource("RectangleShape2D_ggdp1") [node name="Brick2" type="StaticBody2D" parent="."] position = Vector2(832, 195) rotation = -0.802851 metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="Brick2"] shape = SubResource("RectangleShape2D_ggdp1") [node name="crate1" type="RigidBody2D" parent="."] position = Vector2(446, 462) rotation = -0.516507 metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="crate1"] shape = SubResource("RectangleShape2D_0u5k2") debug_color = Color(0.868673, 0.347634, 0.15033, 0.42) [node name="crate3" type="RigidBody2D" parent="."] position = Vector2(376, 466) rotation = -0.516507 metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="crate3"] shape = SubResource("RectangleShape2D_0u5k2") debug_color = Color(0.868673, 0.347634, 0.15033, 0.42) [node name="crate2" type="RigidBody2D" parent="."] position = Vector2(920, 473) rotation = -1.2792 metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="crate2"] shape = SubResource("RectangleShape2D_0u5k2") debug_color = Color(0.868673, 0.347634, 0.15033, 0.42) [node name="crate4" type="RigidBody2D" parent="."] position = Vector2(868, 476) rotation = -1.2792 metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="crate4"] shape = SubResource("RectangleShape2D_0u5k2") debug_color = Color(0.868673, 0.347634, 0.15033, 0.42) [node name="StaticBody2D" type="StaticBody2D" parent="."] position = Vector2(601, 500) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"] shape = SubResource("WorldBoundaryShape2D_gmy8j") [node name="Trigger" type="Area2D" parent="."] position = Vector2(700, 476) script = ExtResource("1_8ewqq") metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="Trigger"] shape = SubResource("CircleShape2D_civmy") debug_color = Color(0.611909, 0.392035, 0.935088, 0.42) [node name="CharacterBody2D" type="CharacterBody2D" parent="."] position = Vector2(568, 381) script = ExtResource("2_j20wl") metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"] shape = SubResource("CircleShape2D_q23dn") debug_color = Color(0.273614, 0.618219, 0.385754, 0.42) [connection signal="areaTrigger" from="Trigger" to="." method="_on_trigger_area_trigger"] [connection signal="body_entered" from="Trigger" to="Trigger" method="_on_body_entered"]