summaryrefslogtreecommitdiff
path: root/scenes/wyvern_projectile.tscn
blob: 27dbeba85f7a6cd603f8e1bd00178c6482e0a109 (plain)
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
[gd_scene load_steps=6 format=3 uid="uid://b5klvt4gcjnah"]

[ext_resource type="Script" uid="uid://brqwmj8ydtipd" path="res://scripts/wyvern_projectile.gd" id="1_4pt1w"]

[sub_resource type="CircleShape2D" id="CircleShape2D_tajkb"]
radius = 8.0

[sub_resource type="Curve" id="Curve_tajkb"]
_data = [Vector2(0, 0.348315), 0.0, 0.0, 0, 0, Vector2(0.508197, 1), 0.0, 0.0, 0, 0, Vector2(0.795082, 0.808989), 0.0, 0.0, 0, 0, Vector2(1, 0.359551), 0.0, 0.0, 0, 0]
point_count = 4

[sub_resource type="Gradient" id="Gradient_tajkb"]
offsets = PackedFloat32Array(0.125, 0.354167, 0.5625, 0.78125)
colors = PackedColorArray(0.996078, 0.133333, 0.172549, 1, 1, 0.772549, 0, 1, 0, 0.784314, 0.321569, 1, 1, 0.0666667, 0.321569, 1)

[sub_resource type="Curve" id="Curve_68je7"]
_limits = [-1.0, 1.0, 0.0, 1.0]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0.707865), 0.0, 0.0, 0, 0]
point_count = 2

[node name="WyvernProjectile" type="CharacterBody2D"]
script = ExtResource("1_4pt1w")

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_tajkb")
disabled = true

[node name="DamageTick" type="Timer" parent="."]
wait_time = 0.25
autostart = true

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

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Area2D"]
position = Vector2(24, 0)
scale = Vector2(5, 1)
polygon = PackedVector2Array(-4.8, 0, 3.2, -8, 3.2, 8)

[node name="CPUParticles2D" type="CPUParticles2D" parent="Area2D"]
skew = 0.401426
amount = 1000
lifetime = 0.25
speed_scale = 0.4
explosiveness = 0.3
lifetime_randomness = 0.85
fixed_fps = 30
emission_shape = 1
emission_sphere_radius = 2.0
spread = 0.0
gravity = Vector2(0, 0)
initial_velocity_max = 200.0
orbit_velocity_min = -0.5
orbit_velocity_max = 0.5
linear_accel_min = 100.0
linear_accel_max = 100.0
scale_amount_min = 0.5
scale_amount_max = 4.0
scale_amount_curve = SubResource("Curve_tajkb")
color_ramp = SubResource("Gradient_tajkb")
hue_variation_curve = SubResource("Curve_68je7")
anim_speed_max = 20.0

[connection signal="timeout" from="DamageTick" to="." method="_on_damage_tick_timeout"]