1- [gd_scene load_steps =14 format =3 uid ="uid://bqy1gmd6wwrqx" ]
1+ [gd_scene load_steps =16 format =3 uid ="uid://bqy1gmd6wwrqx" ]
22
33[ext_resource type ="Script" path ="res://Scripts/ObjectScripts/DroneManager.gd" id ="1_fhp4c" ]
4- [ext_resource type ="Texture2D" uid ="uid://dp40aepcpmf30" path ="res://Assets/Images/Objects/DroneSpritesheet.png" id ="2_v1ycp" ]
4+ [ext_resource type ="Texture2D" uid ="uid://dpkebxe2qa4tu" path ="res://Assets/Images/Objects/BigDroneSpritesheet.png" id ="2_6x22x" ]
5+ [ext_resource type ="Texture2D" uid ="uid://failsjwtufog" path ="res://Assets/Images/Objects/FireParticle1.png" id ="3_k4xbe" ]
56
6- [sub_resource type ="AtlasTexture" id ="AtlasTexture_gp4jj " ]
7- atlas = ExtResource ("2_v1ycp " )
8- region = Rect2 (0 , 0 , 32 , 32 )
7+ [sub_resource type ="AtlasTexture" id ="AtlasTexture_sodd7 " ]
8+ atlas = ExtResource ("2_6x22x " )
9+ region = Rect2 (0 , 0 , 128 , 64 )
910
10- [sub_resource type ="AtlasTexture" id ="AtlasTexture_b36qc " ]
11- atlas = ExtResource ("2_v1ycp " )
12- region = Rect2 (0 , 32 , 32 , 32 )
11+ [sub_resource type ="AtlasTexture" id ="AtlasTexture_m6hsb " ]
12+ atlas = ExtResource ("2_6x22x " )
13+ region = Rect2 (0 , 64 , 128 , 64 )
1314
14- [sub_resource type ="AtlasTexture" id ="AtlasTexture_d1na2" ]
15- atlas = ExtResource ("2_v1ycp" )
16- region = Rect2 (0 , 64 , 32 , 32 )
17-
18- [sub_resource type ="AtlasTexture" id ="AtlasTexture_l6eb2" ]
19- atlas = ExtResource ("2_v1ycp" )
20- region = Rect2 (0 , 96 , 32 , 32 )
15+ [sub_resource type ="AtlasTexture" id ="AtlasTexture_336py" ]
16+ atlas = ExtResource ("2_6x22x" )
17+ region = Rect2 (0 , 128 , 128 , 64 )
2118
2219[sub_resource type ="SpriteFrames" id ="SpriteFrames_okakp" ]
2320animations = [{
2421"frames" : [{
2522"duration" : 1.0 ,
26- "texture" : SubResource ("AtlasTexture_gp4jj" )
27- }, {
28- "duration" : 1.0 ,
29- "texture" : SubResource ("AtlasTexture_b36qc" )
23+ "texture" : SubResource ("AtlasTexture_sodd7" )
3024}, {
3125"duration" : 1.0 ,
32- "texture" : SubResource ("AtlasTexture_d1na2 " )
26+ "texture" : SubResource ("AtlasTexture_m6hsb " )
3327}, {
3428"duration" : 1.0 ,
35- "texture" : SubResource ("AtlasTexture_l6eb2 " )
29+ "texture" : SubResource ("AtlasTexture_336py " )
3630}],
3731"loop" : true ,
3832"name" : &"Idle" ,
39- "speed" : 20 .0
33+ "speed" : 17 .0
4034}]
4135
4236[sub_resource type ="Gradient" id ="Gradient_2j5lc" ]
@@ -68,8 +62,35 @@ colors = PackedColorArray(0.404511, 0.404511, 0.404511, 1, 1, 1, 1, 1)
6862gradient = SubResource ("Gradient_0awkx" )
6963width = 1
7064
71- [sub_resource type ="RectangleShape2D" id ="RectangleShape2D_4jc72" ]
72- size = Vector2 (190 , 22 )
65+ [sub_resource type ="Gradient" id ="Gradient_c6iik" ]
66+ offsets = PackedFloat32Array (0 , 0.118081 , 0.380074 , 0.965986 )
67+ colors = PackedColorArray (0.137255 , 0.129412 , 1 , 1 , 1 , 0.772549 , 0.14902 , 0.235294 , 0.670588 , 0 , 0 , 0.333333 , 1 , 0 , 0 , 0 )
68+
69+ [sub_resource type ="GradientTexture1D" id ="GradientTexture1D_udcty" ]
70+ gradient = SubResource ("Gradient_c6iik" )
71+
72+ [sub_resource type ="ParticleProcessMaterial" id ="ParticleProcessMaterial_mev46" ]
73+ lifetime_randomness = 0.1
74+ particle_flag_disable_z = true
75+ emission_shape = 3
76+ emission_box_extents = Vector3 (2 , 1 , 1 )
77+ angle_min = -720.0
78+ angle_max = 720.0
79+ direction = Vector3 (0 , 2 , 0 )
80+ spread = 22.209
81+ initial_velocity_min = 200.0
82+ initial_velocity_max = 300.0
83+ angular_velocity_min = -720.0
84+ angular_velocity_max = 720.0
85+ gravity = Vector3 (0 , -300 , 0 )
86+ damping_min = 59.678
87+ damping_max = 59.678
88+ scale_min = 0.0
89+ scale_max = 0.8
90+ color = Color (1 , 1 , 1 , 0.607843 )
91+ color_ramp = SubResource ("GradientTexture1D_udcty" )
92+ hue_variation_min = -0.01
93+ hue_variation_max = 0.01
7394
7495[node name ="DroneManager" type ="Node2D" ]
7596script = ExtResource ("1_fhp4c" )
@@ -83,8 +104,6 @@ width = 2.0
83104[node name ="Drone" type ="Node2D" parent ="." ]
84105
85106[node name ="DroneSpritesheet" type ="AnimatedSprite2D" parent ="Drone" ]
86- position = Vector2 (0.249992 , -10.25 )
87- scale = Vector2 (5.95313 , 0.703125 )
88107sprite_frames = SubResource ("SpriteFrames_okakp" )
89108animation = &"Idle"
90109autoplay = "Idle"
@@ -114,8 +133,27 @@ local_coords = true
114133
115134[node name ="DroneHitbox" type ="CharacterBody2D" parent ="Drone" ]
116135
117- [node name ="CollisionShape2D" type ="CollisionShape2D" parent ="Drone/DroneHitbox" ]
118- position = Vector2 (0 , -10 )
119- shape = SubResource ("RectangleShape2D_4jc72" )
136+ [node name ="CollisionPolygon2D" type ="CollisionPolygon2D" parent ="Drone/DroneHitbox" ]
137+ polygon = PackedVector2Array (-32 , 16 , -24 , 18 , -15 , 18 , 0 , 16 , 15 , 18 , 24 , 18 , 32 , 16 , 32 , 5 , 49 , -4 , 49 , -8 , 32 , -3 , 32 , -9 , -32 , -9 , -32 , -3 , -50 , -8 , -50 , -4 , -32 , 4 )
138+
139+ [node name ="FireParticlesBootsLeft" type ="GPUParticles2D" parent ="Drone" ]
140+ self_modulate = Color (3 , 3 , 3 , 1 )
141+ position = Vector2 (-20 , 18 )
142+ scale = Vector2 (0.5 , 0.5 )
143+ amount = 100
144+ process_material = SubResource ("ParticleProcessMaterial_mev46" )
145+ texture = ExtResource ("3_k4xbe" )
146+ lifetime = 0.5
147+ explosiveness = 0.09
148+
149+ [node name ="FireParticlesBootsRight" type ="GPUParticles2D" parent ="Drone" ]
150+ self_modulate = Color (3 , 3 , 3 , 1 )
151+ position = Vector2 (20 , 18 )
152+ scale = Vector2 (0.5 , 0.5 )
153+ amount = 100
154+ process_material = SubResource ("ParticleProcessMaterial_mev46" )
155+ texture = ExtResource ("3_k4xbe" )
156+ lifetime = 0.5
157+ explosiveness = 0.09
120158
121159[connection signal ="area_entered" from ="Drone/DroneHurtbox" to ="." method ="_on_drone_hurtbox_area_entered" ]
0 commit comments