added enemy attack
This commit is contained in:
parent
96bec5a6b7
commit
562a33bd8e
54 changed files with 1950 additions and 48 deletions
|
|
@ -2,16 +2,20 @@
|
|||
|
||||
[ext_resource type="Script" uid="uid://daowp76saltic" path="res://src/creatures/birb/Birb.cs" id="1_lyo8d"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://cyf7ij04grglc" path="res://src/creatures/birb/birb.aseprite" id="2_ba6cv"]
|
||||
[ext_resource type="Script" uid="uid://b4k42r866lkut" path="res://src/combat/Hitbox.cs" id="3_bu42x"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8bh2b"]
|
||||
size = Vector2(22, 4)
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_feb5d"]
|
||||
radius = 5.0
|
||||
height = 14.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_lyo8d"]
|
||||
radius = 52.0
|
||||
radius = 60.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ba6cv"]
|
||||
radius = 160.0
|
||||
radius = 180.00278
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lyo8d"]
|
||||
bg_color = Color(0.15, 0.15, 0.15, 0.34509805)
|
||||
|
|
@ -46,6 +50,18 @@ tracks/1/keys = {
|
|||
"update": 1,
|
||||
"values": [0]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Body/StabHitbox/CollisionShape2D:disabled")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ba6cv"]
|
||||
resource_name = "idle"
|
||||
|
|
@ -146,6 +162,18 @@ tracks/2/keys = {
|
|||
"method": &"OnAttackFinished"
|
||||
}]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/path = NodePath("Body/StabHitbox/CollisionShape2D:disabled")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5, 0.7),
|
||||
"transitions": PackedFloat32Array(1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [true, false, true]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_1i6dk"]
|
||||
_data = {
|
||||
|
|
@ -166,6 +194,18 @@ sprite_frames = ExtResource("2_ba6cv")
|
|||
animation = &"idle"
|
||||
offset = Vector2(9, -4)
|
||||
|
||||
[node name="StabHitbox" type="Area2D" parent="Body" unique_id=1373491990]
|
||||
unique_name_in_owner = true
|
||||
collision_layer = 16
|
||||
collision_mask = 2
|
||||
script = ExtResource("3_bu42x")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Body/StabHitbox" unique_id=1331922714]
|
||||
position = Vector2(11, 2)
|
||||
shape = SubResource("RectangleShape2D_8bh2b")
|
||||
disabled = true
|
||||
debug_color = Color(0.8758822, 0.3187781, 0.34832907, 0.41960785)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1744954023]
|
||||
position = Vector2(0, 1)
|
||||
shape = SubResource("CapsuleShape2D_feb5d")
|
||||
|
|
@ -185,6 +225,7 @@ collision_mask = 2
|
|||
monitorable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Chase" unique_id=567870323]
|
||||
position = Vector2(-1, 0)
|
||||
shape = SubResource("CircleShape2D_ba6cv")
|
||||
debug_color = Color(0, 0.6, 0.69803923, 0)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue