feat: Add initial core game scene, player script, and static Tekton manager.
This commit is contained in:
@@ -42,9 +42,9 @@ func calculate_spawn_points(count: int, gridmap: Node) -> Array[Vector2i]:
|
||||
# If count > 5, we only return 5 because that's the max safe non-adjacent set in 3x3
|
||||
var spawn_points: Array[Vector2i] = []
|
||||
|
||||
var iterations = min(count, target_indices.size())
|
||||
for i in range(iterations):
|
||||
var zone_idx = target_indices[i]
|
||||
for zone_idx in target_indices:
|
||||
if spawn_points.size() >= count:
|
||||
break
|
||||
var zone = zones[zone_idx]
|
||||
|
||||
# Determine Position Type for Bias
|
||||
|
||||
Reference in New Issue
Block a user