[gd_scene load_steps=10 format=3 uid="uid://c7psh8jpkkc6x"] [ext_resource type="Script" path="res://scripts/game controller.gd" id="1_pcysq"] [ext_resource type="Script" path="res://scripts/trigger.gd" id="1_tp4vr"] [ext_resource type="PackedScene" uid="uid://b0d1gs2knc2l8" path="res://scenes/player.tscn" id="3_70p4h"] [ext_resource type="PackedScene" uid="uid://dg6vhq7diydcj" path="res://scenes/bullet.tscn" id="4_vo7vc"] [ext_resource type="Script" path="res://scripts/scene_manager.gd" id="5_w3sh3"] [sub_resource type="CircleShape2D" id="CircleShape2D_785vb"] radius = 88.1419 [sub_resource type="RectangleShape2D" id="RectangleShape2D_nynyi"] size = Vector2(96, 20) [sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_ukrrp"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_gv8hf"] [node name="AhmedGG" type="Node2D"] script = ExtResource("1_pcysq") [node name="Trigger" type="Area2D" parent="."] position = Vector2(400, 339) script = ExtResource("1_tp4vr") metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="Trigger"] shape = SubResource("CircleShape2D_785vb") debug_color = Color(0.489643, 0.4608, 0.929032, 0.42) [node name="level" type="Node2D" parent="."] [node name="StaticBody2D" type="StaticBody2D" parent="level"] position = Vector2(296, 246) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="level/StaticBody2D"] shape = SubResource("RectangleShape2D_nynyi") [node name="StaticBody2D2" type="StaticBody2D" parent="level"] [node name="CollisionShape2D" type="CollisionShape2D" parent="level/StaticBody2D2"] position = Vector2(295, 431) shape = SubResource("WorldBoundaryShape2D_ukrrp") [node name="StaticBody2D3" type="StaticBody2D" parent="level"] position = Vector2(394, 228) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="level/StaticBody2D3"] rotation = -0.412146 shape = SubResource("RectangleShape2D_nynyi") [node name="StaticBody2D4" type="StaticBody2D" parent="level"] position = Vector2(109, 358) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="level/StaticBody2D4"] shape = SubResource("RectangleShape2D_nynyi") [node name="StaticBody2D5" type="StaticBody2D" parent="level"] position = Vector2(182, 299) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="level/StaticBody2D5"] shape = SubResource("RectangleShape2D_nynyi") [node name="StaticBody2D6" type="StaticBody2D" parent="level"] position = Vector2(161, 225) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="level/StaticBody2D6"] shape = SubResource("RectangleShape2D_nynyi") [node name="crates" type="Node2D" parent="."] [node name="RigidBody2D" type="RigidBody2D" parent="crates"] position = Vector2(307, 34) rotation = 0.785398 metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="crates/RigidBody2D"] shape = SubResource("RectangleShape2D_gv8hf") debug_color = Color(0.850993, 0.368517, 0.134324, 0.42) [node name="RigidBody2D2" type="RigidBody2D" parent="crates"] position = Vector2(247, 100) rotation = 1.33752 metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="crates/RigidBody2D2"] shape = SubResource("RectangleShape2D_gv8hf") debug_color = Color(0.850993, 0.368517, 0.134324, 0.42) [node name="RigidBody2D3" type="RigidBody2D" parent="crates"] position = Vector2(355, 185) rotation = 2.67504 scale = Vector2(1, 1) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="crates/RigidBody2D3"] shape = SubResource("RectangleShape2D_gv8hf") debug_color = Color(0.850993, 0.368517, 0.134324, 0.42) [node name="RigidBody2D4" type="RigidBody2D" parent="crates"] position = Vector2(138.409, 137.33) rotation = -0.933105 scale = Vector2(1, 1) metadata/_edit_group_ = true [node name="CollisionShape2D" type="CollisionShape2D" parent="crates/RigidBody2D4"] shape = SubResource("RectangleShape2D_gv8hf") debug_color = Color(0.850993, 0.368517, 0.134324, 0.42) [node name="CharacterBody2D" parent="." instance=ExtResource("3_70p4h")] position = Vector2(407, 65) [node name="Area2D" parent="." instance=ExtResource("4_vo7vc")] position = Vector2(-95, 221) [node name="SceneManager" type="Node" parent="."] unique_name_in_owner = true script = ExtResource("5_w3sh3") [connection signal="areatrigger" from="Trigger" to="." method="_on_trigger_areatrigger"] [connection signal="body_entered" from="Trigger" to="Trigger" method="_on_body_entered"]