lifelike/hexmapextension

Uneven row support

Opened this issue · 5 comments

Currently hexmapext generate the same amount of rows for each column.

Would you consider adding an option so that uneven rows could be generated.

For example instead of 17, 17, 17, 17, 17 rows, it would generate 17,16,17,16,17 rows.

I've briefly tried to hack this in myself, but I didn't get very far. The following sortof kinda has the effect I'd like:

if col % 2 == 0:
rows = rows + 1
else:
rows = rows - 1

However, this seems to break the vertices's at the outer edge.

This is a really good idea. Have seen some games have a grid like that. Any idea what the option should be called? It will not always be the uneven rows since it depends on if the first row starts "down" or not (and it is a bonus if the name also works when the grid is rotated 90 degrees, although some options already ignore that).

variable row length?

How about a "pattern"-tab?

I made a preview of a possible result and made the required addition pink:

hexbottom

OK. I think an even better name is needed.

Adding on odd or even columns will depend on the First column half-hex down setting.