package Game.Objects.Bullets
{
	import Engine.GameSprite;
	import flash.geom.Point;
	import flash.media.Sound;
	import Game.Effects.Explosion;
	import Game.LibGraphics;
	import Game.LibSounds;
	import Game.UserPlayer;
	
	/**
	 * ...
	 * @author KEFIR
	 */
	public class RocketBullet extends GameSprite
	{
		
		override public function Move():void
		{
			x = x - 25;
		}
		
		override public function Collision(Intersects:GameSprite):void
		{
			if (Intersects is UserPlayer) {
				Group.AddSprite(new Explosion(x, y));
			}
		}
		
		public function RocketBullet()
		{
			super(new LibGraphics.RocketBullet(), new Point(30, 10), true, 43, 24, 1 / 3);
			CollisionEnabled = true;
			
			var snd:Sound = new LibSounds.RocketShot();
			snd.play();
		}
		
	}

}