1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[gd_scene load_steps=8 format=2]

[ext_resource path="res://sounds/missile.wav" type="AudioStream" id=2]
[ext_resource path="res://effects/Trail.tscn" type="PackedScene" id=3]
[ext_resource path="res://sprites/PlayerMissle.png" type="Texture" id=4]
[ext_resource path="res://bullets/scripts/missile.gd" type="Script" id=5]
[ext_resource path="res://sprites/spot.png" type="Texture" id=6]

[sub_resource type="CapsuleShape2D" id=3]
radius = 6.0
height = 6.0

[sub_resource type="CanvasItemMaterial" id=2]
blend_mode = 1

[node name="missile" type="RigidBody2D"]
collision_layer = 32768
collision_mask = 130
mass = 80.0
gravity_scale = 0.0
script = ExtResource( 5 )
TERMINAL_VELOCITY = 200.0
CONSTANT_THRUST = 100.0
TURN_STRENGTH = 75.0

[node name="Trail" parent="." instance=ExtResource( 3 )]
position = Vector2( -5, 0 )
THICKNESS = 3.0

[node name="CollisionPolygon2D" type="CollisionShape2D" parent="."]
rotation = 1.5708
scale = Vector2( 1, -1 )
shape = SubResource( 3 )

[node name="LaserSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 2 )
volume_db = -20.0
autoplay = true

[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 4 )

[node name="Timer" type="Timer" parent="."]
wait_time = 20.0
one_shot = true
autostart = true

[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
position = Vector2( 0.5, -8.9407e-08 )
scale = Vector2( 0.35, 0.3 )

[node name="Light" type="Light2D" parent="."]
material = SubResource( 2 )
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 6 )
texture_scale = 2.0
color = Color( 0.145098, 0.658824, 1, 1 )
energy = 2.0
shadow_enabled = true
shadow_gradient_length = 3.0
shadow_filter = 2
shadow_filter_smooth = 5.0

[connection signal="timeout" from="Timer" to="." method="queue_free"]
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]