-
Notifications
You must be signed in to change notification settings - Fork 0
/
Turret.tscn
58 lines (45 loc) · 1.51 KB
/
Turret.tscn
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
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Art/Turret.png" type="Texture" id=1]
[ext_resource path="res://Turret.gd" type="Script" id=2]
[sub_resource type="ParticlesMaterial" id=1]
emission_shape = 1
emission_sphere_radius = 16.0
flag_disable_z = true
spread = 0.0
gravity = Vector3( 0, 0, 0 )
orbit_velocity = 0.0
orbit_velocity_random = 0.0
scale = 4.0
color = Color( 0.235294, 0.0196078, 0.0196078, 1 )
[sub_resource type="CapsuleShape2D" id=2]
[node name="Turret" type="PathFollow2D"]
modulate = Color( 1, 1, 1, 0 )
position = Vector2( -224, -328 )
script = ExtResource( 2 )
[node name="Top" type="Node2D" parent="."]
[node name="Sprite" type="Sprite" parent="Top"]
rotation = -3.14159
scale = Vector2( 2, 2 )
texture = ExtResource( 1 )
[node name="Particles2D" type="Particles2D" parent="Top/Sprite"]
position = Vector2( 0, 4.47035e-08 )
emitting = false
amount = 64
one_shot = true
local_coords = false
process_material = SubResource( 1 )
[node name="SpawnTimer" type="Timer" parent="."]
wait_time = 5.0
autostart = true
[node name="ChargeUpTimer" type="Timer" parent="."]
one_shot = true
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 4
collision_mask = 0
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( -3.25, 0 )
rotation = 1.5708
shape = SubResource( 2 )
[node name="Tween" type="Tween" parent="."]
[connection signal="timeout" from="SpawnTimer" to="." method="spawn"]
[connection signal="timeout" from="ChargeUpTimer" to="." method="_spawn"]