basic ECS spawner

This commit is contained in:
2026-01-15 15:27:48 +01:00
parent 24a781f36a
commit eb737b469c
860 changed files with 58621 additions and 32 deletions

View File

@@ -1,6 +1,10 @@
[gd_scene load_steps=5 format=3 uid="uid://cohmqsk3s70yp"]
[gd_scene load_steps=10 format=3 uid="uid://cohmqsk3s70yp"]
[ext_resource type="Script" uid="uid://cg0xoblykx4w6" path="res://maps/world.gd" id="1_3cfne"]
[ext_resource type="Script" uid="uid://cte4jalives85" path="res://addons/sk_fly_camera/src/fly_camera.gd" id="1_aj441"]
[ext_resource type="Script" uid="uid://cdu5tlyk72uu4" path="res://addons/gecs/ecs/world.gd" id="1_i46j0"]
[ext_resource type="PackedScene" uid="uid://b2v1bngfh5te" path="res://GECS/systems/default_systems.tscn" id="4_3cfne"]
[ext_resource type="PackedScene" uid="uid://d0075ch03hfri" path="res://GECS/entities/Spawner/SpawnPoint.tscn" id="5_qsrji"]
[sub_resource type="PhysicalSkyMaterial" id="PhysicalSkyMaterial_aj441"]
@@ -17,7 +21,17 @@ ssao_enabled = true
ssao_radius = 2.0
fog_light_color = Color(1, 1, 1, 1)
[sub_resource type="SphereShape3D" id="SphereShape3D_qsrji"]
[node name="Enemies" type="Node3D"]
script = ExtResource("1_3cfne")
[node name="World" type="Node" parent="."]
script = ExtResource("1_i46j0")
system_nodes_root = NodePath("../Systems")
metadata/_custom_type_script = "uid://cdu5tlyk72uu4"
[node name="Systems" parent="." instance=ExtResource("4_3cfne")]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_i46j0")
@@ -30,10 +44,24 @@ transform = Transform3D(0.098757595, -0.94823945, -0.30180964, 0.25508866, -0.26
light_energy = 0.2
[node name="CharacterBody3D" type="CharacterBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13.231003, 12.216311, 0)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.7689972, 2.2163115, 6)
collision_layer = 0
collision_mask = 0
motion_mode = 1
script = ExtResource("1_aj441")
[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"]
shape = SubResource("SphereShape3D_qsrji")
[node name="SpawnPoint" parent="." instance=ExtResource("5_qsrji")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 2, 1)
spawn_frequency = 2.0
[node name="SpawnPoint2" parent="." instance=ExtResource("5_qsrji")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7, 2, -21)
[node name="CSGCombiner3D" type="CSGCombiner3D" parent="."]
use_collision = true
[node name="CSGBox3D" type="CSGBox3D" parent="CSGCombiner3D"]
size = Vector3(100, 1, 100)
@@ -87,7 +115,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.025868, -9.536743e-07, 8.9
size = Vector3(10, 8, 10)
[node name="CSGBox3D14" type="CSGBox3D" parent="CSGCombiner3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.727036, -9.536743e-07, 0.6610918)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.7270355, -9.536743e-07, 0.6610918)
size = Vector3(10, 9, 10)
[node name="CSGBox3D15" type="CSGBox3D" parent="CSGCombiner3D"]