1- [gd_scene load_steps =6 format =1 ]
1+ [gd_scene load_steps =8 format =1 ]
22
33[ext_resource path ="res://scripts/enemy.gd" type ="Script" id =1 ]
44[ext_resource path ="res://art/sheet.ufoGreen.atex" type ="Texture" id =2 ]
55[ext_resource path ="res://scenes/enemy_paths.tscn" type ="PackedScene" id =3 ]
6+ [ext_resource path ="res://audio/enemy_laser.wav" type ="Sample" id =4 ]
67
78[sub_resource type ="CircleShape2D" id =1 ]
89
@@ -26,8 +27,18 @@ tracks/0/keys = {
2627"values" : [ 0.0 , 180.0 , 360.0 ]
2728}
2829
30+ [sub_resource type ="SampleLibrary" id =3 ]
31+
32+ samples/enemy_laser = {
33+ "db" : -3.0 ,
34+ "pitch" : 1.0 ,
35+ "priority" : 0 ,
36+ "sample" : ExtResource ( 4 )
37+ }
38+
2939[node name ="enemy" type ="Area2D" ]
3040
41+ transform/pos = Vector2 ( -47.6131 , -51.6943 )
3142input/pickable = true
3243shapes/0/shape = SubResource ( 1 )
3344shapes/0/transform = Matrix32( 1 , 0, 0, 1, 0, 0 )
@@ -37,10 +48,13 @@ gravity = 98.0
3748linear_damp = 0.1
3849angular_damp = 1.0
3950script/script = ExtResource ( 1 )
51+ __meta__ = {
52+ "_edit_group_" : true
53+ }
4054
4155[node name ="sprite" type ="Sprite" parent ="." ]
4256
43- transform/rot = 56.4122
57+ transform/rot = 89.4901
4458transform/scale = Vector2 ( 0.8 , 0.8 )
4559texture = ExtResource ( 2 )
4660
@@ -64,10 +78,32 @@ autoplay = "rotate"
6478
6579[node name ="enemy_paths" parent ="." instance =ExtResource ( 3 )]
6680
67- [node name ="visible" type ="VisibilityNotifier2D" parent ="." ]
68-
69- rect = Rect2 ( -10 , -10 , 20 , 20 )
70-
71- [connection signal ="exit_screen" from ="visible" to ="." method ="_on_visible_exit_screen" ]
81+ [node name ="bullet_container" type ="Node" parent ="." ]
82+
83+ [node name ="shoot_timer" type ="Timer" parent ="." ]
84+
85+ process_mode = 1
86+ wait_time = 1.0
87+ one_shot = false
88+ autostart = false
89+
90+ [node name ="sounds" type ="SamplePlayer" parent ="." ]
91+
92+ config/polyphony = 1
93+ config/samples = SubResource ( 3 )
94+ default/volume_db = 0.0
95+ default/pitch_scale = 1.0
96+ default/pan = 0.0
97+ default/depth = 0.0
98+ default/height = 0.0
99+ default/filter/type = 0
100+ default/filter/cutoff = 5000.0
101+ default/filter/resonance = 1.0
102+ default/filter/gain = 1.0
103+ default/reverb_room = 2
104+ default/reverb_send = 0.0
105+ default/chorus_send = 0.0
106+
107+ [connection signal ="timeout" from ="shoot_timer" to ="." method ="_on_shoot_timer_timeout" ]
72108
73109
0 commit comments