My next step is to be able to render the hexagons (create Unity objects?), thus also testing whether the generating works properly. After this I'll add height variation and we'll see where that leads us.
private void Generate() { int range = 5; for (int i = -range; i <= range; i++) { for (int j = Math.Max(-range, -i - range); j < Math.Min(range, -i + range); j++) { var k = -i - j; _map.Add(HexCoord.ToString(i, j, k), new HexTile(i, j, k)); } } }
No comments:
Post a Comment