This commit is contained in:
Marek Lenczewski
2026-04-01 22:53:28 +02:00
parent b236cd52cb
commit e76c66eda6
70 changed files with 1016 additions and 732 deletions

View File

@@ -6,6 +6,16 @@
[ext_resource type="PackedScene" path="res://scenes/enemy/boss.tscn" id="boss"]
[ext_resource type="Script" path="res://scripts/dungeon/dungeon_manager.gd" id="dungeon_manager"]
[ext_resource type="PackedScene" path="res://scenes/portal/gate.tscn" id="gate"]
[ext_resource type="Script" path="res://scripts/systems/health_system.gd" id="health_system"]
[ext_resource type="Script" path="res://scripts/systems/shield_system.gd" id="shield_system"]
[ext_resource type="Script" path="res://scripts/systems/damage_system.gd" id="damage_system"]
[ext_resource type="Script" path="res://scripts/systems/ability_system.gd" id="ability_system"]
[ext_resource type="Script" path="res://scripts/systems/cooldown_system.gd" id="cooldown_system"]
[ext_resource type="Script" path="res://scripts/systems/aggro_system.gd" id="aggro_system"]
[ext_resource type="Script" path="res://scripts/systems/enemy_ai_system.gd" id="enemy_ai_system"]
[ext_resource type="Script" path="res://scripts/systems/respawn_system.gd" id="respawn_system"]
[ext_resource type="Script" path="res://scripts/systems/spawn_system.gd" id="spawn_system"]
[ext_resource type="Script" path="res://scripts/systems/buff_system.gd" id="buff_system"]
[sub_resource type="NavigationMesh" id="NavigationMesh_1"]
vertices = PackedVector3Array(-7.0, 0.5, -7.0, -7.0, 0.5, 87.0, 7.0, 0.5, 87.0, 7.0, 0.5, -7.0)
@@ -39,6 +49,38 @@ size = Vector3(0.5, 3, 90)
[node name="Dungeon" type="Node3D"]
[node name="Systems" type="Node" parent="."]
[node name="HealthSystem" type="Node" parent="Systems"]
script = ExtResource("health_system")
[node name="ShieldSystem" type="Node" parent="Systems"]
script = ExtResource("shield_system")
[node name="DamageSystem" type="Node" parent="Systems"]
script = ExtResource("damage_system")
[node name="AbilitySystem" type="Node" parent="Systems"]
script = ExtResource("ability_system")
[node name="CooldownSystem" type="Node" parent="Systems"]
script = ExtResource("cooldown_system")
[node name="AggroSystem" type="Node" parent="Systems"]
script = ExtResource("aggro_system")
[node name="EnemyAISystem" type="Node" parent="Systems"]
script = ExtResource("enemy_ai_system")
[node name="RespawnSystem" type="Node" parent="Systems"]
script = ExtResource("respawn_system")
[node name="SpawnSystem" type="Node" parent="Systems"]
script = ExtResource("spawn_system")
[node name="BuffSystem" type="Node" parent="Systems"]
script = ExtResource("buff_system")
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="."]
navigation_mesh = SubResource("NavigationMesh_1")

View File

@@ -1,12 +1,8 @@
[gd_scene load_steps=6 format=3]
[ext_resource type="Script" path="res://scripts/enemy/boss.gd" id="1"]
[ext_resource type="Script" path="res://scripts/components/health.gd" id="2"]
[ext_resource type="Script" path="res://scripts/components/shield.gd" id="3"]
[ext_resource type="Script" path="res://scripts/components/healthbar.gd" id="4"]
[ext_resource type="Script" path="res://scripts/enemy/enemy_movement.gd" id="5"]
[ext_resource type="Script" path="res://scripts/enemy/enemy_combat.gd" id="6"]
[ext_resource type="Script" path="res://scripts/enemy/enemy_aggro.gd" id="7"]
[ext_resource type="Resource" path="res://resources/stats/boss_stats.tres" id="8"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_1"]
@@ -23,9 +19,6 @@ bg_color = Color(0.3, 0.1, 0.1, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_health_fill"]
bg_color = Color(0.2, 0.8, 0.2, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_health_fill_aggro"]
bg_color = Color(0.2, 0.4, 0.9, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_shield_bg"]
bg_color = Color(0.1, 0.1, 0.3, 1)
@@ -45,6 +38,7 @@ radius = 8.0
[node name="Boss" type="CharacterBody3D"]
script = ExtResource("1")
stats = ExtResource("8")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("CapsuleShape3D_1")
@@ -53,14 +47,6 @@ shape = SubResource("CapsuleShape3D_1")
transform = Transform3D(1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, 0, 0, 0)
mesh = SubResource("SphereMesh_1")
[node name="Health" type="Node" parent="."]
script = ExtResource("2")
stats = ExtResource("8")
[node name="Shield" type="Node" parent="."]
script = ExtResource("3")
stats = ExtResource("8")
[node name="HitArea" type="Area3D" parent="."]
collision_layer = 4
collision_mask = 0
@@ -73,12 +59,6 @@ shape = SubResource("CapsuleShape3D_2")
[node name="EnemyMovement" type="Node" parent="."]
script = ExtResource("5")
[node name="EnemyCombat" type="Node" parent="."]
script = ExtResource("6")
[node name="EnemyAggro" type="Node" parent="."]
script = ExtResource("7")
[node name="DetectionArea" type="Area3D" parent="."]
collision_layer = 0
collision_mask = 1

View File

@@ -1,12 +1,8 @@
[gd_scene load_steps=6 format=3]
[ext_resource type="Script" path="res://scripts/enemy/enemy.gd" id="1"]
[ext_resource type="Script" path="res://scripts/components/health.gd" id="2"]
[ext_resource type="Script" path="res://scripts/components/shield.gd" id="3"]
[ext_resource type="Script" path="res://scripts/components/healthbar.gd" id="4"]
[ext_resource type="Script" path="res://scripts/enemy/enemy_movement.gd" id="5"]
[ext_resource type="Script" path="res://scripts/enemy/enemy_combat.gd" id="6"]
[ext_resource type="Script" path="res://scripts/enemy/enemy_aggro.gd" id="7"]
[ext_resource type="Resource" path="res://resources/stats/enemy_stats.tres" id="8"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_1"]
@@ -23,9 +19,6 @@ bg_color = Color(0.3, 0.1, 0.1, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_health_fill"]
bg_color = Color(0.2, 0.8, 0.2, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_health_fill_aggro"]
bg_color = Color(0.2, 0.4, 0.9, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_shield_bg"]
bg_color = Color(0.1, 0.1, 0.3, 1)
@@ -45,6 +38,7 @@ radius = 8.0
[node name="Enemy" type="CharacterBody3D"]
script = ExtResource("1")
stats = ExtResource("8")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("CapsuleShape3D_1")
@@ -52,14 +46,6 @@ shape = SubResource("CapsuleShape3D_1")
[node name="Mesh" type="MeshInstance3D" parent="."]
mesh = SubResource("SphereMesh_1")
[node name="Health" type="Node" parent="."]
script = ExtResource("2")
stats = ExtResource("8")
[node name="Shield" type="Node" parent="."]
script = ExtResource("3")
stats = ExtResource("8")
[node name="HitArea" type="Area3D" parent="."]
collision_layer = 4
collision_mask = 0
@@ -72,12 +58,6 @@ shape = SubResource("CapsuleShape3D_2")
[node name="EnemyMovement" type="Node" parent="."]
script = ExtResource("5")
[node name="EnemyCombat" type="Node" parent="."]
script = ExtResource("6")
[node name="EnemyAggro" type="Node" parent="."]
script = ExtResource("7")
[node name="DetectionArea" type="Area3D" parent="."]
collision_layer = 0
collision_mask = 1

View File

@@ -4,10 +4,7 @@
[ext_resource type="Script" uid="uid://cohjyjge1kqxb" path="res://scripts/player/camera.gd" id="2"]
[ext_resource type="Script" uid="uid://fg87dh8fbc8" path="res://scripts/player/movement.gd" id="3"]
[ext_resource type="Script" uid="uid://d15til6fsxw5b" path="res://scripts/player/combat.gd" id="4"]
[ext_resource type="Script" uid="uid://b053b4fkkeaod" path="res://scripts/components/health.gd" id="5"]
[ext_resource type="Script" uid="uid://bpfw71oprcvou" path="res://scripts/components/shield.gd" id="6"]
[ext_resource type="Script" uid="uid://b05nkuryipwny" path="res://scripts/player/targeting.gd" id="8"]
[ext_resource type="Script" uid="uid://dw3dtax5bx0of" path="res://scripts/player/respawn.gd" id="9"]
[ext_resource type="Script" path="res://scripts/player/role.gd" id="10"]
[ext_resource type="Resource" uid="uid://cgxtn7dfs40bh" path="res://resources/ability_sets/tank_set.tres" id="11"]
[ext_resource type="Resource" uid="uid://beodknb6i1pm4" path="res://resources/ability_sets/damage_set.tres" id="12"]
@@ -24,6 +21,7 @@ height = 1.8
[node name="Player" type="CharacterBody3D" unique_id=1350215040]
script = ExtResource("1")
stats = ExtResource("14")
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=33887999]
shape = SubResource("CapsuleShape3D_1")
@@ -47,17 +45,6 @@ script = ExtResource("4")
[node name="Targeting" type="Node" parent="." unique_id=592540710]
script = ExtResource("8")
[node name="Health" type="Node" parent="." unique_id=1872357630]
script = ExtResource("5")
stats = ExtResource("14")
[node name="Shield" type="Node" parent="." unique_id=716948065]
script = ExtResource("6")
stats = ExtResource("14")
[node name="Respawn" type="Node" parent="." unique_id=1562314386]
script = ExtResource("9")
[node name="Role" type="Node" parent="." unique_id=134158295]
script = ExtResource("10")
tank_set = ExtResource("11")

View File

@@ -1,10 +1,7 @@
[gd_scene format=3]
[ext_resource type="Script" path="res://scripts/portal/portal.gd" id="1"]
[ext_resource type="Script" path="res://scripts/components/health.gd" id="2"]
[ext_resource type="Script" path="res://scripts/components/healthbar.gd" id="3"]
[ext_resource type="Script" path="res://scripts/components/spawner.gd" id="4"]
[ext_resource type="PackedScene" path="res://scenes/enemy/enemy.tscn" id="5"]
[ext_resource type="Resource" path="res://resources/stats/portal_stats.tres" id="6"]
[sub_resource type="SphereShape3D" id="SphereShape3D_1"]
@@ -35,6 +32,7 @@ bg_color = Color(0.2, 0.8, 0.2, 1)
[node name="Portal" type="StaticBody3D"]
script = ExtResource("1")
stats = ExtResource("6")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("CylinderShape3D_1")
@@ -42,10 +40,6 @@ shape = SubResource("CylinderShape3D_1")
[node name="Mesh" type="MeshInstance3D" parent="."]
mesh = SubResource("CylinderMesh_1")
[node name="Health" type="Node" parent="."]
script = ExtResource("2")
stats = ExtResource("6")
[node name="HitArea" type="Area3D" parent="."]
collision_layer = 4
collision_mask = 0
@@ -61,10 +55,6 @@ monitoring = true
[node name="CollisionShape3D" type="CollisionShape3D" parent="DetectionArea"]
shape = SubResource("SphereShape3D_1")
[node name="Spawner" type="Node" parent="."]
script = ExtResource("4")
spawn_scene = ExtResource("5")
[node name="Healthbar" type="Sprite3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, 0)
billboard = 1

View File

@@ -1,8 +1,18 @@
[gd_scene format=3 uid="uid://dy1icabu2ssbw"]
[ext_resource type="Script" uid="uid://h0hts425epc6" path="res://scripts/systems/ability_system.gd" id="ability_system"]
[ext_resource type="Script" uid="uid://cm7ehl2pexcst" path="res://scripts/systems/aggro_system.gd" id="aggro_system"]
[ext_resource type="Script" uid="uid://da2jm0awq2lnh" path="res://scripts/systems/buff_system.gd" id="buff_system"]
[ext_resource type="Script" uid="uid://ddos7mo8rahou" path="res://scripts/systems/cooldown_system.gd" id="cooldown_system"]
[ext_resource type="Script" uid="uid://cbd1bryh0e2dw" path="res://scripts/systems/damage_system.gd" id="damage_system"]
[ext_resource type="Script" uid="uid://bwhxu5586lc1l" path="res://scripts/systems/enemy_ai_system.gd" id="enemy_ai_system"]
[ext_resource type="Script" uid="uid://b3wkn5118dimy" path="res://scripts/systems/health_system.gd" id="health_system"]
[ext_resource type="PackedScene" path="res://scenes/hud/hud.tscn" id="hud"]
[ext_resource type="PackedScene" uid="uid://cdnkbt1f0db7e" path="res://scenes/player/player.tscn" id="player"]
[ext_resource type="Script" uid="uid://cskx6o07iukwh" path="res://scripts/world/portal_spawner.gd" id="portal_spawner"]
[ext_resource type="Script" uid="uid://b1qkvoqvmd21h" path="res://scripts/systems/respawn_system.gd" id="respawn_system"]
[ext_resource type="Script" uid="uid://rsnpuf77o0sn" path="res://scripts/systems/shield_system.gd" id="shield_system"]
[ext_resource type="Script" uid="uid://c84voxmnaifyt" path="res://scripts/systems/spawn_system.gd" id="spawn_system"]
[sub_resource type="NavigationMesh" id="NavigationMesh_1"]
vertices = PackedVector3Array(-49.5, 0.5, -49.5, -49.5, 0.5, 49.5, 49.5, 0.5, 49.5, 49.5, 0.5, -49.5)
@@ -41,6 +51,38 @@ size = Vector3(5, 3, 5)
[node name="World" type="Node3D" unique_id=1865233338]
[node name="Systems" type="Node" parent="." unique_id=1813416478]
[node name="HealthSystem" type="Node" parent="Systems" unique_id=221270411]
script = ExtResource("health_system")
[node name="ShieldSystem" type="Node" parent="Systems" unique_id=1790230220]
script = ExtResource("shield_system")
[node name="DamageSystem" type="Node" parent="Systems" unique_id=2146323526]
script = ExtResource("damage_system")
[node name="AbilitySystem" type="Node" parent="Systems" unique_id=391120092]
script = ExtResource("ability_system")
[node name="CooldownSystem" type="Node" parent="Systems" unique_id=99457358]
script = ExtResource("cooldown_system")
[node name="AggroSystem" type="Node" parent="Systems" unique_id=1539448343]
script = ExtResource("aggro_system")
[node name="EnemyAISystem" type="Node" parent="Systems" unique_id=2089718042]
script = ExtResource("enemy_ai_system")
[node name="RespawnSystem" type="Node" parent="Systems" unique_id=1586865573]
script = ExtResource("respawn_system")
[node name="SpawnSystem" type="Node" parent="Systems" unique_id=1099032666]
script = ExtResource("spawn_system")
[node name="BuffSystem" type="Node" parent="Systems" unique_id=1219368182]
script = ExtResource("buff_system")
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="." unique_id=1265843679]
navigation_mesh = SubResource("NavigationMesh_1")