-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.tscn
86 lines (65 loc) · 3.05 KB
/
player.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
[gd_scene load_steps=13 format=3 uid="uid://did6o62ni3sjp"]
[ext_resource type="Script" path="res://player.gd" id="1_toly5"]
[ext_resource type="Texture2D" uid="uid://li2x6sjm8ue" path="res://assets/player.png" id="1_vbidl"]
[ext_resource type="Texture2D" uid="uid://c46htyaexexvl" path="res://assets/circle-particle.png" id="3_snqyy"]
[ext_resource type="PackedScene" uid="uid://bi5x0wqyu8o1f" path="res://camera.tscn" id="4_gr7c1"]
[ext_resource type="PackedScene" uid="uid://cigrqs48dhwyp" path="res://utils/drop_shadow.tscn" id="4_tufma"]
[ext_resource type="PackedScene" uid="uid://0nj0ore75hkm" path="res://shield.tscn" id="6_fyl6k"]
[ext_resource type="PackedScene" uid="uid://d4cgyw5gmqvuq" path="res://damage_ring.tscn" id="7_upwsa"]
[sub_resource type="Curve" id="Curve_o74t4"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_3301y"]
curve = SubResource("Curve_o74t4")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_kpl2f"]
particle_flag_disable_z = true
spread = 180.0
gravity = Vector3(0, 0, 0)
initial_velocity_max = 10.0
orbit_velocity_min = 0.0
orbit_velocity_max = 0.0
scale_min = 0.8
scale_curve = SubResource("CurveTexture_3301y")
[sub_resource type="RectangleShape2D" id="RectangleShape2D_tomiw"]
size = Vector2(4, 4)
[sub_resource type="CircleShape2D" id="CircleShape2D_mubul"]
radius = 2.23607
[node name="Player" type="CharacterBody2D"]
collision_layer = 2
collision_mask = 13
motion_mode = 1
script = ExtResource("1_toly5")
[node name="Camera" parent="." instance=ExtResource("4_gr7c1")]
[node name="MoveParticles" type="GPUParticles2D" parent="."]
process_material = SubResource("ParticleProcessMaterial_kpl2f")
texture = ExtResource("3_snqyy")
lifetime = 0.5
[node name="Sprite" type="Sprite2D" parent="."]
texture = ExtResource("1_vbidl")
[node name="DropShadow" parent="Sprite" instance=ExtResource("4_tufma")]
[node name="CollisionShape" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_tomiw")
[node name="Hitbox" type="Area2D" parent="."]
collision_layer = 2
collision_mask = 12
[node name="CollisionShape" type="CollisionShape2D" parent="Hitbox"]
shape = SubResource("CircleShape2D_mubul")
debug_color = Color(0.701961, 0, 0, 0.419608)
[node name="ShieldAnchor" type="Node2D" parent="."]
top_level = true
[node name="Shield" parent="ShieldAnchor" instance=ExtResource("6_fyl6k")]
position = Vector2(0, -18)
scale = Vector2(1e-05, 1e-05)
[node name="DamageRing" parent="." instance=ExtResource("7_upwsa")]
top_level = true
z_index = -20
scale = Vector2(1e-05, 1e-05)
[node name="DashCooldownTimer" type="Timer" parent="."]
one_shot = true
[node name="DashTimer" type="Timer" parent="."]
one_shot = true
[node name="RegenTimer" type="Timer" parent="."]
autostart = true
[connection signal="area_entered" from="Hitbox" to="." method="_on_hitbox_area_entered"]
[connection signal="timeout" from="DashTimer" to="." method="_on_dash_timer_timeout"]
[connection signal="timeout" from="RegenTimer" to="." method="_on_regen_timer_timeout"]