-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnemy.tscn
41 lines (29 loc) · 959 Bytes
/
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
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Enemy.gd" type="Script" id=1]
[ext_resource path="res://Sprites/guardbot1.png" type="Texture" id=2]
[sub_resource type="RectangleShape2D" id=1]
custom_solver_bias = 0.0
extents = Vector2( 32, 32 )
[node name="Enemy" type="KinematicBody2D" index="0"]
position = Vector2( 128, 64 )
input_pickable = false
collision_layer = 1
collision_mask = 1
collision/safe_margin = 0.08
script = ExtResource( 1 )
__meta__ = {
"_edit_group_": true
}
[node name="Sprite" type="Sprite" parent="." index="0"]
position = Vector2( -32, -32 )
scale = Vector2( 2.28571, 2.13333 )
texture = ExtResource( 2 )
centered = false
region_enabled = true
region_rect = Rect2( 56, 1.25, 28, 30.25 )
_sections_unfolded = [ "Offset", "Region" ]
[node name="CollisionShape2D" type="CollisionShape2D" parent="." index="1" groups=[
"kill_player",
]]
shape = SubResource( 1 )
[node name="Node" type="Node" parent="." index="2"]