Following on the earlier post I made about programming
hex maps for games, I have taken a stab at a Java program that generates
different sized maps. You can download the zip
file here. If you’ve got a recent version of the JRE (1.5), this should
work for you out of the box by double clicking on it. Otherwise, you can run
it by unpacking the archive and typing “java -jar HexMap.jar”.
This toy just generates hex maps according to adjustable parameters. Hit the “Repaint” button to see the glory.
In a future post, I’ll be explaining the math and heuristics I used. I’ll also make the source code available then. However, there are better implementations I have in mind for this. Eventually, I should be able to emit an actual game that uses this work. No time, no time. Sigh.