Mag gen & work towards AI

This commit is contained in:
2024-01-21 16:39:13 +01:00
parent 405b374b9a
commit 9e3deaf3b0
20 changed files with 341 additions and 21 deletions

View File

@ -0,0 +1,11 @@
[gd_scene load_steps=3 format=3 uid="uid://b4oxvram27p0u"]
[ext_resource type="Script" path="res://scripts/v2/worldgen/standard/entity_marker.gd" id="1_vuvjk"]
[ext_resource type="PackedScene" uid="uid://bgdkduh2uevft" path="res://nodes/v2/creatures/enemies/basic_enemy.tscn" id="2_qxhxm"]
[node name="EnemyMarker" type="Node2D"]
script = ExtResource("1_vuvjk")
marker_id = "enemy"
entities = Array[PackedScene]([ExtResource("2_qxhxm")])
spawn_chance = 0.8
debug_color = Color(0.686275, 0, 0.0156863, 1)

View File

@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://bo2usnpwbmtph"]
[ext_resource type="Script" path="res://scripts/v2/worldgen/standard/entity_marker.gd" id="1_5qujy"]
[ext_resource type="PackedScene" path="res://nodes/exit.tscn" id="2_gvvu0"]
[node name="ExitMarker" type="Node2D"]
script = ExtResource("1_5qujy")
marker_id = "exit"
entities = Array[PackedScene]([ExtResource("2_gvvu0")])
spawn_method = 1
entity_selection_method = 1
debug_color = Color(0.129412, 1, 1, 1)

View File

@ -0,0 +1,11 @@
[gd_scene load_steps=3 format=3 uid="uid://b3yvofe5j167l"]
[ext_resource type="Script" path="res://scripts/v2/worldgen/standard/entity_marker.gd" id="1_f63ew"]
[ext_resource type="PackedScene" uid="uid://de3exlu8jniam" path="res://nodes/player.tscn" id="2_ka5cd"]
[node name="PlayerMarker" type="Node2D"]
script = ExtResource("1_f63ew")
marker_id = "player_spawn"
entities = Array[PackedScene]([ExtResource("2_ka5cd")])
spawn_method = 2
debug_color = Color(0, 0.160784, 0.886275, 1)