update
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
[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"]
|
||||
radius = 0.4
|
||||
@@ -53,9 +54,11 @@ 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
|
||||
|
||||
@@ -8,10 +8,11 @@
|
||||
[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" uid="uid://rus4umqvvqq4" path="res://scripts/player/player_class.gd" id="10"]
|
||||
[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"]
|
||||
[ext_resource type="Resource" uid="uid://kcwuhnqy34mj" path="res://resources/ability_sets/healer_set.tres" id="13"]
|
||||
[ext_resource type="Resource" path="res://resources/stats/player_stats.tres" id="14"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_1"]
|
||||
radius = 0.3
|
||||
@@ -48,14 +49,16 @@ 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="PlayerClass" type="Node" parent="." unique_id=134158295]
|
||||
[node name="Role" type="Node" parent="." unique_id=134158295]
|
||||
script = ExtResource("10")
|
||||
tank_set = ExtResource("11")
|
||||
damage_set = ExtResource("12")
|
||||
|
||||
@@ -3,7 +3,12 @@
|
||||
[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/portal/portal_spawner.gd" id="4"]
|
||||
[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"]
|
||||
radius = 10.0
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_1"]
|
||||
radius = 1.0
|
||||
@@ -39,7 +44,7 @@ mesh = SubResource("CylinderMesh_1")
|
||||
|
||||
[node name="Health" type="Node" parent="."]
|
||||
script = ExtResource("2")
|
||||
max_health = 500.0
|
||||
stats = ExtResource("6")
|
||||
|
||||
[node name="HitArea" type="Area3D" parent="."]
|
||||
collision_layer = 4
|
||||
@@ -48,8 +53,17 @@ collision_mask = 0
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="HitArea"]
|
||||
shape = SubResource("CylinderShape3D_2")
|
||||
|
||||
[node name="PortalSpawner" type="Node" parent="."]
|
||||
[node name="DetectionArea" type="Area3D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 1
|
||||
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)
|
||||
@@ -76,3 +90,5 @@ theme_override_styles/fill = SubResource("StyleBoxFlat_health_fill")
|
||||
max_value = 500.0
|
||||
value = 500.0
|
||||
show_percentage = false
|
||||
|
||||
[connection signal="body_entered" from="DetectionArea" to="." method="_on_detection_area_body_entered"]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[gd_scene format=3 uid="uid://dy1icabu2ssbw"]
|
||||
|
||||
[ext_resource type="PackedScene" path="res://scenes/hud/hud.tscn" id="hud"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/portal/portal.tscn" id="portal"]
|
||||
[ext_resource type="PackedScene" uid="uid://cdnkbt1f0db7e" path="res://scenes/player/player.tscn" id="player"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/portal/portal.tscn" id="portal"]
|
||||
|
||||
[sub_resource type="NavigationMesh" id="NavigationMesh_1"]
|
||||
vertices = PackedVector3Array(-9.5, 0.5, -9.5, -9.5, 0.5, 9.5, 9.5, 0.5, 9.5, 9.5, 0.5, -9.5)
|
||||
@@ -51,5 +51,5 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7, 1, -7)
|
||||
|
||||
[node name="HUD" parent="." unique_id=24362518 instance=ExtResource("hud")]
|
||||
|
||||
[node name="Portal" parent="." instance=ExtResource("portal")]
|
||||
[node name="Portal" parent="." unique_id=2086501116 instance=ExtResource("portal")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 0, 5)
|
||||
|
||||
Reference in New Issue
Block a user