-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LaserBeam.tscn
112 lines (96 loc) · 2.98 KB
/
LaserBeam.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
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
[gd_scene load_steps=12 format=2]
[ext_resource path="res://LaserBeam.gd" type="Script" id=1]
[ext_resource path="res://assets/glowing_circle.png" type="Texture" id=2]
[sub_resource type="Gradient" id=1]
offsets = PoolRealArray( 0.582915, 1 )
colors = PoolColorArray( 1, 1, 1, 1, 1, 1, 1, 0 )
[sub_resource type="GradientTexture" id=2]
gradient = SubResource( 1 )
[sub_resource type="Curve" id=3]
_data = [ Vector2( 0.518072, 1 ), 0.0, -3.53434, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="CurveTexture" id=4]
curve = SubResource( 3 )
[sub_resource type="ParticlesMaterial" id=5]
flag_disable_z = true
gravity = Vector3( 0, 0, 0 )
initial_velocity = 100.0
orbit_velocity = 0.0
orbit_velocity_random = 0.0
scale = 0.5
scale_curve = SubResource( 4 )
color_ramp = SubResource( 2 )
[sub_resource type="Curve" id=6]
_data = [ Vector2( 0, 0 ), 0.0, 0.0, 0, 0, Vector2( 0.503614, 0.957505 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="CurveTexture" id=7]
curve = SubResource( 6 )
[sub_resource type="ParticlesMaterial" id=8]
emission_shape = 2
emission_box_extents = Vector3( 60, 20, 1 )
flag_align_y = true
flag_disable_z = true
direction = Vector3( -1, 0, 0 )
spread = 0.0
gravity = Vector3( 0, 0, 0 )
initial_velocity = 30.0
orbit_velocity = 0.0
orbit_velocity_random = 0.0
tangential_accel = 100.0
tangential_accel_random = 1.0
scale = 0.3
scale_curve = SubResource( 7 )
[sub_resource type="ParticlesMaterial" id=9]
flag_disable_z = true
spread = 50.0
gravity = Vector3( 0, 0, 0 )
initial_velocity = 300.0
orbit_velocity = 0.0
orbit_velocity_random = 0.0
scale = 0.5
scale_curve = SubResource( 4 )
color_ramp = SubResource( 2 )
[node name="LaserBeam2D" type="RayCast2D"]
enabled = true
cast_to = Vector2( 0, 0 )
script = ExtResource( 1 )
[node name="FillLine2D" type="Line2D" parent="."]
modulate = Color( 1.5, 1.5, 1.5, 1 )
points = PoolVector2Array( 0, 0, 100, 0 )
default_color = Color( 0.301961, 0.65098, 1, 1 )
texture_mode = 2
joint_mode = 2
begin_cap_mode = 2
end_cap_mode = 2
sharp_limit = 8.0
antialiased = true
[node name="CastingParticles2D" type="Particles2D" parent="."]
modulate = Color( 1.5, 1.5, 1.5, 1 )
show_behind_parent = true
emitting = false
lifetime = 0.3
visibility_rect = Rect2( 0, -18.722, 29.6756, 38.4841 )
local_coords = false
process_material = SubResource( 5 )
texture = ExtResource( 2 )
[node name="BeamParticles2D" type="Particles2D" parent="."]
modulate = Color( 1.5, 1.5, 1.5, 1 )
emitting = false
amount = 50
lifetime = 0.5
preprocess = 1.0
randomness = 1.0
visibility_rect = Rect2( -2500, -2500, 5000, 5000 )
local_coords = false
draw_order = 1
process_material = SubResource( 8 )
texture = ExtResource( 2 )
[node name="CollisionParticles2D" type="Particles2D" parent="."]
modulate = Color( 1.5, 1.5, 1.5, 1 )
show_behind_parent = true
emitting = false
amount = 16
lifetime = 0.3
visibility_rect = Rect2( -2500, -2500, 5000, 5000 )
local_coords = false
process_material = SubResource( 9 )
texture = ExtResource( 2 )
[node name="Tween" type="Tween" parent="."]