2025-09-14 22:54:54 +02:00
|
|
|
[gd_scene load_steps=7 format=3 uid="uid://dyl4wiga2goi"]
|
2025-09-14 01:31:18 +02:00
|
|
|
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://dg8bjkjuddnhg" path="res://Enemies/enemy.tscn" id="1_ohyx6"]
|
|
|
|
|
[ext_resource type="Script" uid="uid://dw53e0rr7qc02" path="res://Enemies/boss.gd" id="2_vnmiq"]
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://d38rvmky1mr5f" path="res://Assets/Characters/72 Character Free/Char 5/Character 5.png" id="3_831fr"]
|
2025-09-14 22:58:52 +02:00
|
|
|
[ext_resource type="PackedScene" uid="uid://c6i3437fhurkh" path="res://Projectiles/Scenes/projectile-James.tscn" id="3_vnmiq"]
|
2025-09-14 01:31:18 +02:00
|
|
|
|
|
|
|
|
[sub_resource type="ViewportTexture" id="ViewportTexture_mw235"]
|
|
|
|
|
viewport_path = NodePath("Enemy/HealthBar3D/SubViewport")
|
|
|
|
|
|
2025-09-14 15:23:00 +02:00
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_831fr"]
|
|
|
|
|
radius = 2.0
|
2025-09-14 01:31:18 +02:00
|
|
|
|
|
|
|
|
[node name="PathFollow3D" instance=ExtResource("1_ohyx6")]
|
|
|
|
|
|
|
|
|
|
[node name="Enemy" parent="." index="0"]
|
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.32, 0)
|
|
|
|
|
script = ExtResource("2_vnmiq")
|
2025-09-14 22:54:54 +02:00
|
|
|
disableTime = 3.0
|
2025-10-15 16:37:48 +02:00
|
|
|
projectileScene = ExtResource("3_vnmiq")
|
2025-09-14 01:31:18 +02:00
|
|
|
speed = 0.7
|
|
|
|
|
base_attack_damage = 10
|
2025-09-14 15:23:00 +02:00
|
|
|
max_life = 300
|
2025-09-14 01:31:18 +02:00
|
|
|
money = 120
|
|
|
|
|
|
|
|
|
|
[node name="Sprite3D" parent="Enemy" index="1"]
|
|
|
|
|
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0)
|
|
|
|
|
texture = ExtResource("3_831fr")
|
|
|
|
|
|
|
|
|
|
[node name="HealthBar3D" parent="Enemy" index="2"]
|
|
|
|
|
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0.34, 0)
|
|
|
|
|
texture = SubResource("ViewportTexture_mw235")
|
|
|
|
|
|
|
|
|
|
[node name="TowerAttackRange" type="Area3D" parent="Enemy" index="4"]
|
2025-09-14 12:52:01 +02:00
|
|
|
collision_layer = 0
|
2025-09-14 01:31:18 +02:00
|
|
|
collision_mask = 4
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Enemy/TowerAttackRange" index="0"]
|
2025-09-14 15:23:00 +02:00
|
|
|
shape = SubResource("SphereShape3D_831fr")
|
2025-09-14 01:31:18 +02:00
|
|
|
debug_color = Color(0.419608, 0, 0.584314, 0.419608)
|
2025-09-14 12:52:01 +02:00
|
|
|
|
|
|
|
|
[connection signal="body_entered" from="Enemy/TowerAttackRange" to="Enemy" method="onAttackRangeBodyEntered"]
|
|
|
|
|
[connection signal="body_exited" from="Enemy/TowerAttackRange" to="Enemy" method="onAttackRangeBodyExited"]
|