51 lines
1.6 KiB
Plaintext
51 lines
1.6 KiB
Plaintext
[gd_scene format=3 uid="uid://jb11l53ss1a5"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bbve1gb0go3nk" path="res://dodge_the_creeps_2d_assets/art/playerGrey_up1.png" id="1_hqtel"]
|
|
[ext_resource type="Script" uid="uid://on80gghcvcrr" path="res://player.gd" id="1_sweqy"]
|
|
[ext_resource type="Texture2D" uid="uid://cobserhyt4ayp" path="res://dodge_the_creeps_2d_assets/art/playerGrey_up2.png" id="2_sweqy"]
|
|
[ext_resource type="Texture2D" uid="uid://2d0wkwyray0e" path="res://dodge_the_creeps_2d_assets/art/playerGrey_walk1.png" id="3_2hs0m"]
|
|
[ext_resource type="Texture2D" uid="uid://dkn0w748qgf3v" path="res://dodge_the_creeps_2d_assets/art/playerGrey_walk2.png" id="4_1jxqw"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_dw050"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("1_hqtel")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_sweqy")
|
|
}],
|
|
"loop": true,
|
|
"name": &"up",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_2hs0m")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_1jxqw")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_b26j0"]
|
|
radius = 53.0
|
|
height = 136.0
|
|
|
|
[node name="Player" type="Area2D" unique_id=1124984874]
|
|
script = ExtResource("1_sweqy")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1981150341]
|
|
sprite_frames = SubResource("SpriteFrames_dw050")
|
|
animation = &"up"
|
|
speed_scale = 0.5
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1755581068]
|
|
shape = SubResource("CapsuleShape2D_b26j0")
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|