The_Dark_Side_of_Earth/player/player.tscn

65 lines
2.3 KiB
Text
Raw Normal View History

2025-09-16 14:59:40 +02:00
[gd_scene load_steps=12 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-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-16 14:59:40 +02:00
[ext_resource type="PackedScene" uid="uid://d3e3kuyeh6mr1" path="res://player/sword.tscn" id="4_yw30f"]
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"]
[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-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-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")
}],
"loop": true,
"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")
[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")
animation = &"walk"
2025-09-16 18:01:04 +02:00
frame_progress = 0.433977
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-17 18:23:42 +02:00
position = Vector2(0, -2)
2025-09-17 15:59:14 +02:00
[node name="ActiveItemCooldown" type="Timer" parent="."]
one_shot = true