The_Dark_Side_of_Earth/player/player.tscn

117 lines
4.3 KiB
Text
Raw Normal View History

[gd_scene load_steps=21 format=3 uid="uid://cmaovvr15b3qk"]
2025-09-15 19:15:43 +02:00
2025-09-16 14:59:40 +02:00
[ext_resource type="Script" uid="uid://ddidj1uau28ck" path="res://player/player.gd" id="1_4flbx"]
2025-09-16 18:01:04 +02:00
[ext_resource type="Texture2D" uid="uid://c4xg25s8loxp0" path="res://player/Player_Walk/Walk 1.png" id="2_hg6s5"]
[ext_resource type="Texture2D" uid="uid://chxob4jg7qhqu" path="res://player/Player_Walk/Walk 2.png" id="3_8t03j"]
2025-09-16 14:59:40 +02:00
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="3_i3pqv"]
2025-09-19 13:42:23 +02:00
[ext_resource type="Texture2D" uid="uid://ds8mbsjrianb3" path="res://player/Attack animation 2/Attack animation 2 0.png" id="3_tqiix"]
2025-09-16 18:01:04 +02:00
[ext_resource type="Texture2D" uid="uid://vwbnqmbol6hh" path="res://player/Player_Walk/Walk 3.png" id="4_2ieo8"]
2025-09-19 13:42:23 +02:00
[ext_resource type="Texture2D" uid="uid://dxr4idwjaq4kx" path="res://player/Attack animation 2/Attack animation 2 1.png" id="4_e7oew"]
2025-09-16 14:59:40 +02:00
[ext_resource type="PackedScene" uid="uid://d3e3kuyeh6mr1" path="res://player/sword.tscn" id="4_yw30f"]
2025-09-19 13:42:23 +02:00
[ext_resource type="Texture2D" uid="uid://doywx3flx6pvo" path="res://player/Attack animation 2/Attack animation 2 2.png" id="5_c35mf"]
2025-09-16 18:01:04 +02:00
[ext_resource type="Texture2D" uid="uid://dawbam413fob" path="res://player/Player_Walk/Walk 4.png" id="5_ebec5"]
2025-09-19 13:42:23 +02:00
[ext_resource type="Texture2D" uid="uid://bs8rolxcg4bib" path="res://player/Attack animation 2/Attack animation 2 3.png" id="6_65viv"]
2025-09-16 18:01:04 +02:00
[ext_resource type="Texture2D" uid="uid://y32k1koww7oy" path="res://player/Player_Walk/Walk 5.png" id="6_yllr7"]
[ext_resource type="Texture2D" uid="uid://bo7h3yc40kon3" path="res://player/Player_Walk/Walk 6.png" id="7_kb6p2"]
2025-09-19 13:42:23 +02:00
[ext_resource type="Texture2D" uid="uid://6su58pdrqqhd" path="res://player/Attack animation 2/Attack animation 2 4 .png" id="7_x7c3f"]
2025-09-18 17:47:49 +02:00
[ext_resource type="PackedScene" uid="uid://beotdg4etmevc" path="res://player/double_jump/double_jump_animation.tscn" id="10_8t03j"]
2025-09-19 03:33:03 +02:00
[ext_resource type="AudioStream" uid="uid://co07360hqn6fk" path="res://sounds/686321__cjspellsfish__punch-land-soft.wav" id="11_2ieo8"]
[ext_resource type="AudioStream" uid="uid://ds0yw3au0quae" path="res://sounds/whoosh.mp3" id="12_ebec5"]
2025-09-19 14:42:16 +02:00
[ext_resource type="AudioStream" uid="uid://c3pqq5yi1686n" path="res://sounds/sword_swing.wav" id="17_tqiix"]
2025-09-15 19:15:43 +02:00
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_onrkg"]
[sub_resource type="SpriteFrames" id="SpriteFrames_dw050"]
animations = [{
"frames": [{
"duration": 1.0,
2025-09-19 13:42:23 +02:00
"texture": ExtResource("3_tqiix")
2025-09-19 12:08:35 +02:00
}, {
"duration": 1.0,
2025-09-19 13:42:23 +02:00
"texture": ExtResource("4_e7oew")
2025-09-19 12:08:35 +02:00
}, {
"duration": 1.0,
2025-09-19 13:42:23 +02:00
"texture": ExtResource("5_c35mf")
2025-09-19 12:08:35 +02:00
}, {
"duration": 1.0,
2025-09-19 13:42:23 +02:00
"texture": ExtResource("6_65viv")
}, {
"duration": 1.0,
"texture": ExtResource("7_x7c3f")
2025-09-19 12:08:35 +02:00
}],
"loop": false,
"name": &"attack",
2025-09-19 13:42:23 +02:00
"speed": 20.0
2025-09-19 12:08:35 +02:00
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_hg6s5")
}],
2025-09-19 12:24:23 +02:00
"loop": false,
2025-09-19 12:08:35 +02:00
"name": &"idle",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
2025-09-16 18:01:04 +02:00
"texture": ExtResource("2_hg6s5")
}, {
"duration": 1.0,
"texture": ExtResource("3_8t03j")
}, {
"duration": 1.0,
2025-09-16 18:01:04 +02:00
"texture": ExtResource("4_2ieo8")
}, {
"duration": 1.0,
2025-09-16 18:01:04 +02:00
"texture": ExtResource("5_ebec5")
}, {
"duration": 1.0,
2025-09-16 18:01:04 +02:00
"texture": ExtResource("6_yllr7")
}, {
"duration": 1.0,
2025-09-16 18:01:04 +02:00
"texture": ExtResource("7_kb6p2")
}],
2025-09-19 12:08:35 +02:00
"loop": false,
"name": &"walk",
"speed": 10.0
}]
2025-09-15 19:15:43 +02:00
[node name="Player" type="CharacterBody2D"]
z_index = 10
2025-09-16 19:12:40 +02:00
collision_layer = 5
safe_margin = 1.0
2025-09-15 19:15:43 +02:00
script = ExtResource("1_4flbx")
2025-09-18 17:47:49 +02:00
double_jump_animation = ExtResource("10_8t03j")
2025-09-15 19:15:43 +02:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 5.6)
scale = Vector2(0.7, 0.72)
2025-09-15 19:15:43 +02:00
shape = SubResource("CapsuleShape2D_onrkg")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
2025-09-16 18:01:04 +02:00
scale = Vector2(0.37, 0.37)
sprite_frames = SubResource("SpriteFrames_dw050")
2025-09-19 13:42:23 +02:00
animation = &"attack"
2025-09-16 00:28:49 +02:00
[node name="EarthAligner" parent="." instance=ExtResource("3_i3pqv")]
2025-09-16 14:59:40 +02:00
[node name="Sword" parent="." instance=ExtResource("4_yw30f")]
2025-09-19 12:08:35 +02:00
scale = Vector2(1, 1)
2025-09-17 15:59:14 +02:00
[node name="ActiveItemCooldown" type="Timer" parent="."]
one_shot = true
2025-09-19 03:33:03 +02:00
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("11_2ieo8")
2025-09-19 11:18:29 +02:00
volume_db = 15.0
2025-09-19 03:33:03 +02:00
[node name="AirJumpAudio" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("12_ebec5")
2025-09-19 14:42:16 +02:00
volume_db = 4.0
2025-09-19 03:33:03 +02:00
pitch_scale = 1.62
2025-09-19 14:42:16 +02:00
[node name="SwordSwingAudio" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("17_tqiix")
volume_db = -12.0
2025-09-19 12:24:23 +02:00
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_attack_end"]