-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathEnemy.tscn
More file actions
31 lines (21 loc) · 913 Bytes
/
Enemy.tscn
File metadata and controls
31 lines (21 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[gd_scene load_steps=6 format=2]
[ext_resource path="res://square_white_16.png" type="Texture" id=1]
[ext_resource path="res://Enemy.gd" type="Script" id=3]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 5, 5 )
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 7, 7 )
[sub_resource type="GDScript" id=3]
[node name="Enemy" type="KinematicBody2D"]
script = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
modulate = Color( 0.384314, 0.321569, 0.941176, 1 )
scale = Vector2( 0.8, 0.8 )
texture = ExtResource( 1 )
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource( 2 )
script = SubResource( 3 )
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]