LibGDX and Tiled.. selective tile rendering??

Hello all,

I am very new to game programming (have experience programming in Java/C++ but feel overwhelmed by some of these APIs with not very good tutorials) and I am attempting to create a java game using libgdx and the Tiled 2d map editor. I am a bit confused about a few things so I’ll address them and hope someone enlightens me. Some have told me that it would be better not to use tiled… but I’d like to use tiled for the ease of creating a map.

Is there a way to only render specific coordinates of the tiled tilemap? I am going for a fog of war effect. So say for example a unit only has a 1 tile fog of war around where its positioned on the map (x,y). And there are multiple of these units on the map. Can I directly tell the libgdx orthogonal map renderer to render the map around those objects? If so how can I do this?

Another approach I was thinking (but not quite sure its possible) create a completely black layer on top of the original map and do some alpha tint around entity object. How can I do this programatically?