50% rule
This commit is contained in:
parent
f2e4768b7e
commit
f0be16c9f2
11 changed files with 214 additions and 142 deletions
|
|
@ -10,11 +10,12 @@ public partial class RowSpawner : Node2D
|
|||
{
|
||||
private Queue<RowSpawn> queue = [];
|
||||
[Export] private Timer delayTimer;
|
||||
[Export] private LevelRunner runner;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
{
|
||||
delayTimer.Timeout += FormSquad;
|
||||
}
|
||||
}
|
||||
|
||||
private void FormSquad()
|
||||
{
|
||||
|
|
@ -37,6 +38,7 @@ public partial class RowSpawner : Node2D
|
|||
PoolContainer.Instance.Zombies.AddChild(zombie);
|
||||
|
||||
zombie.GlobalPosition = new Vector2(GlobalPosition.X, Utility.LeftFieldBoundary.Y + lane * Utility.TileHeight);
|
||||
runner.AddZombie(zombie);
|
||||
}
|
||||
|
||||
public void Add(Array<RowSpawn> rowSpawns)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue