Hey, you might find my article on fog of war helpful. It gives you a part of what you want, specifically a way to hide things.
Fog of War for games
the implementation is available on github under MIT as well:
good luck!