package Game.Objects.Bullets
{
	import Engine.GameSprite;
	import flash.display.Bitmap;
	import flash.geom.Point;
	import Game.LibGraphics;
	import Game.UserPlayer;
	
	/**
	 * ...
	 * @author KEFIR
	 */
	public class UFOBullet extends GameSprite
	{
		public var vector:Point;
	
		override public function Move():void
		{
			x += vector.x * 20;
			y += vector.y * 20;
			
			if (x < 0) {
				Delete = true;
			}
			
			super.Move();
		}
		
		override public function Collision(Intersects:GameSprite):void
		{
			super.Collision(Intersects);

		}
		
		public function UFOBullet()
		{
			super(new LibGraphics.Bullet2() as Bitmap, new Point(2, 2));
			CollisionEnabled = true;
		}
		
	}

}