diff options
Diffstat (limited to 'Player/Player.tscn')
-rw-r--r-- | Player/Player.tscn | 156 |
1 files changed, 156 insertions, 0 deletions
diff --git a/Player/Player.tscn b/Player/Player.tscn new file mode 100644 index 0000000..872ba3e --- /dev/null +++ b/Player/Player.tscn @@ -0,0 +1,156 @@ +[gd_scene load_steps=22 format=3 uid="uid://487pqyrtqrew"] + +[ext_resource type="Texture2D" uid="uid://cxg8toyjj6yle" path="res://Player/Assets/default-crouch.png" id="1_4nyj3"] +[ext_resource type="Script" path="res://Player/player.gd" id="1_ivtx1"] +[ext_resource type="Texture2D" uid="uid://cn2evmcnu0g6c" path="res://Player/Assets/default-idle.png" id="2_g2y7o"] +[ext_resource type="Texture2D" uid="uid://1mkmeqlm5vtr" path="res://Player/Assets/default-walking.png" id="3_wsss5"] +[ext_resource type="Texture2D" uid="uid://dcwv7a003pwhf" path="res://Player/Assets/default-jump.png" id="4_m41u8"] +[ext_resource type="AudioStream" uid="uid://co40881hbjrwi" path="res://Player/Assets/Audio/Jump.wav" id="6_sd32f"] +[ext_resource type="AudioStream" uid="uid://2yr05fjiqsg1" path="res://Player/Assets/Audio/Land.wav" id="7_2ktp2"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_k1p8t"] +atlas = ExtResource("1_4nyj3") +region = Rect2(28, 0, 25, 31) + +[sub_resource type="AtlasTexture" id="AtlasTexture_1a8jm"] +atlas = ExtResource("1_4nyj3") +region = Rect2(0, 0, 25, 31) + +[sub_resource type="AtlasTexture" id="AtlasTexture_fm2ru"] +atlas = ExtResource("1_4nyj3") +region = Rect2(28, 0, 25, 31) + +[sub_resource type="AtlasTexture" id="AtlasTexture_yqbf7"] +atlas = ExtResource("2_g2y7o") +region = Rect2(0, 0, 24, 31) + +[sub_resource type="AtlasTexture" id="AtlasTexture_hrsss"] +atlas = ExtResource("2_g2y7o") +region = Rect2(0, 0, 24, 31) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jcisw"] +atlas = ExtResource("2_g2y7o") +region = Rect2(29, 0, 24, 31) + +[sub_resource type="AtlasTexture" id="AtlasTexture_svkg7"] +atlas = ExtResource("3_wsss5") +region = Rect2(0, 0, 24, 31) + +[sub_resource type="AtlasTexture" id="AtlasTexture_krvh0"] +atlas = ExtResource("3_wsss5") +region = Rect2(25, 0, 24, 31) + +[sub_resource type="AtlasTexture" id="AtlasTexture_6yl31"] +atlas = ExtResource("3_wsss5") +region = Rect2(50, 0, 24, 31) + +[sub_resource type="AtlasTexture" id="AtlasTexture_7fe5s"] +atlas = ExtResource("3_wsss5") +region = Rect2(75, 0, 24, 31) + +[sub_resource type="AtlasTexture" id="AtlasTexture_5axp4"] +atlas = ExtResource("3_wsss5") +region = Rect2(100, 0, 24, 31) + +[sub_resource type="AtlasTexture" id="AtlasTexture_ff5d4"] +atlas = ExtResource("3_wsss5") +region = Rect2(125, 0, 24, 31) + +[sub_resource type="SpriteFrames" id="SpriteFrames_k7vmh"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_k1p8t") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_1a8jm") +}], +"loop": true, +"name": &"default_crouch", +"speed": 4.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_fm2ru") +}], +"loop": true, +"name": &"default_crouch_idle", +"speed": 5.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_yqbf7") +}], +"loop": false, +"name": &"default_idle", +"speed": 1.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_hrsss") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_jcisw") +}], +"loop": true, +"name": &"default_idle_blink", +"speed": 2.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": ExtResource("4_m41u8") +}], +"loop": false, +"name": &"default_jump", +"speed": 1.0 +}, { +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_svkg7") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_krvh0") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_6yl31") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_7fe5s") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_5axp4") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_ff5d4") +}], +"loop": true, +"name": &"default_walk", +"speed": 6.0 +}] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_oyjy3"] +size = Vector2(15, 28.5) + +[node name="Player" type="CharacterBody2D"] +collision_mask = 16 +script = ExtResource("1_ivtx1") + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] +texture_filter = 1 +sprite_frames = SubResource("SpriteFrames_k7vmh") +animation = &"default_idle" +centered = false + +[node name="NavigationShape" type="CollisionShape2D" parent="."] +position = Vector2(12, 16.25) +shape = SubResource("RectangleShape2D_oyjy3") + +[node name="Camera2D" type="Camera2D" parent="."] + +[node name="Audio" type="Node" parent="."] + +[node name="Jump" type="AudioStreamPlayer" parent="Audio"] +stream = ExtResource("6_sd32f") + +[node name="Land" type="AudioStreamPlayer" parent="Audio"] +stream = ExtResource("7_2ktp2") |