package  
{
	import net.flashpunk.Sfx;
	import net.flashpunk.FP;
	/**
	 * ...
	 * @author AntoineGuerchais
	 */
	public class SoundManager 
	{
		[Embed(source = '../assets/sounds/arbre_coupe00.mp3')]
		private const Cut:Class;
		[Embed(source = '../assets/sounds/arbre_pousse00.mp3')]
		private const Buds:Class;
		
		static private var cut:Sfx;
		static private var buds:Sfx;
		
		public function SoundManager() 
		{
			cut = new Sfx(Cut);
			buds = new Sfx(Buds);
		}
		
		static public function playCut(x:Number,y:Number):void
		{
			cut.play(1,(y-FP.screen.width*0.5)/(FP.screen.width*0.5));
		}
		
		static public function playBuds():void
		{
			buds.play();
		}
		
	}

}