53 lines
1.4 KiB
Plaintext
53 lines
1.4 KiB
Plaintext
[gd_scene load_steps=6 format=2]
|
|
|
|
[ext_resource path="res://Sprites/Enemies/pink_snowman.png" type="Texture" id=1]
|
|
[ext_resource path="res://Enemies/Snowman Enemy.gd" type="Script" id=2]
|
|
|
|
[sub_resource type="CapsuleShape2D" id=1]
|
|
radius = 1.5
|
|
height = 3.0
|
|
|
|
[sub_resource type="CircleShape2D" id=2]
|
|
radius = 56.0659
|
|
|
|
[sub_resource type="CapsuleShape2D" id=3]
|
|
radius = 6.0
|
|
height = 5.0
|
|
|
|
[node name="snowmen_enemy" type="KinematicBody2D"]
|
|
collision_layer = 2
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
texture = ExtResource( 1 )
|
|
|
|
[node name="Collision" type="CollisionShape2D" parent="."]
|
|
light_mask = 0
|
|
position = Vector2( 0.618717, 6.27557 )
|
|
rotation = 1.5708
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="detection" type="Area2D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
|
|
[node name="detection" type="CollisionShape2D" parent="detection"]
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
autostart = true
|
|
|
|
[node name="hitbox" type="Area2D" parent="." groups=[
|
|
"enemy_hitbox_1",
|
|
]]
|
|
visible = false
|
|
collision_layer = 4
|
|
collision_mask = 2
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox"]
|
|
shape = SubResource( 3 )
|
|
|
|
[connection signal="body_entered" from="detection" to="." method="_on_Area2D_body_entered"]
|
|
[connection signal="body_exited" from="detection" to="." method="_on_Area2D_body_exited"]
|
|
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|