/
enemy.tscn
44 lines (35 loc) · 1.23 KB
/
enemy.tscn
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
32
33
34
35
36
37
38
39
40
41
42
43
44
[gd_scene load_steps=5 format=2]
[ext_resource path="res://sprites/enemy1.png" type="Texture" id=1]
[ext_resource path="res://enemy.gd" type="Script" id=2]
[sub_resource type="CircleShape2D" id=1]
radius = 20.1627
[sub_resource type="Animation" id=2]
resource_name = "rotation"
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:rotation_degrees")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 0.0, 360.0 ]
}
[node name="enemy" type="KinematicBody2D"]
collision_layer = 5
collision_mask = 4
script = ExtResource( 2 )
[node name="orb" type="Node2D" parent="."]
[node name="player_orb" type="Sprite" parent="orb"]
scale = Vector2( 0.65, 0.65 )
texture = ExtResource( 1 )
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "rotation"
anims/rotation = SubResource( 2 )
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]