-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalien.tscn
More file actions
25 lines (18 loc) · 906 Bytes
/
alien.tscn
File metadata and controls
25 lines (18 loc) · 906 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
[gd_scene load_steps=4 format=3 uid="uid://dcb7sq80d7j6v"]
[ext_resource type="Texture2D" uid="uid://b68a4fy76sp5o" path="res://assets/alien-enemy.png" id="1_abcne"]
[ext_resource type="Script" path="res://alien.gd" id="1_hwpd8"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_8dt1n"]
radius = 31.0
height = 64.0
[node name="Alien" type="RigidBody2D" groups=["enemies"]]
collision_layer = 3
mass = 0.01
gravity_scale = 0.0
script = ExtResource("1_hwpd8")
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(0.5, 0.5)
texture = ExtResource("1_abcne")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CapsuleShape2D_8dt1n")
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]