173 lines
5.8 KiB
Text
173 lines
5.8 KiB
Text
[gd_scene format=3 uid="uid://bbu38s3w5u3gk"]
|
|
|
|
[ext_resource type="Script" uid="uid://c1anp8np0aw0" path="res://scripts/scythe_attack.gd" id="1_vnsf0"]
|
|
[ext_resource type="Texture2D" uid="uid://cabc77u0tblxv" path="res://assets/masks/purple_attack-2.png" id="2_yhwo8"]
|
|
[ext_resource type="Texture2D" uid="uid://c4osojc1tqf77" path="res://assets/masks/purple_attack-1.png" id="3_7i1k2"]
|
|
[ext_resource type="Script" uid="uid://ejd25ul4j5pp" path="res://scripts/hitbox.gd" id="4_7i1k2"]
|
|
|
|
[sub_resource type="Animation" id="Animation_vnsf0"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [0]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".:position")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(-3, -3)]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath(".:rotation")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [0.0]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("Hitbox:monitoring")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_ev5qi"]
|
|
resource_name = "attack"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0.033333335, 0.3),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [0, 1]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".:position")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.06, 0.07, 0.1, 0.12, 0.13, 0.14, 0.15, 0.16, 0.19, 0.20000002, 0.21000001, 0.22, 0.23000002, 0.24000001, 0.25, 0.26, 0.28000003, 0.29000002, 0.3, 0.31, 0.32, 0.33000004, 0.34000003, 0.35000002, 0.37, 0.43),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(-3, -3), Vector2(-3, -3), Vector2(-3, 5), Vector2(-3, 5), Vector2(7, 7), Vector2(-3, 5), Vector2(-4, -6), Vector2(-3, -3), Vector2(-3, 5), Vector2(-4, -6), Vector2(7, 7), Vector2(-3, 5), Vector2(-3, 5), Vector2(-3, -3), Vector2(-3, 5), Vector2(5, -2), Vector2(5, -2), Vector2(-4, -6), Vector2(7, 7), Vector2(-3, 5), Vector2(7, 7), Vector2(-3, 5), Vector2(-3, 5), Vector2(5, -2), Vector2(5, -2), Vector2(-4, -6), Vector2(5, -2)]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath(".:rotation")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0, 0.06, 0.07, 0.1, 0.12, 0.13, 0.14, 0.15, 0.16, 0.19, 0.20000002, 0.21000001, 0.22, 0.23000002, 0.24000001, 0.25, 0.26, 0.28000003, 0.29000002, 0.3, 0.31, 0.32, 0.33000004, 0.34000003, 0.35000002, 0.37, 0.43),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
|
|
}
|
|
tracks/3/type = "method"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("../..")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0.53333336),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"queue_free"
|
|
}]
|
|
}
|
|
tracks/4/type = "value"
|
|
tracks/4/imported = false
|
|
tracks/4/enabled = true
|
|
tracks/4/path = NodePath("Hitbox:monitoring")
|
|
tracks/4/interp = 1
|
|
tracks/4/loop_wrap = true
|
|
tracks/4/keys = {
|
|
"times": PackedFloat32Array(0, 0.36666667),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [false, true]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_0qdgb"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_vnsf0"),
|
|
&"attack": SubResource("Animation_ev5qi")
|
|
}
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_2rf1b"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_yhwo8")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_7i1k2")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vnsf0"]
|
|
size = Vector2(51.75, 16.25)
|
|
|
|
[node name="PurpleAttack" type="Node2D" unique_id=622535335]
|
|
script = ExtResource("1_vnsf0")
|
|
|
|
[node name="Node2D" type="Node2D" parent="." unique_id=1207589526]
|
|
position = Vector2(68, -52)
|
|
scale = Vector2(2, 2)
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="Node2D" unique_id=1330172360]
|
|
root_node = NodePath("../AnimatedSprite2D")
|
|
libraries/ = SubResource("AnimationLibrary_0qdgb")
|
|
autoplay = &"attack"
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Node2D" unique_id=291763539]
|
|
position = Vector2(-3, -3)
|
|
sprite_frames = SubResource("SpriteFrames_2rf1b")
|
|
flip_h = true
|
|
|
|
[node name="Hitbox" type="Area2D" parent="Node2D/AnimatedSprite2D" unique_id=88442753]
|
|
position = Vector2(3, 3)
|
|
monitoring = false
|
|
script = ExtResource("4_7i1k2")
|
|
dmg = 3
|
|
metadata/_custom_type_script = "uid://ejd25ul4j5pp"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Node2D/AnimatedSprite2D/Hitbox" unique_id=1724936885]
|
|
position = Vector2(-2.625, 27.625)
|
|
shape = SubResource("RectangleShape2D_vnsf0")
|