2025-04-04 17:56:56 +02:00
|
|
|
[gd_scene load_steps=6 format=3 uid="uid://dknt1oiyei5e5"]
|
2025-03-26 18:55:43 +01:00
|
|
|
|
|
|
|
|
[ext_resource type="Script" uid="uid://dg6f6na1nn2c6" path="res://enemies/enemy.gd" id="1_l7e03"]
|
2025-08-18 15:11:33 +02:00
|
|
|
[ext_resource type="Texture2D" uid="uid://d2thnsqp6lb4r" path="res://Assets/Characters/chibi1.png" id="2_cmo2f"]
|
2025-04-02 18:02:13 +02:00
|
|
|
[ext_resource type="PackedScene" uid="uid://daiqb0q373002" path="res://UI/health_bar_3d.tscn" id="3_cmo2f"]
|
2025-03-26 18:55:43 +01:00
|
|
|
|
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_7frlh"]
|
|
|
|
|
|
2025-04-04 17:56:56 +02:00
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_cmo2f"]
|
|
|
|
|
radius = 1.0
|
|
|
|
|
|
2025-03-26 18:55:43 +01:00
|
|
|
[node name="PathFollow3D" type="PathFollow3D"]
|
|
|
|
|
|
|
|
|
|
[node name="EnemyA" type="CharacterBody3D" parent="."]
|
2025-06-05 15:35:19 +02:00
|
|
|
collision_layer = 4
|
|
|
|
|
collision_mask = 4
|
2025-03-26 18:55:43 +01:00
|
|
|
script = ExtResource("1_l7e03")
|
2025-04-02 18:02:13 +02:00
|
|
|
speed = 1
|
2025-03-26 18:55:43 +01:00
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="EnemyA"]
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.289246, 0)
|
|
|
|
|
shape = SubResource("SphereShape3D_7frlh")
|
|
|
|
|
|
2025-04-02 18:02:13 +02:00
|
|
|
[node name="Sprite3D" type="Sprite3D" parent="EnemyA"]
|
2025-08-18 15:11:33 +02:00
|
|
|
transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0, -0.0436401, 0)
|
2025-04-02 18:02:13 +02:00
|
|
|
billboard = 2
|
2025-08-18 15:11:33 +02:00
|
|
|
texture = ExtResource("2_cmo2f")
|
2025-04-02 18:02:13 +02:00
|
|
|
|
|
|
|
|
[node name="HealthBar3D" parent="EnemyA" instance=ExtResource("3_cmo2f")]
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0)
|
2025-08-18 15:11:33 +02:00
|
|
|
visible = false
|
2025-04-04 17:56:56 +02:00
|
|
|
|
|
|
|
|
[node name="AttackRange" type="Area3D" parent="EnemyA"]
|
2025-06-05 15:35:19 +02:00
|
|
|
collision_layer = 8
|
|
|
|
|
collision_mask = 8
|
2025-04-04 17:56:56 +02:00
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="EnemyA/AttackRange"]
|
|
|
|
|
shape = SubResource("SphereShape3D_cmo2f")
|
|
|
|
|
debug_color = Color(0.994297, 0, 0.224345, 0.42)
|
|
|
|
|
|
|
|
|
|
[node name="AttackCooldown" type="Timer" parent="EnemyA"]
|
2025-06-18 12:19:43 +02:00
|
|
|
one_shot = true
|
2025-04-04 17:56:56 +02:00
|
|
|
|
|
|
|
|
[connection signal="body_entered" from="EnemyA/AttackRange" to="EnemyA" method="_on_attack_range_body_entered"]
|
2025-06-18 12:19:43 +02:00
|
|
|
[connection signal="body_exited" from="EnemyA/AttackRange" to="EnemyA" method="_on_attack_range_body_exited"]
|