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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
[gd_scene load_steps=22 format=2]

[ext_resource path="res://sounds/Laser.wav" type="AudioStream" id=2]
[ext_resource path="res://sprites/Laser-Sheet.png" type="Texture" id=3]
[ext_resource path="res://sprites/smallparticle.png" type="Texture" id=4]
[ext_resource path="res://sprites/PlayerMissle.png" type="Texture" id=5]
[ext_resource path="res://bullets/scripts/Laser.gd" type="Script" id=6]
[ext_resource path="res://sprites/spot.png" type="Texture" id=7]

[sub_resource type="AtlasTexture" id=20]
flags = 2
atlas = ExtResource( 3 )
region = Rect2( 0, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=21]
flags = 2
atlas = ExtResource( 3 )
region = Rect2( 16, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=22]
flags = 2
atlas = ExtResource( 3 )
region = Rect2( 32, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=23]
flags = 2
atlas = ExtResource( 3 )
region = Rect2( 48, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=24]
flags = 2
atlas = ExtResource( 3 )
region = Rect2( 64, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=25]
flags = 2
atlas = ExtResource( 3 )
region = Rect2( 80, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=26]
flags = 2
atlas = ExtResource( 3 )
region = Rect2( 96, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=27]
flags = 2
atlas = ExtResource( 3 )
region = Rect2( 112, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=28]
flags = 2
atlas = ExtResource( 3 )
region = Rect2( 128, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=29]
flags = 2
atlas = ExtResource( 3 )
region = Rect2( 144, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=30]
flags = 2
atlas = ExtResource( 3 )
region = Rect2( 160, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=31]
flags = 2
atlas = ExtResource( 3 )
region = Rect2( 176, 0, 16, 16 )

[sub_resource type="AtlasTexture" id=32]
flags = 2
atlas = ExtResource( 3 )
region = Rect2( 192, 0, 16, 16 )

[sub_resource type="SpriteFrames" id=15]
resource_local_to_scene = true
animations = [ {
"frames": [ ExtResource( 5 ) ],
"loop": true,
"name": "New Anim",
"speed": 5.0
}, {
"frames": [ ExtResource( 4 ) ],
"loop": true,
"name": "New Anim 1",
"speed": 5.0
}, {
"frames": [ SubResource( 20 ), SubResource( 21 ), SubResource( 22 ), SubResource( 23 ), SubResource( 24 ), SubResource( 25 ), SubResource( 26 ), SubResource( 27 ), SubResource( 28 ), SubResource( 29 ), SubResource( 30 ), SubResource( 31 ), SubResource( 32 ) ],
"loop": true,
"name": "default",
"speed": 20.0
} ]

[sub_resource type="CapsuleShape2D" id=34]
radius = 5.0
height = 5.0

[node name="Laser" type="RigidBody2D" groups=["pbullet"]]
show_behind_parent = true
light_mask = 32769
position = Vector2( 0, 1 )
collision_layer = 32768
collision_mask = 130
mass = 5.0
gravity_scale = 0.0
linear_damp = 0.0
angular_damp = 0.0
script = ExtResource( 6 )
spreadmaxneg = -3
spreadmaxpos = 3
initial_velocity = 400
trail_rare = false
rarity_max = 2
modulate_glow = true

[node name="Laser" type="AnimatedSprite" parent="."]
unique_name_in_owner = true
frames = SubResource( 15 )

[node name="Collision" type="CollisionShape2D" parent="."]
position = Vector2( 0.5, 0 )
shape = SubResource( 34 )

[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
position = Vector2( -1.19209e-07, 2.98023e-08 )
scale = Vector2( 0.2, 0.2 )

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

[node name="Timer" type="Timer" parent="."]

[node name="Timer2" type="Timer" parent="."]

[node name="Light" type="Light2D" parent="."]
unique_name_in_owner = true
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 7 )
color = Color( 0, 0.6, 1, 0.733333 )
energy = 2.0
shadow_enabled = true
shadow_buffer_size = 1024
shadow_filter = 2
shadow_filter_smooth = 2.0

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