summaryrefslogtreecommitdiffstats
path: root/PatrolEnemy.tscn
blob: 57ed3fa192e0e35458d4a2883ee460c9edb91225 (plain)
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
[gd_scene load_steps=6 format=2]

[ext_resource path="res://PatrolEnemy.gd" type="Script" id=1]
[ext_resource path="res://Assets/kenney_pixelplatformer/Characters/character_0016.png" type="Texture" id=2]
[ext_resource path="res://Assets/kenney_pixelplatformer/Characters/character_0015.png" type="Texture" id=3]

[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 3 ), ExtResource( 2 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]

[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 11, 11 )

[node name="PatrolEnemy" type="KinematicBody2D"]
script = ExtResource( 1 )

[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
scale = Vector2( 2, 2 )
frames = SubResource( 1 )
playing = true

[node name="RayCastWall" type="RayCast2D" parent="."]
position = Vector2( 0, 23 )
enabled = true
cast_to = Vector2( -17, 0 )

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -1, 12 )
shape = SubResource( 2 )