enemies spawn with offsets in positions and animations

This commit is contained in:
Ian Woods 2026-06-23 21:16:12 -07:00
parent d1930a6b00
commit 53e7fc78a7
4 changed files with 35 additions and 12 deletions

View file

@ -17,9 +17,18 @@ namespace TD.Gameplay
[Tooltip("How many enemies of this type to spawn.")]
public int Count;
[Tooltip("Seconds between each individual spawn within this group. " +
"0 = all spawn simultaneously.")]
[Tooltip("How many enemies spawn per burst. 1 (default) = original one-at-a-time " +
"behaviour. Values > 1 spawn that many simultaneously before waiting SpawnInterval.")]
public int ChunkSize;
[Tooltip("Seconds between each burst. With ChunkSize > 1 this is the pause between " +
"groups rather than between individual enemies.")]
public float SpawnInterval;
[Tooltip("Max X-axis world-unit offset applied randomly to each enemy's spawn position. " +
"0 = all spawn at the exact tile centre. Spreads enemies left/right without " +
"affecting their forward/backward position or A* pathfinding.")]
public float SpawnSpread;
}
/// <summary>