Fog of war?

Would anyone have a clue as to how I could accomplish this? I’m attempting a top-down RTS, still in early stages since I won’t continue until I know if this stuff is even possible.

While I’m asking questions anyway, would anyone know how to convert screen clicks on a 256*128 minimap to world coordinates?