Skip to content
claudiu gombos edited this page Dec 12, 2015 · 1 revision

Hi, Nice work!

For rebuild algorithm... Can you please explain the logic behind?

For example hexMap(input prameter for rebuild), contains hexes, but the rendering is using the tg.hexes. What is tgGroup, tgs and tg,hexes?

below is the code used in rebuild. hexMap.tgGroup.tgs.forEach(function (tg) { tg.hexes.forEach(function (hex) { dp.hex = hex; performTerrainGraphics(tg, dp); }); });

Clone this wiki locally