package 
{ 
	import net.flashpunk.Engine;
	import net.flashpunk.FP;
	import net.flashpunk.debug.Console;
	import net.flashpunk.Sfx;
	//import flash.display;
	import flash.ui.Mouse;
	
	import net.flashpunk.utils.Input;
	import net.flashpunk.utils.Key;
	
	public class Main extends Engine 
	{ 
		[Embed(source = '../assets/sounds/arbre r02 rendu total.mp3')]
		private const Music:Class;
		
		
		private var console:Console;
		
		public function Main():void 
		{
			super(800, 500, 30, true);
		}
		
		override public function init():void 
		{	
			//FP.screen.width = FP.width;
			//FP.screen.height = FP.height;
			var music:Sfx;
			music = new Sfx(Music);
			music.loop();
			
			//FP.world = new TreeWorld();
			FP.world = new MainMenu();
			
			//console = new Console();
			//FP.console.enable();
			//FP.console.visible = true;
			Mouse.hide();
		}
		
		override public function update():void
		{
			//if (Input.pressed(Key.SPACE))(FP.world as TreeWorld).paused = !(FP.world as TreeWorld).paused;// FP.world.active = !FP.world.active;
			//if (!FP.world.active) (FP.world as TreeWorld).updateMenu(true);
			
			super.update();
		}
	}
}