The_Dark_Side_of_Earth/player/sword.tscn
2025-09-16 14:59:40 +02:00

66 lines
1.9 KiB
Text

[gd_scene load_steps=10 format=3 uid="uid://d3e3kuyeh6mr1"]
[ext_resource type="Texture2D" uid="uid://cyvxm1hf1rc12" path="res://player/player_walk.png" id="1_74bdg"]
[ext_resource type="Script" uid="uid://cpyc4qqgpyx38" path="res://player/sword.gd" id="1_hv1tj"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_e4ynd"]
[sub_resource type="AtlasTexture" id="AtlasTexture_r76a6"]
atlas = ExtResource("1_74bdg")
region = Rect2(0, 0, 240, 240)
[sub_resource type="AtlasTexture" id="AtlasTexture_dwvek"]
atlas = ExtResource("1_74bdg")
region = Rect2(240, 0, 240, 240)
[sub_resource type="AtlasTexture" id="AtlasTexture_rx5id"]
atlas = ExtResource("1_74bdg")
region = Rect2(480, 0, 240, 240)
[sub_resource type="AtlasTexture" id="AtlasTexture_v4ynp"]
atlas = ExtResource("1_74bdg")
region = Rect2(720, 0, 240, 240)
[sub_resource type="AtlasTexture" id="AtlasTexture_83fnj"]
atlas = ExtResource("1_74bdg")
region = Rect2(960, 0, 240, 240)
[sub_resource type="SpriteFrames" id="SpriteFrames_fahsa"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_r76a6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_dwvek")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rx5id")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_v4ynp")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_83fnj")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="Sword" type="Area2D"]
collision_mask = 2
script = ExtResource("1_hv1tj")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-13, 5)
rotation = 1.5708
scale = Vector2(-0.3, -0.9)
shape = SubResource("CapsuleShape2D_e4ynd")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
visible = false
position = Vector2(-13, 5)
rotation = 1.5708
scale = Vector2(-0.1, -0.15)
sprite_frames = SubResource("SpriteFrames_fahsa")