package Game.Objects.Bonuses
{
	import Engine.GameSprite;
	import flash.geom.Point;
	import Game.LibGraphics;
	import Game.SceneGame;
	
	/**
	 * ...
	 * @author KEFIR
	 */
	public class GunBonus extends GameSprite
	{
		private var _angle:Number = 0;
		
		override public function Move():void
		{
			x = x + ((Group as SceneGame).Player.Speed - 5) - ((Group as SceneGame).Player.Speed);
			y = 200 + Math.sin(_angle) * 50;
			
			_angle += 0.05;
			
			if (x < -100) {
				Delete = true;
			}
		}
		
		public function GunBonus()
		{
			super(new LibGraphics.GunBonus(), new Point(26, 16));
			CollisionEnabled = true;
		}
		
	}

}