private void myInitialize() { _colorPanel = new TestXNA.Sources.GameData.GraphicColors(); backgroundColor = _colorPanel.backgroundColor; screenCenter = new Vector2(GraphicsDevice.Viewport.Width / 2, GraphicsDevice.Viewport.Height / 2); mapArea = new Rectangle(borderWidth, borderWidth, GraphicsDevice.Viewport.Width - borderWidth * 2, GraphicsDevice.Viewport.Height - borderWidth * 2); screenArea = new Rectangle(0, 0, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height); _borderArea = new Rectangle(borderStart, borderStart, GraphicsDevice.Viewport.Width - borderStart * 2, GraphicsDevice.Viewport.Height - borderStart * 2); }