26 lines
782 B
Text
26 lines
782 B
Text
|
[gd_scene load_steps=5 format=2]
|
||
|
|
||
|
[ext_resource path="res://images/mechant.png" type="Texture" id=1]
|
||
|
[ext_resource path="res://scripts/Ennemi.gd" type="Script" id=2]
|
||
|
|
||
|
[sub_resource type="RectangleShape2D" id=1]
|
||
|
extents = Vector2( 6.5, 6.5 )
|
||
|
|
||
|
[sub_resource type="RectangleShape2D" id=2]
|
||
|
extents = Vector2( 7, 7 )
|
||
|
|
||
|
[node name="Ennemi" type="KinematicBody2D"]
|
||
|
script = ExtResource( 2 )
|
||
|
|
||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||
|
shape = SubResource( 1 )
|
||
|
|
||
|
[node name="Sprite" type="Sprite" parent="."]
|
||
|
texture = ExtResource( 1 )
|
||
|
|
||
|
[node name="Area2D" type="Area2D" parent="."]
|
||
|
|
||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||
|
shape = SubResource( 2 )
|
||
|
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]
|