This project is related to See Common Lisp terrain generator and also a part of my interest in turn-based strategy games based on hexagonal grids. Another point in common is that it is also based on Amit Patel’s “Implementation of Hex Grids”.
The project uses Sketch for an interactive example of what can be done:
It can be loaded using Quicklisp:
* (ql:quickload "cl-hexgrid-examples") To load "cl-hexgrid-examples": Load 1 ASDF system: cl-hexgrid-examples ; Loading "cl-hexgrid-examples" .................................................. [package cl-hexgrid].............................. [package cl-hexgrid-examples].. ("cl-hexgrid-examples")
There are still some missing things, considering the reference guide, but while I think I will eventually get to them, they were outside my initial scope (e.g., visibility calculation). On the other hand, I have added a couple of small additions, like an initial conversion to the coordinate system used in D&D’s World of Greyhawk.
The source can be found at Codeberg.