Source

ld3k / levels / Level0.as

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

	public class Level0 extends LevelBase
	{
		// notice that frame numbers SHOULD NOT be same
		// 1 frame diff is trivial
		// and MUST be incremental
		// BUG: if Obj start at 0th frame things gonna fail
		// always start at 1 frame
		override public function leveldata(wave:int):Vector.<Obj> 
		{
			var data:Array = [
				// rect 1
				new Line(10,  0,  2,  95,  2),
				new Line(11, 93,  0,  93, 95),
				new Line(12, 95, 93,   0, 93),
				new Line(13,  2, 95,   2,  0),
				// rect 2
				new Line(30,  0,  4,  95,  4),
				new Line(31, 91,  0,  91, 95),
				new Line(32, 95, 91,   0, 91),
				new Line(33,  4, 95,   4,  0),
				// rect 3
				new Line(60,  0,  8,  95,  8),
				new Line(61, 87,  0,  87, 95),
				new Line(62, 95, 87,   0, 87),
				new Line(63,  8, 95,   8,  0),
				// rect 4
				new Line(90,  0, 14,  95, 14),
				new Line(91, 81,  0,  81, 95),
				new Line(92, 95, 81,   0, 81),
				new Line(93, 14, 95,  14,  0),
				// rect 5
				new Line(116,  0, 20,  95, 20),
				new Line(117, 75,  0,  75, 95),
				new Line(118, 95, 75,   0, 75),
				new Line(119, 20, 95,  20,  0),
			];
			
			return Vector.<Obj>(data);
		}
	}
}