summaryrefslogtreecommitdiff
path: root/enemy.tscn
diff options
context:
space:
mode:
authoralex <[email protected]>2026-09-21 12:19:15 +0200
committeralex <[email protected]>2026-09-21 12:19:15 +0200
commitf0c870bb9dcffd79d0ad4e361d9f9f2a2ff807f8 (patch)
tree02a46e0ed70171a679dbd69f435a2a8e1a3a0959 /enemy.tscn
parent0c5df1e068ff8865545b7e1b3629377089c8b965 (diff)
downloadgodot-testing-f0c870bb9dcffd79d0ad4e361d9f9f2a2ff807f8.tar.xz
godot-testing-f0c870bb9dcffd79d0ad4e361d9f9f2a2ff807f8.zip
vela veciHEADmain
Diffstat (limited to 'enemy.tscn')
-rw-r--r--enemy.tscn37
1 files changed, 35 insertions, 2 deletions
diff --git a/enemy.tscn b/enemy.tscn
index c4eb0d9..b86aafa 100644
--- a/enemy.tscn
+++ b/enemy.tscn
@@ -2,17 +2,50 @@
[ext_resource type="Script" uid="uid://cml2xy7flhfn6" path="res://scripts/Enemy.cs" id="1_4gyqm"]
[ext_resource type="Texture2D" uid="uid://mxuhmaj6nqfw" path="res://2D Pixel Dungeon Asset Pack/Character_animation/monsters_idle/vampire/v2/vampire_v2_1.png" id="2_qi2p4"]
+[ext_resource type="Texture2D" uid="uid://cn7wcj1bmd8a6" path="res://2D Pixel Dungeon Asset Pack/items and trap_animation/flasks/flasks_4_3.png" id="3_qi2p4"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ovjgd"]
size = Vector2(12, 14)
-[node name="Enemy" type="CharacterBody2D" unique_id=575877799]
+[sub_resource type="RectangleShape2D" id="RectangleShape2D_0m7y3"]
+size = Vector2(5, 15)
+
+[node name="Enemy" type="CharacterBody2D" unique_id=575877799 node_paths=PackedStringArray("WeaponPivot", "WeaponHitbox")]
collision_layer = 4
-collision_mask = 7
+collision_mask = 5
script = ExtResource("1_4gyqm")
+AttackRange = 20.0
+SwingAngle = 300.0
+WeaponPivot = NodePath("WeaponPivot")
+WeaponHitbox = NodePath("WeaponPivot/Area2D")
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=2046016517]
texture = ExtResource("2_qi2p4")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1799666271]
shape = SubResource("RectangleShape2D_ovjgd")
+
+[node name="NavigationAgent2D" type="NavigationAgent2D" parent="." unique_id=1735622426]
+path_desired_distance = 8.0
+path_max_distance = 20.0
+radius = 40.0
+neighbor_distance = 200.0
+debug_enabled = true
+debug_path_custom_color = Color(1, 0.039215688, 1, 1)
+
+[node name="WeaponPivot" type="Node2D" parent="." unique_id=221650450]
+
+[node name="Area2D" type="Area2D" parent="WeaponPivot" unique_id=302241973]
+collision_layer = 4
+collision_mask = 3
+
+[node name="Sprite2D" type="Sprite2D" parent="WeaponPivot/Area2D" unique_id=1153120816]
+position = Vector2(11, 4.7683716e-07)
+rotation = 1.5707964
+scale = Vector2(0.49999997, 1.375)
+texture = ExtResource("3_qi2p4")
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="WeaponPivot/Area2D" unique_id=1475055519]
+position = Vector2(8.499999, 0.5000012)
+rotation = 1.5707964
+shape = SubResource("RectangleShape2D_0m7y3")