160 lines
4.8 KiB
Plaintext
160 lines
4.8 KiB
Plaintext
[gd_scene load_steps=13 format=3 uid="uid://cajlwb67xenfy"]
|
|
|
|
[ext_resource type="Script" path="res://Items/Weapons/Sword.cs" id="1_mlo73"]
|
|
[ext_resource type="Texture2D" uid="uid://dt6u8p4h6g7le" path="res://Sprites/knife.png" id="2_dmsp2"]
|
|
[ext_resource type="PackedScene" uid="uid://du5vhccg75nrq" path="res://BoundingBoxes/Hitbox.tscn" id="3_up3ob"]
|
|
[ext_resource type="PackedScene" uid="uid://cojxmcin13ihm" path="res://Utils/Trail.tscn" id="4_pt6lq"]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_yln58"]
|
|
radius = 8.0
|
|
height = 32.0
|
|
|
|
[sub_resource type="Curve" id="Curve_4cxtp"]
|
|
_data = [Vector2(0.00687286, 1), 0.0, 0.0, 0, 0, Vector2(0.879725, 0.190909), -2.93145, -2.93145, 0, 0, Vector2(1, 0.0454545), 0.0483926, 0.0, 0, 0]
|
|
point_count = 3
|
|
|
|
[sub_resource type="Gradient" id="Gradient_2ablm"]
|
|
offsets = PackedFloat32Array(0.835938, 0.992188)
|
|
colors = PackedColorArray(1, 1, 1, 0.498039, 1, 1, 1, 0)
|
|
|
|
[sub_resource type="Animation" id="Animation_b7327"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Anchor:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [-0.785398]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Anchor/Sprite2D:rotation")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [-1.19209e-07]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("Anchor/Sprite2D:position")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(8, 1)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_mv7y2"]
|
|
resource_name = "idle"
|
|
|
|
[sub_resource type="Animation" id="Animation_orc8t"]
|
|
resource_name = "use"
|
|
length = 0.5
|
|
loop_mode = 1
|
|
step = 0.05
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Anchor:rotation")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.3, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [-0.785398, 1.5708, 1.5708, -0.785398]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Anchor/Sprite2D:rotation")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.3, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [-1.19209e-07, 0.785398, 0.785398, -1.19209e-07]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("Anchor/Sprite2D:position")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.3, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(8, 1), Vector2(12, -1), Vector2(12, -1), Vector2(8, 1)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_tao4k"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_b7327"),
|
|
"idle": SubResource("Animation_mv7y2"),
|
|
"use": SubResource("Animation_orc8t")
|
|
}
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_1lid1"]
|
|
|
|
[node name="Sword" type="Node2D" node_paths=PackedStringArray("Hitbox", "AnimationPlayer")]
|
|
texture_filter = 3
|
|
y_sort_enabled = true
|
|
script = ExtResource("1_mlo73")
|
|
Hitbox = NodePath("Anchor/Sprite2D/Hitbox")
|
|
AnimationPlayer = NodePath("AnimationPlayer")
|
|
AttackTime = 0.1
|
|
Damage = 20.0
|
|
UseTime = 0.5
|
|
Description = "A basic sword."
|
|
|
|
[node name="Anchor" type="Node2D" parent="."]
|
|
rotation = -0.785398
|
|
y_sort_enabled = true
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Anchor"]
|
|
position = Vector2(8, 1)
|
|
y_sort_enabled = true
|
|
texture = ExtResource("2_dmsp2")
|
|
|
|
[node name="Hitbox" parent="Anchor/Sprite2D" instance=ExtResource("3_up3ob")]
|
|
IsDisabled = true
|
|
|
|
[node name="CollisionShape2D" parent="Anchor/Sprite2D/Hitbox" index="0"]
|
|
position = Vector2(0, -4)
|
|
shape = SubResource("CapsuleShape2D_yln58")
|
|
disabled = true
|
|
|
|
[node name="Trail" parent="Anchor" node_paths=PackedStringArray("Tracking") instance=ExtResource("4_pt6lq")]
|
|
position = Vector2(2.40734, -0.55655)
|
|
rotation = 0.945464
|
|
scale = Vector2(1, 1)
|
|
width_curve = SubResource("Curve_4cxtp")
|
|
gradient = SubResource("Gradient_2ablm")
|
|
Tracking = NodePath("../Sprite2D")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_tao4k")
|
|
}
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="."]
|
|
tree_root = SubResource("AnimationNodeAnimation_1lid1")
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
active = true
|
|
|
|
[editable path="Anchor/Sprite2D/Hitbox"]
|