[gd_scene load_steps=15 format=3 uid="uid://chw7i3lumyew3"] [ext_resource type="Texture2D" uid="uid://bpfxsieu5ykss" path="res://Gun.png" id="1_o2ly3"] [ext_resource type="Script" path="res://Player.gd" id="1_tnqdd"] [ext_resource type="Script" path="res://Game.gd" id="1_upopx"] [ext_resource type="Script" path="res://GunRotation.gd" id="2_3kk03"] [ext_resource type="Texture2D" uid="uid://bvi0mierwp5c" path="res://UFO.png" id="2_53irs"] [ext_resource type="Script" path="res://GravityGun.gd" id="3_fabqc"] [ext_resource type="Script" path="res://PlayerMovement.gd" id="4_27mrs"] [ext_resource type="Texture2D" uid="uid://cprlo85m3uys1" path="res://gravityzone.png" id="5_lb6nj"] [ext_resource type="PackedScene" uid="uid://hgwtxd5ttu4j" path="res://asteroid.tscn" id="7_h5xye"] [ext_resource type="Script" path="res://Spawner.gd" id="8_p37o5"] [ext_resource type="PackedScene" uid="uid://bpbf3mo6xvabj" path="res://gpu_particles_2d.tscn" id="9_b63nq"] [sub_resource type="CircleShape2D" id="CircleShape2D_yhomi"] radius = 20.0 [sub_resource type="LabelSettings" id="LabelSettings_yijtf"] font_size = 64 font_color = Color(1, 1, 1, 0.188235) [sub_resource type="LabelSettings" id="LabelSettings_778je"] font_size = 32 outline_size = 15 outline_color = Color(0, 0, 0.0666667, 1) [node name="Prototype" type="Node2D" node_paths=PackedStringArray("player", "ded_text")] script = ExtResource("1_upopx") player = NodePath("Player") scene = "res://node_2d.tscn" ded_text = NodePath("Label") [node name="Player" type="RigidBody2D" parent="."] position = Vector2(577, 265) collision_layer = 3 collision_mask = 0 gravity_scale = 0.0 script = ExtResource("1_tnqdd") particle = ExtResource("9_b63nq") [node name="Gun" type="Sprite2D" parent="Player"] scale = Vector2(0.2, 0.2) texture = ExtResource("1_o2ly3") [node name="GunRotation" type="Node" parent="Player/Gun"] script = ExtResource("2_3kk03") [node name="GravityGun" type="Node" parent="Player/Gun" node_paths=PackedStringArray("area", "capture_anchor")] script = ExtResource("3_fabqc") area = NodePath("../GravityArea2D") capture_anchor = NodePath("../GravityArea2D/CaptureAnchor") close_range = 1.0 grab_speed = 15.0 throw_velocity = 1500.0 [node name="GravityArea2D" type="Area2D" parent="Player/Gun"] position = Vector2(560, -72) rotation = 1.54879 scale = Vector2(1.24059, 1.47599) collision_layer = 0 [node name="Gravityzone" type="Sprite2D" parent="Player/Gun/GravityArea2D"] texture = ExtResource("5_lb6nj") [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Player/Gun/GravityArea2D"] build_mode = 1 polygon = PackedVector2Array(193.207, -183.529, 142.227, 42.9501, 46.6261, 263.695, -38.191, 263.762, -90.4009, 48.6971, -210.07, -207.935) [node name="CaptureAnchor" type="Node2D" parent="Player/Gun/GravityArea2D"] [node name="UFO" type="Sprite2D" parent="Player"] scale = Vector2(0.15, 0.15) texture = ExtResource("2_53irs") [node name="CollisionShape2D" type="CollisionShape2D" parent="Player"] position = Vector2(-3, 1) shape = SubResource("CircleShape2D_yhomi") [node name="PlayerMovement" type="Node" parent="Player"] script = ExtResource("4_27mrs") speed = 250.0 velocity_dampening = 0.05 [node name="Spawner" type="Node" parent="." node_paths=PackedStringArray("root", "player")] script = ExtResource("8_p37o5") asteroid = ExtResource("7_h5xye") root = NodePath("..") player = NodePath("../Player") v1 = Vector2(0, -30) v2 = Vector2(1280, -30) speed = 200.0 [node name="Timer" type="Timer" parent="Spawner"] autostart = true [node name="Spawner2" type="Node" parent="." node_paths=PackedStringArray("root", "player")] script = ExtResource("8_p37o5") asteroid = ExtResource("7_h5xye") root = NodePath("..") player = NodePath("../Player") v1 = Vector2(0, 750) v2 = Vector2(1280, 750) speed = 200.0 [node name="Timer" type="Timer" parent="Spawner2"] wait_time = 2.0 autostart = true [node name="Spawner3" type="Node" parent="." node_paths=PackedStringArray("root", "player")] script = ExtResource("8_p37o5") asteroid = ExtResource("7_h5xye") root = NodePath("..") player = NodePath("../Player") v1 = Vector2(-30, 0) v2 = Vector2(-30, 720) speed = 200.0 [node name="Timer" type="Timer" parent="Spawner3"] wait_time = 3.0 autostart = true [node name="Spawner4" type="Node" parent="." node_paths=PackedStringArray("root", "player")] script = ExtResource("8_p37o5") asteroid = ExtResource("7_h5xye") root = NodePath("..") player = NodePath("../Player") v1 = Vector2(1300, 0) v2 = Vector2(1300, 720) speed = 200.0 [node name="Timer" type="Timer" parent="Spawner4"] autostart = true [node name="Label" type="Label" parent="."] visible = false custom_minimum_size = Vector2(1280, 720) anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_right = 1280.0 offset_bottom = 720.0 grow_horizontal = 2 grow_vertical = 2 size_flags_vertical = 1 text = "yuo are ded space to replay this bad game" label_settings = SubResource("LabelSettings_yijtf") horizontal_alignment = 1 vertical_alignment = 1 [node name="Score" type="Label" parent="."] visible = false z_index = 100 offset_right = 1280.0 offset_bottom = 61.0 text = "0" label_settings = SubResource("LabelSettings_778je") horizontal_alignment = 1 vertical_alignment = 1 [connection signal="area_entered" from="Player/Gun/GravityArea2D" to="Player/Gun/GravityGun" method="_on_gravity_area_2d_area_entered"] [connection signal="body_entered" from="Player/Gun/GravityArea2D" to="Player/Gun/GravityGun" method="_on_gravity_area_2d_body_entered"] [connection signal="timeout" from="Spawner/Timer" to="Spawner" method="_on_timer_timeout"] [connection signal="timeout" from="Spawner2/Timer" to="Spawner2" method="_on_timer_timeout"] [connection signal="timeout" from="Spawner3/Timer" to="Spawner3" method="_on_timer_timeout"] [connection signal="timeout" from="Spawner4/Timer" to="Spawner4" method="_on_timer_timeout"]