public Minimap() { int size = (74 * 2); _texture = new Texture2D(GraphicsRenderer.GetGraphicsDevice(), GameWorld.WorldData.LevelWidth, GameWorld.WorldData.LevelHeight); _antiTexture = new Texture2D(GraphicsRenderer.GetGraphicsDevice(), GameWorld.WorldData.LevelWidth, GameWorld.WorldData.LevelHeight); _pixels = new Color[_texture.Width * _texture.Height]; _rectangle = new Rectangle(0, 0, size, size); minimapToWorldRatio = (float)(_texture.Width) / size; int width = (_uiSourceRect.Width * 2); int height = (_uiSourceRect.Height * 2); _uiDrawRect = new Rectangle(0, 0, width, height); }