settings, small fixes

This commit is contained in:
Daniel Kauss Serna 2026-02-15 16:17:51 +01:00
parent b12c193636
commit e08e3ebb13
174 changed files with 997 additions and 1040 deletions

View file

@ -1,9 +1,9 @@
extends Node2D
@export var enemies: Array[PackedScene] # Drag your enemy .tscn here
@export var num_circles: int = 3 # How many rings of enemies
@export var enemies_per_circle: int = 8 # Base number of enemies
@export var radius_step: float = 100.0 # Distance between each ring
@export var enemies: Array[PackedScene]
@export var num_circles: int = 3
@export var enemies_per_circle: int = 8
@export var radius_step: float = 100.0
@export var initial_radius: float = 150.0
func _ready() -> void:
@ -11,7 +11,6 @@ func _ready() -> void:
func spawn_concentric_horde() -> void:
for i in range(num_circles):
# We calculate the radius for this specific ring
var current_radius = initial_radius + (i * radius_step)
for j in range(enemies_per_circle):
@ -19,7 +18,6 @@ func spawn_concentric_horde() -> void:
func spawn_enemy_at_random_angle(radius: float) -> void:
var random_angle = randf_range(0, 2 * PI)
var spawn_pos = Vector2(
radius * cos(random_angle),