64 lines
1.9 KiB
Plaintext
64 lines
1.9 KiB
Plaintext
|
[gd_scene load_steps=10 format=3 uid="uid://c4ta5bu811dxq"]
|
||
|
|
||
|
[ext_resource type="Script" path="res://player.gd" id="1_cxqgr"]
|
||
|
[ext_resource type="Texture2D" uid="uid://bhopkbf08unp5" path="res://player/walk0.png" id="2_ki5au"]
|
||
|
[ext_resource type="Texture2D" uid="uid://c1opfvqdowktk" path="res://player/up0.png" id="2_ph5tw"]
|
||
|
[ext_resource type="Texture2D" uid="uid://54gmxkmcp6tj" path="res://player/up1.png" id="3_3byaj"]
|
||
|
[ext_resource type="Texture2D" uid="uid://cry4pticwvwg8" path="res://player/walk1.png" id="3_rg1ro"]
|
||
|
[ext_resource type="Texture2D" uid="uid://cx7ohyhu684db" path="res://player/up2.png" id="4_hc7pb"]
|
||
|
[ext_resource type="Texture2D" uid="uid://btf3f612hbp7j" path="res://player/walk2.png" id="4_o10dw"]
|
||
|
|
||
|
[sub_resource type="SpriteFrames" id="SpriteFrames_yeuxm"]
|
||
|
animations = [{
|
||
|
"frames": [{
|
||
|
"duration": 1.0,
|
||
|
"texture": ExtResource("2_ph5tw")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": ExtResource("3_3byaj")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": ExtResource("2_ph5tw")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": ExtResource("4_hc7pb")
|
||
|
}],
|
||
|
"loop": true,
|
||
|
"name": &"up",
|
||
|
"speed": 10.0
|
||
|
}, {
|
||
|
"frames": [{
|
||
|
"duration": 1.0,
|
||
|
"texture": ExtResource("2_ki5au")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": ExtResource("3_rg1ro")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": ExtResource("2_ki5au")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": ExtResource("4_o10dw")
|
||
|
}],
|
||
|
"loop": true,
|
||
|
"name": &"walk",
|
||
|
"speed": 15.0
|
||
|
}]
|
||
|
|
||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_0lhkc"]
|
||
|
radius = 35.0143
|
||
|
|
||
|
[node name="Player" type="Area2D"]
|
||
|
script = ExtResource("1_cxqgr")
|
||
|
metadata/_edit_group_ = true
|
||
|
|
||
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||
|
sprite_frames = SubResource("SpriteFrames_yeuxm")
|
||
|
animation = &"walk"
|
||
|
frame_progress = 0.0187918
|
||
|
|
||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||
|
shape = SubResource("CircleShape2D_0lhkc")
|
||
|
|
||
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|