Source

ld3k / levels / RMFan.as

Full commit
package levels
{
	import objs.Line;
	import objs.Obj;
	import objs.RemoveLine;

	public class RMFan extends LevelBase
	{
		public function RMFan()
		{
			waves = 4;
		}
		override public function leveldata(wave:int):Vector.<Obj> 
		{
			var data:Array = [
				new Line(  1, 47, 95, 18,  0),
				new Line(  2, 48, 95, 95, 24),
				new Line(  3, 47, 95,  0, 24),
				new Line(  4, 48, 95, 95, 76),
				new Line(  5, 47, 95,  0, 48),
				new Line(  6, 48, 95, 48,  0),
				new Line(  7, 47, 95,  0, 76),
				new Line(  8, 48, 95, 95, 48),
				new Line(  9, 47, 95,  2,  0),
				new Line( 10, 48, 95, 77,  0),
				new Line( 11, 47, 95, 47,  0),
				new Line( 12, 48, 95, 93,  0),
				new Line( 13, 47, 95,  0, 88),
				new Line( 14, 48, 95, 63,  0),
				new Line( 15, 47, 95, 32,  0),
				new Line( 16, 48, 95, 95, 88),
				new Line( 17, 47, 95,  0, 63),
				new Line( 18, 48, 95, 95, 63),
				// added
				new Line( 19, 47, 95, 39,  0),
				new Line( 20, 48, 95, 56,  0),
				new Line( 21, 47, 95, 25,  0),
				new Line( 22, 48, 95, 71,  0),
				new Line( 23, 47, 95, 11,  0),
				new Line( 24, 48, 95, 85,  0),
				new Line( 25, 47, 95,  0, 11),
				new Line( 26, 48, 95, 95, 11),
				new Line( 27, 47, 95,  0, 38),
				new Line( 28, 48, 95, 95, 38),
				new Line( 29, 47, 95,  0, 57),
				new Line( 30, 48, 95, 95, 57),
				new Line( 31, 47, 95,  0, 70),
				new Line( 32, 48, 95, 95, 70),
				new Line( 33, 47, 95,  0, 82),
				new Line( 34, 48, 95, 95, 82),
				new Line( 35, 47, 95,  0, 93),
				new Line( 36, 48, 95, 95, 93),
			];
			var remove:Array; 
			if (wave == 0) {
				remove = [
				new RemoveLine(60, data[3]), 
				new RemoveLine(65, data[8]), 
				new RemoveLine(70, data[9]), 
				new RemoveLine(75, data[16]), 
				new RemoveLine(80, data[20]), 
				new RemoveLine(85, data[24]), 
				];
			} else if (wave == 1) {
				remove = [
				new RemoveLine(60, data[5]), 
				new RemoveLine(65, data[13]), 
				new RemoveLine(70, data[23]), 
				new RemoveLine(75, data[22]), 
				];
			} else if (wave == 2) {
				remove = [
				new RemoveLine(80, data[8]), 
				new RemoveLine(85, data[27]), 
				];
			} else {
				remove = [
				new RemoveLine(85, data[31]), 
				];
				
			}
			
			return Vector.<Obj>(data.concat(remove));
		}
	}
}