update
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user