Hi! I'm created fog of war mechanics for real-time stategy game based on Tilemap and Array objects. It's works without any WebGL effects and JavaScript code.
So, map in this game is grid-based. Every unit can take just one tile. Also, each unit has vision-range variable. "Vision = 6" means that the unit can can look at 6 cells around himself. I am used a wave algorithm to fill Array by numbers which need to make vision area.
Try on Arcade
Download *.c3p