43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://assets/enemy/enemy.png" type="Texture" id=1]
|
|
[ext_resource path="res://src/Actors/Enemy/Enemy.gd" type="Script" id=2]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 8.68243, 5.8581 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=2]
|
|
extents = Vector2( 45, 14 )
|
|
|
|
[node name="Enemy" type="KinematicBody2D"]
|
|
collision_layer = 2
|
|
collision_mask = 9
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="enemy" type="Sprite" parent="."]
|
|
position = Vector2( 0, -48 )
|
|
texture = ExtResource( 1 )
|
|
|
|
[node name="VisibilityEnabler2D" type="VisibilityEnabler2D" parent="."]
|
|
position = Vector2( 3895.22, -31 )
|
|
scale = Vector2( 44.2501, 3.1 )
|
|
rect = Rect2( -89, -10, 2, 20 )
|
|
process_parent = true
|
|
physics_process_parent = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2( -0.445457, -31.2227 )
|
|
scale = Vector2( 5.68128, 5.29182 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="StompDetector" type="Area2D" parent="."]
|
|
modulate = Color( 0, 0.0392157, 1, 1 )
|
|
position = Vector2( 0, -62 )
|
|
collision_layer = 2
|
|
|
|
[node name="CollisionShape2D2" type="CollisionShape2D" parent="StompDetector"]
|
|
position = Vector2( 0.44545, -13 )
|
|
shape = SubResource( 2 )
|
|
|
|
[connection signal="body_entered" from="StompDetector" to="." method="_on_StompDetector_body_entered"]
|