-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathEnemy.tscn
More file actions
28 lines (21 loc) · 743 Bytes
/
Enemy.tscn
File metadata and controls
28 lines (21 loc) · 743 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
[gd_scene load_steps=4 format=2]
[ext_resource path="res://icon.png" type="Texture" id=1]
[ext_resource path="res://Enemy.gd" type="Script" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 7, 7 )
[node name="Enemy" type="KinematicBody2D"]
collision_layer = 4
collision_mask = 7
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
modulate = Color( 1, 0.447059, 0.447059, 1 )
scale = Vector2( 0.25, 0.25 )
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="Line2D" type="Line2D" parent="."]
width = 2.0
[node name="LineOfSight" type="RayCast2D" parent="."]
enabled = true
cast_to = Vector2( 70, 0 )
collision_mask = 3