HexGrid Civ-like custom mesh code

I haven’t had the time to work on my Civ-like project as much as I would like, so I’m releasing the source for other people to use. There are several options to tweak in HexMetrics.java for how the terrain is generated. The source should be fairly easy to modify for general use. There is also a shader I modified for using texture-arrays.

An example of what the code will generate: Civ-like map generation - Album on Imgur

5 Likes

Thanks for sharing :slightly_smiling_face:

It might be worth noting that the map is randomly generated based on Civ-like properties, like climate and land mass. You can also select tiles by clicking on the map. Should be straight forward to rip the code out for use in other hexagonal tile-based games.