Files
ludum_dare_46/src/Boss/Minion.tscn
2020-04-20 13:15:24 +02:00

74 lines
2.1 KiB
Plaintext

[gd_scene load_steps=10 format=2]
[ext_resource path="res://Overlap/HurtHit_Box/Hurtbox.tscn" type="PackedScene" id=1]
[ext_resource path="res://Overlap/HurtHit_Box/Hitbox.tscn" type="PackedScene" id=2]
[ext_resource path="res://Overlap/Kind.tscn" type="PackedScene" id=3]
[ext_resource path="res://Overlap/Stats/Stats.tscn" type="PackedScene" id=4]
[ext_resource path="res://testSprites/white_minion_dog.png" type="Texture" id=5]
[ext_resource path="res://Boss/Minion.gd" type="Script" id=6]
[sub_resource type="CircleShape2D" id=1]
radius = 6.0
[sub_resource type="CapsuleShape2D" id=2]
radius = 11.0
height = 1.0
[sub_resource type="CapsuleShape2D" id=3]
radius = 11.0
height = 1.0
[node name="Minion" type="KinematicBody2D"]
script = ExtResource( 6 )
ACCELERATION = 500
[node name="Kind" parent="." instance=ExtResource( 3 )]
kind = 3
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 0, -10.2123 )
texture = ExtResource( 5 )
hframes = 60
[node name="Body" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="Hitbox" parent="." instance=ExtResource( 2 )]
collision_layer = 0
collision_mask = 65
[node name="CollisionShape2D" parent="Hitbox" index="0"]
position = Vector2( 0.110184, -4.81305 )
shape = SubResource( 2 )
[node name="Hurtbox" parent="." groups=[
"HittableByPlayer",
] instance=ExtResource( 1 )]
collision_layer = 8
collision_mask = 128
[node name="CollisionShape2D" parent="Hurtbox" index="0"]
position = Vector2( 0.110184, -4.81305 )
shape = SubResource( 3 )
[node name="DebugLabel" type="Label" parent="."]
margin_left = -50.8637
margin_top = -41.3944
margin_right = 51.1363
margin_bottom = -27.3944
text = "the white dog"
__meta__ = {
"_edit_use_anchors_": false
}
[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"]
[editable path="Hitbox"]
[editable path="Hurtbox"]