-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.tscn
91 lines (77 loc) · 2.59 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
87
88
89
90
91
[gd_scene load_steps=15 format=3 uid="uid://4vwrqjegqwpj"]
[ext_resource type="Script" path="res://Player.gd" id="1"]
[ext_resource type="Texture2D" uid="uid://deuywctokss2a" path="res://art/crab/small_complete_crab2down.png" id="2_m0hp8"]
[ext_resource type="Texture2D" uid="uid://do33382vj1g2l" path="res://art/crab/small_complete_crab1down.png" id="3_uveoj"]
[ext_resource type="Texture2D" uid="uid://dfigf6m807n5h" path="res://art/crab/small_complete_crab1up.png" id="4_4bywx"]
[ext_resource type="Texture2D" uid="uid://dcsm54efgjx6u" path="res://art/crab/small_complete_crab2up.png" id="5_k5meg"]
[ext_resource type="Texture2D" uid="uid://d3wmutipi5j7j" path="res://art/crab/small_complete_crab1right.png" id="6_lvooe"]
[ext_resource type="Texture2D" uid="uid://bndxy63a173gp" path="res://art/crab/small_complete_crab2right.png" id="7_wpqlj"]
[sub_resource type="SpriteFrames" id="1"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_m0hp8")
}, {
"duration": 1.0,
"texture": ExtResource("3_uveoj")
}],
"loop": true,
"name": &"down",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("6_lvooe")
}, {
"duration": 1.0,
"texture": ExtResource("7_wpqlj")
}],
"loop": true,
"name": &"right",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("4_4bywx")
}, {
"duration": 1.0,
"texture": ExtResource("5_k5meg")
}],
"loop": true,
"name": &"up",
"speed": 5.0
}]
[sub_resource type="CapsuleShape2D" id="2"]
radius = 27.0
height = 68.0
[sub_resource type="Gradient" id="3"]
colors = PackedColorArray(1, 1, 1, 0.501961, 1, 1, 1, 0)
[sub_resource type="GradientTexture1D" id="4"]
gradient = SubResource("3")
[sub_resource type="Curve" id="5"]
_data = [Vector2(0.00501098, 0.5), 0.0, 0.0, 0, 0, Vector2(0.994989, 0.324), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="6"]
curve = SubResource("5")
[sub_resource type="ParticleProcessMaterial" id="7"]
gravity = Vector3(0, 0, 0)
scale_curve = SubResource("6")
color_ramp = SubResource("4")
[node name="Player" type="Area2D"]
visible = false
z_index = 10
script = ExtResource("1")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
scale = Vector2(0.7, 0.7)
sprite_frames = SubResource("1")
animation = &"up"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("2")
[node name="Trail" type="GPUParticles2D" parent="."]
z_index = -1
amount = 10
process_material = SubResource("7")
texture = ExtResource("6_lvooe")
speed_scale = 2.0
[node name="BotTimer" type="Timer" parent="."]
[connection signal="body_entered" from="." to="." method="_on_Player_body_entered"]