20 lines
1.0 KiB
Plaintext
20 lines
1.0 KiB
Plaintext
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://Scenes/Objects/Enemy.gd" type="Script" id=1]
|
|
[ext_resource path="res://Sprites/Enemy.png" type="Texture" id=2]
|
|
|
|
[node name="Enemy" type="Area2D"]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
texture = ExtResource( 2 )
|
|
|
|
[node name="Collision" type="CollisionPolygon2D" parent="."]
|
|
polygon = PoolVector2Array( -3, -7, -1, -7, -1, -5, 0, -5, 0, -6, 1, -6, 1, -7, 3, -7, 3, -6, 4, -6, 4, -5, 5, -5, 5, 5, 4, 5, 4, 6, 3, 6, 3, 7, 1, 7, 1, 6, 0, 6, 0, 5, -1, 5, -1, 7, -3, 7, -3, 6, -4, 6, -4, 5, -2, 5, -2, 3, -3, 3, -3, 2, -5, 2, -5, 1, -4, 1, -4, -1, -5, -1, -5, -2, -3, -2, -3, -3, -2, -3, -2, -5, -4, -5, -4, -6, -3, -6 )
|
|
|
|
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
|
|
position = Vector2( 0, 4.17233e-07 )
|
|
scale = Vector2( 0.6, 0.8 )
|
|
[connection signal="body_entered" from="." to="." method="_on_Enemy_body_entered"]
|
|
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]
|