-
Notifications
You must be signed in to change notification settings - Fork 1
/
Player.tscn
82 lines (71 loc) · 2.1 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
[gd_scene load_steps=7 format=2]
[ext_resource path="res://Test Player Spritesheet.png" type="Texture" id=1]
[ext_resource path="res://Test_Lightmap_1.png" type="Texture" id=2]
[ext_resource path="res://Player.gd" type="Script" id=3]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 20.098 )
[sub_resource type="Animation" id=2]
resource_name = "Idle"
loop = true
step = 0.2
tracks/0/type = "value"
tracks/0/path = NodePath("Body/Art:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2, 0.4, 0.6, 0.8, 1 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 0, 1, 2, 3, 4, 5 ]
}
[sub_resource type="Animation" id=3]
resource_name = "Walk"
loop = true
step = 0.2
tracks/0/type = "value"
tracks/0/path = NodePath("Body/Art:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2, 0.4, 0.6, 0.8, 1 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 5, 6, 7, 8, 9, 10 ]
}
[node name="Player" type="KinematicBody2D"]
position = Vector2( 0, -32 )
script = ExtResource( 3 )
move_speed = 256.0
[node name="Collider" type="CollisionShape2D" parent="."]
position = Vector2( 0, 8.62175 )
shape = SubResource( 1 )
[node name="Body" type="Node2D" parent="."]
[node name="Aura Light" type="Light2D" parent="Body"]
position = Vector2( -6.73723, -23.7218 )
texture = ExtResource( 2 )
texture_scale = 0.75
color = Color( 0.952941, 0.921569, 0.72549, 1 )
energy = 0.75
range_item_cull_mask = 3
shadow_gradient_length = 10.0
shadow_item_cull_mask = 3
[node name="Art" type="Sprite" parent="Body"]
texture = ExtResource( 1 )
flip_h = true
vframes = 3
hframes = 5
frame = 5
[node name="Animation" type="AnimationPlayer" parent="."]
anims/Idle = SubResource( 2 )
anims/Walk = SubResource( 3 )
[node name="Chase Camera" type="Camera2D" parent="."]
position = Vector2( -8, -184 )
offset = Vector2( 0, 125 )
limit_left = -5120
limit_right = 1088
limit_smoothed = true
drag_margin_h_enabled = true