mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-19 08:30:20 +02:00
ai adaptation
This commit is contained in:
@@ -12,14 +12,15 @@ radius = 6.0
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=2]
|
||||
radius = 11.0
|
||||
height = 11.0
|
||||
height = 1.0
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=3]
|
||||
radius = 11.0
|
||||
height = 11.0
|
||||
height = 1.0
|
||||
|
||||
[node name="Minion" type="KinematicBody2D"]
|
||||
script = ExtResource( 6 )
|
||||
ACCELERATION = 500
|
||||
|
||||
[node name="Kind" parent="." instance=ExtResource( 3 )]
|
||||
kind = 3
|
||||
@@ -37,7 +38,7 @@ collision_layer = 0
|
||||
collision_mask = 65
|
||||
|
||||
[node name="CollisionShape2D" parent="Hitbox" index="0"]
|
||||
position = Vector2( 0, -9 )
|
||||
position = Vector2( 0.110184, -4.81305 )
|
||||
shape = SubResource( 2 )
|
||||
|
||||
[node name="Hurtbox" parent="." groups=[
|
||||
@@ -47,7 +48,7 @@ collision_layer = 8
|
||||
collision_mask = 128
|
||||
|
||||
[node name="CollisionShape2D" parent="Hurtbox" index="0"]
|
||||
position = Vector2( 0, -9 )
|
||||
position = Vector2( 0.110184, -4.81305 )
|
||||
shape = SubResource( 3 )
|
||||
|
||||
[node name="DebugLabel" type="Label" parent="."]
|
||||
@@ -62,6 +63,7 @@ __meta__ = {
|
||||
|
||||
[node name="Stats" parent="." instance=ExtResource( 4 )]
|
||||
max_health = 2
|
||||
max_speed = 80.0
|
||||
[connection signal="area_entered" from="Hurtbox" to="." method="_on_Hurtbox_area_entered"]
|
||||
[connection signal="area_exited" from="Hurtbox" to="." method="_on_Hurtbox_area_exited"]
|
||||
[connection signal="no_health" from="Stats" to="." method="_on_Stats_no_health"]
|
||||
|
||||
Reference in New Issue
Block a user