-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayer.tscn
More file actions
71 lines (58 loc) · 2.24 KB
/
Player.tscn
File metadata and controls
71 lines (58 loc) · 2.24 KB
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
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Player.gd" type="Script" id=1]
[ext_resource path="res://art/inky2.png" type="Texture" id=2]
[ext_resource path="res://art/inky1.png" type="Texture" id=4]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 4 ), ExtResource( 2 ) ],
"loop": true,
"name": "move",
"speed": 5.0
} ]
[sub_resource type="Gradient" id=3]
colors = PoolColorArray( 1, 1, 1, 0.501961, 1, 1, 1, 0 )
[sub_resource type="GradientTexture" 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 ]
[sub_resource type="CurveTexture" id=6]
curve = SubResource( 5 )
[sub_resource type="ParticlesMaterial" id=7]
flag_disable_z = true
gravity = Vector3( 0, 0, 0 )
initial_velocity = 1.0
orbit_velocity = 0.0
orbit_velocity_random = 0.0
scale = 0.75
scale_curve = SubResource( 6 )
color_ramp = SubResource( 4 )
[node name="Player" type="Area2D"]
position = Vector2( -15.3687, 6.16989 )
z_index = 10
script = ExtResource( 1 )
__meta__ = {
"_edit_group_": true
}
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 1 )
animation = "move"
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
polygon = PoolVector2Array( 5.91699, 44.022, 38.507, 44.3966, 45.4371, 35.7808, 45.0625, -10.1074, 39.6308, -9.3582, 40.0054, -28.4627, 35.1356, -29.7738, 34.0118, -34.4562, 29.3293, -35.2054, 28.7675, -39.7006, 19.9644, -40.0752, 20.1517, -45.5069, -13.9367, -45.6942, -14.6859, -40.4498, -24.2381, -39.5133, -24.9873, -35.7673, -28.546, -35.3927, -30.5538, -30.7688, -34.3523, -29.2119, -34.7269, -21.158, -34.9142, -10.482, -39.222, -10.6693, -39.4093, 34.0951, -32.292, 43.0855 )
[node name="Trail" type="Particles2D" parent="."]
position = Vector2( 0.529785, -0.264877 )
z_index = -1
amount = 10
speed_scale = 2.0
local_coords = false
process_material = SubResource( 7 )
texture = ExtResource( 4 )
[node name="Label" type="Label" parent="."]
margin_left = -23.7203
margin_top = -69.3461
margin_right = 29.2797
margin_bottom = -55.3461
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="body_entered" from="." to="." method="_on_Player_body_entered"]