diff options
| author | Jan Tuomi <jan.tuomi@valuemotive.com> | 2020-07-29 23:36:16 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@valuemotive.com> | 2020-07-29 23:36:16 +0300 |
| commit | 833127814e1b28491f385acb2c617da5838058c0 (patch) | |
| tree | ecc0353749e2d937725775fbcaa4d51440849b98 /scenes/DwarfNPC.tscn | |
| parent | 036ff4443ece8287755439ace2457ecacf8db1ac (diff) | |
Setup dwarf NPC to look at player
Diffstat (limited to 'scenes/DwarfNPC.tscn')
| -rw-r--r-- | scenes/DwarfNPC.tscn | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scenes/DwarfNPC.tscn b/scenes/DwarfNPC.tscn new file mode 100644 index 0000000..a2d206d --- /dev/null +++ b/scenes/DwarfNPC.tscn @@ -0,0 +1,19 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://textures/dwarf_idle_01.tres" type="Texture" id=1] +[ext_resource path="res://scripts/DwarfNPC.gd" type="Script" id=2] + +[sub_resource type="RectangleShape2D" id=1] +extents = Vector2( 4, 2 ) + +[node name="DwarfNPC" type="KinematicBody2D"] +script = ExtResource( 2 ) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +position = Vector2( -0.029541, -1 ) +shape = SubResource( 1 ) + +[node name="Sprite" type="Sprite" parent="."] +position = Vector2( 0, -1 ) +texture = ExtResource( 1 ) +offset = Vector2( 3, -5 ) |
