-
Notifications
You must be signed in to change notification settings - Fork 4
/
Player.tscn
107 lines (94 loc) · 3.04 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[gd_scene load_steps=17 format=2]
[ext_resource path="res://Scripts/Player.gd" type="Script" id=1]
[ext_resource path="res://Sprites/Player/Jump3.png" type="Texture" id=2]
[ext_resource path="res://Sprites/Player/Jump4.png" type="Texture" id=3]
[ext_resource path="res://Sprites/Player/Jump0.png" type="Texture" id=4]
[ext_resource path="res://Sprites/Player/Run0.png" type="Texture" id=5]
[ext_resource path="res://Sprites/Player/Run1.png" type="Texture" id=6]
[ext_resource path="res://Sprites/Player/Run2.png" type="Texture" id=7]
[ext_resource path="res://Sprites/Player/Run3.png" type="Texture" id=8]
[ext_resource path="res://Sprites/Player/Run4.png" type="Texture" id=9]
[ext_resource path="res://Sprites/Player/Run7.png" type="Texture" id=10]
[ext_resource path="res://Sprites/Player/Idle0.png" type="Texture" id=11]
[ext_resource path="res://BackgroundMusic.tscn" type="PackedScene" id=12]
[ext_resource path="res://ShootSound.tscn" type="PackedScene" id=13]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 3 ) ],
"loop": true,
"name": "Fall",
"speed": 5.0
}, {
"frames": [ ExtResource( 4 ) ],
"loop": true,
"name": "Dead",
"speed": 5.0
}, {
"frames": [ ExtResource( 4 ) ],
"loop": true,
"name": "Jump",
"speed": 5.0
}, {
"frames": [ ExtResource( 5 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 10 ) ],
"loop": true,
"name": "Run",
"speed": 5.0
}, {
"frames": [ ExtResource( 11 ) ],
"loop": true,
"name": "Idle",
"speed": 5.0
} ]
[sub_resource type="CapsuleShape2D" id=2]
radius = 15.0
height = 28.0
[sub_resource type="Animation" id=3]
resource_name = "TakingDamage"
length = 0.5
tracks/0/type = "value"
tracks/0/path = NodePath(".:modulate")
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 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 1 ), Color( 1, 0, 0, 1 ), Color( 1, 1, 1, 1 ) ]
}
[node name="Player" type="KinematicBody2D"]
z_index = 1
script = ExtResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 1 )
animation = "Dead"
__meta__ = {
"_edit_lock_": true
}
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0, 4 )
shape = SubResource( 2 )
__meta__ = {
"_edit_lock_": true
}
[node name="Position2D" type="Position2D" parent="."]
position = Vector2( 48, 4 )
[node name="Camera2D" type="Camera2D" parent="."]
current = true
limit_left = 0
limit_top = 0
limit_right = 3500
limit_bottom = 720
smoothing_enabled = true
smoothing_speed = 10.0
editor_draw_limits = true
[node name="Timer" type="Timer" parent="."]
one_shot = true
[node name="BackgroundMusic" parent="." instance=ExtResource( 12 )]
volume_db = -5.0
[node name="ShootSound" parent="." instance=ExtResource( 13 )]
autoplay = false
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/TakingDamage = SubResource( 3 )
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]