76 lines
1.9 KiB
Plaintext
76 lines
1.9 KiB
Plaintext
[gd_scene load_steps=4 format=2]
|
|
|
|
[ext_resource path="res://Sprites/Items/Sword.png" type="Texture" id=1]
|
|
|
|
[sub_resource type="RectangleShape2D" id=6]
|
|
extents = Vector2( 1.5, 4.2 )
|
|
|
|
[sub_resource type="Animation" id=5]
|
|
resource_name = "swing"
|
|
length = 0.2
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("Animation/Sword:visible")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 0.01, 0.2 ),
|
|
"transitions": PoolRealArray( 1, 1, 1 ),
|
|
"update": 1,
|
|
"values": [ false, true, false ]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/path = NodePath("Animation:rotation_degrees")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/keys = {
|
|
"times": PoolRealArray( 0.01, 0.19 ),
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
"update": 0,
|
|
"values": [ -45.0, 45.0 ]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/path = NodePath("Animation:monitorable")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/keys = {
|
|
"times": PoolRealArray( 0.02, 0.2 ),
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
"update": 1,
|
|
"values": [ true, false ]
|
|
}
|
|
|
|
[node name="Sword" type="Node2D"]
|
|
light_mask = 0
|
|
|
|
[node name="Animation" type="Area2D" parent="." groups=["player_weapon_1"]]
|
|
light_mask = 0
|
|
rotation = 0.785398
|
|
collision_layer = 0
|
|
collision_mask = 4
|
|
input_pickable = false
|
|
monitoring = false
|
|
monitorable = false
|
|
|
|
[node name="Sword" type="Sprite" parent="Animation"]
|
|
visible = false
|
|
light_mask = 8
|
|
rotation = 0.785398
|
|
scale = Vector2( 0.5, 0.5 )
|
|
texture = ExtResource( 1 )
|
|
offset = Vector2( -16, -16 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Animation"]
|
|
visible = false
|
|
light_mask = 0
|
|
position = Vector2( 0, -13 )
|
|
shape = SubResource( 6 )
|
|
|
|
[node name="Sword Animation" type="AnimationPlayer" parent="."]
|
|
anims/swing = SubResource( 5 )
|