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
Get NicCLIM - Map Editor
NicCLIM - Map Editor
GUI / CLI symbolic map editor. Made with Lisp!
Status | In development |
Category | Tool |
Author | screwtape |
Tags | common-lisp, common-lisp-interface-manager, expert-system, file-editor, Graphical User Interface (GUI), map-editor, mcclim |
More posts
- NicCLIM 3/3 Alpha release notes. Make map, lambdas in map, pick up and use lambd...45 minutes ago
- Part 2 of NicCLIM lisp map editor's alpha diatribe is up (short version here)19 hours ago
- NicCLIM Common lisp Map Editor entering Alpha1 day ago
- Notes about NicCLIM common lisp interface manager spec map editor15 days ago
- First version of NicCLIM demo41 days ago
- NicCLIM house, yard, street, map editor, initial, example43 days ago
Leave a comment
Log in with itch.io to leave a comment.