public override void LoadContent() { base.LoadContent(); HasCursor = true; var vp = ScreenManager.GraphicsDevice.Viewport; _height = /*30f*/ ScreenManager.GraphicsDevice.Viewport.Height * (1f / 24f); // 30 meters height _width = _height * vp.AspectRatio; _width -= 1.5f; // 1.5 meters border _height -= 1.5f; float halfWidth = _halfWidth = _width / 2f; float halfHeight = _halfHeight = _height / 2f; //DebugView.AppendFlags(DebugViewFlags.Shape); World.Gravity = new Vector2(0, -9.82f); _border = new Border(World, ScreenManager, Camera); _blocks = new List <BreakableObj1>(); _silhouette = new BuildingSilhouette( World, ScreenManager, new Vector2(0f, 0f), Camera, new Vector2(20f, _height), this.pathToSilhouette); //TEST(); restartButton = new RestartButton(this, ScreenManager); restartButton.AddMenuItem(EntryType.Screen, this); }