package levels 
{
	import enemies.Creator;
	import enemies.EnemyPepelaz;
	import engine.Utils;
	/**
	 * ...
	 * @author beisik
	 */
	public class Lvl1 extends Level 
	{
		
		public function Lvl1() 
		{
			super(1, "Первая кровь");
			
			Utils.seed = 1;
			
			var time: Number = 3;
			// Создание противников
			for (var i: uint = 0; i < 10; i++)
			{
				time += 1 + (4 - i * 4 / 10) * Utils.randomBySeed();
				Creator.add(time, EnemyPepelaz);
				//var n: uint = Creator.getCount();
				//trace(n, ':', time.toFixed(2));
				time += 0.5 + Utils.randomBySeed();
				Creator.add(time, EnemyPepelaz);
				//n = Creator.getCount();
				//trace(n, ':', time.toFixed(2));
			}
			Creator.startWave();
		}
		
	}

}