package
{

	import org.flixel.*;

	public class MenuState extends FlxState
	{
		[Embed(source = "assets/SCREEN.png")] private var ImgBg:Class;
		private var bg:FlxSprite;
		
		override public function create():void
		{
			FlxG.bgColor = 0xff000000;
			bg = new FlxSprite(0, 0, ImgBg);
			add(bg);
			
			
			FlxG.mouse.show();
			FlxG.shake(0.001, 30);
			FlxG.flash(0xff000000, 0.3);
		}
		
		override public function update():void
		{
			super.update();	
			
			if (FlxG.mouse.justPressed()) onPlay();
			
			
		}
		
		protected function onPlay():void
		{
			FlxG.switchState(new PlayState());
		}
		
		
	}
}

