NicCLIM Hextille movement now works in general


Before, I had gotten my odd/even hextille row movement a bit confused and only tested it in an odd row.

The way movement works in NicCLIM in general is you hold down some modifier keys, and use hjkl to move single steps.

M-S-h, M-S-j, M-S-k, M-S-l where M is alt- and S is shift- moved 4-connected steps in a rectangular grid. However we need two more directions for hextille (hexagons instead of rectangles).

So j/down and k/up classic now go southwest and northeast, but with control held down, they switch to southeast and northwest respectively.

I tried it, it works fine. [].

Just to look at how the grid works quickly:

Previously I had

a b c
d e f
g h i

a rectangular grid with obvious hjkl left-down-up-right movement. But now I have

a b c
 d e f
g h i

So I needed to split j and k into south-east and south-west, and north-east and north-west. Since e has neighbours: ((west . d) (northwest . b) (northeast . c) (east . f) (southeast . i) (southwest . h)).

Minor patch, though movement is obviously important.

In other news, at least on my openbsd my with-translation every other row seems not to be working, though on linuxes it seems to be fine.

Files

nicclim.lisp 41 kB
1 day ago

Get NicCLIM - Map Editor

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.