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