46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
[gd_scene load_steps=4 format=3]
|
|
|
|
[ext_resource type="Script" path="res://enemies/walker/walker.gd" id="1_walker"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="BodyShape"]
|
|
size = Vector2(42, 78)
|
|
|
|
[sub_resource type="RectangleShape2D" id="AttackShape"]
|
|
size = Vector2(50, 60)
|
|
|
|
[node name="Walker" type="CharacterBody2D"]
|
|
collision_layer = 4
|
|
collision_mask = 1
|
|
script = ExtResource("1_walker")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, 0)
|
|
shape = SubResource("BodyShape")
|
|
|
|
[node name="Hurtbox" type="Area2D" parent="."]
|
|
collision_layer = 16
|
|
collision_mask = 0
|
|
monitoring = false
|
|
monitorable = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hurtbox"]
|
|
shape = SubResource("BodyShape")
|
|
|
|
[node name="AttackHitbox" type="Area2D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 8
|
|
monitoring = true
|
|
monitorable = false
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="AttackHitbox"]
|
|
shape = SubResource("AttackShape")
|
|
|
|
[node name="FloorProbe" type="RayCast2D" parent="."]
|
|
position = Vector2(24, 34)
|
|
target_position = Vector2(0, 34)
|
|
collision_mask = 1
|
|
enabled = true
|
|
|
|
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
|
|
rect = Rect2(-32, -48, 64, 96)
|