package Game.Effects
{
	import Engine.GameSprite;
	import flash.geom.Point;
	import flash.media.Sound;
	import Game.LibGraphics;
	import Game.LibSounds;
	
	/**
	 * ...
	 * @author ...
	 */
	public class Explosion extends GameSprite
	{
		override public function AnimationFinished():void
		{
			Delete = true;
		}
		
		public function Explosion(newX:int, newY:int)
		{
			super( new LibGraphics.Explosion(), new Point(45, 45), true, 103, 86, 1 / 2);
			x = newX;
			y = newY;
			CollisionEnabled = false;
			
			var snd:Sound = new LibSounds.Explosion() as Sound;
			snd.play();
		}
		
	}

}