package  
{
	import flash.display.Sprite;
	
	/**
	 * ...
	 * @author Fiodar Paulavets
	 */
	public class Game extends Sprite 
	{		
		public static var screenWidth: uint;
		public static var screenHeight: uint;
		
		public static var game: Game;
		
		public function Game(width: uint, height: uint) 
		{
			screenWidth = width;
			screenHeight = height;
			
			/*World.world = */new World(); // !!!
			addChild(World.world);
			
			graphics.beginFill(0xFFFFFF);
			graphics.drawRect(0, 0, width, height);
		}
		
		public function Update(dt: Number): void
		{
			World.world.Update(dt);
		}
		
	}

}