1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
[gd_scene load_steps=8 format=3 uid="uid://c3nbowvq6g4ah"]
[ext_resource type="Script" uid="uid://ckd00ra2lp1xo" path="res://Scripts/Weapons/Melee.gd" id="1_6amt5"]
[ext_resource type="Texture2D" uid="uid://cnxhxrmheing2" path="res://Assets/Visuals/machette.svg" id="1_x1mjv"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_x1mjv"]
size = Vector2(12.0543, 48.3603)
[sub_resource type="Animation" id="Animation_6amt5"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Area2D:monitoring")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="Animation" id="Animation_x1mjv"]
resource_name = "swing"
length = 0.3
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.133333, 0.166667),
"transitions": PackedFloat32Array(0.189465, 0.189465, 5.27803),
"update": 0,
"values": [0.0, 1.95477, 0.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Area2D:monitoring")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.3),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [true, false]
}
[sub_resource type="Animation" id="Animation_4lcuo"]
resource_name = "swing_flip"
length = 0.3
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.133333, 0.166667),
"transitions": PackedFloat32Array(0.189465, 0.189465, 5.27803),
"update": 0,
"values": [0.0, -1.95477, 0.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Area2D:monitoring")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.173523),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [true, false]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_4lcuo"]
_data = {
&"RESET": SubResource("Animation_6amt5"),
&"swing": SubResource("Animation_x1mjv"),
&"swing_flip": SubResource("Animation_4lcuo")
}
[node name="weapon_machette" type="Node2D" node_paths=PackedStringArray("animator", "area")]
scale = Vector2(-1, 1)
script = ExtResource("1_6amt5")
animator = NodePath("AnimationPlayer")
atk = 2
area = NodePath("Area2D")
mask = 3
[node name="Machette" type="Sprite2D" parent="."]
position = Vector2(7.9399, -24.7176)
scale = Vector2(0.0588337, 0.0588337)
texture = ExtResource("1_x1mjv")
flip_h = true
[node name="Area2D" type="Area2D" parent="."]
collision_mask = 32769
monitoring = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(11, -31)
rotation = 0.327302
shape = SubResource("RectangleShape2D_x1mjv")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_4lcuo")
}
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
|