Hex-Board Generation

A personal project, implemented in the Unity game engine with C#, that generates a board of hex-tiles. Each hex is given its properties according to a set of profiles. In this example the generation algorithm assigns a profile to a tile depending on the ‘heat’ of that tile, with some random variation.


Games like Civilisation and Minecraft appeal to me a lot, particularly their foundation in generating a world in a simple structure. This project was a simple test to see if I could use Unity to create something similar.

Working out how to position hexes, such that they tessellate, and working with the jagged-offset rows were the main challenges with this. If implemented for a game, it would ideally be quite easy to add new tiles and to manage the state of each position.

Each hex is a separate ‘gameObject’, this may come with a significant performance overhead on larger boards or more complex games.