public void Visit(Field field) { // Add PowerUp spawners field.AddStuff(new PowerUpSpawner(field.levelWidth / 2, field.levelHeight / 2, field.blockWidth, field.blockHeight, new FixedSpawn())); // Add Player spawners field.AddStuff(new PlayerSpawner(field.blockWidth * 4, field.blockHeight * 4, 135)); field.AddStuff(new PlayerSpawner(field.levelWidth - field.blockWidth * 4, field.blockHeight * 4, -135)); field.AddStuff(new PlayerSpawner(field.blockWidth * 4, field.levelHeight - field.blockHeight * 4, 45)); field.AddStuff(new PlayerSpawner(field.levelWidth - field.blockWidth * 4, field.levelHeight - field.blockHeight * 4, -45)); }
public void Visit(Field field) { field.AddStuff(new Ground(new Transform(field.levelWidth / 2, field.levelHeight / 2, field.levelWidth, field.levelHeight), Brushes.LightGreen)); }