basic ECS spawner
This commit is contained in:
25
GECS/entities/Spawner/SpawnPoint.tscn
Normal file
25
GECS/entities/Spawner/SpawnPoint.tscn
Normal file
@@ -0,0 +1,25 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://d0075ch03hfri"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ckqlc1tqyh7gm" path="res://GECS/entities/Spawner/e_spawn_point.gd" id="1_sp3sh"]
|
||||
[ext_resource type="Script" uid="uid://b6k13gc2m4e5s" path="res://addons/gecs/ecs/component.gd" id="2_ksqpe"]
|
||||
[ext_resource type="Script" uid="uid://cmflg422miab6" path="res://GECS/components/c_spawn_point.gd" id="3_ksqpe"]
|
||||
[ext_resource type="PackedScene" uid="uid://bct6stmj0qyp2" path="res://GECS/entities/BasicEnemy/BasicEnemy.tscn" id="4_2ixog"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_dgltp"]
|
||||
script = ExtResource("3_ksqpe")
|
||||
spawn_prefab = ExtResource("4_2ixog")
|
||||
metadata/_custom_type_script = "uid://cmflg422miab6"
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_sp3sh"]
|
||||
|
||||
[node name="SpawnPoint" type="CharacterBody3D"]
|
||||
collision_layer = 0
|
||||
collision_mask = 0
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_sp3sh")
|
||||
component_resources = Array[ExtResource("2_ksqpe")]([SubResource("Resource_dgltp")])
|
||||
|
||||
[node name="Marker3D" type="Marker3D" parent="."]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("SphereShape3D_sp3sh")
|
||||
Reference in New Issue
Block a user