package  
{
	import net.flashpunk.Entity;
	import net.flashpunk.graphics.Image;
	import net.flashpunk.FP;
	
	/**
	 * ...
	 * @author Benn
	 */
	public class Credits extends Entity 
	{
		
		[Embed(source = "../assets/graphics/credits.png")] private static const CREDITS_IMAGE:Class;
		
		private var CreditsImage:Image = new Image(CREDITS_IMAGE);
		
		public function Credits() 
		{
			x = 0;
			y = 490;
			graphic = CreditsImage;
		}
	
		override public function update():void 
		{
			
			y -= 200 * FP.elapsed;
			
			if (y < 0)
			{
				y = 0;
			}
			
			super.update();
		}
		
	}

}