Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow keyboard controls #58

Open
mabhub opened this issue Sep 6, 2022 · 2 comments
Open

Allow keyboard controls #58

mabhub opened this issue Sep 6, 2022 · 2 comments

Comments

@mabhub
Copy link

mabhub commented Sep 6, 2022

…maybe usings arrows , space ?

@gereleth
Copy link
Owner

gereleth commented Sep 7, 2022

I assume arrows would move the viewbox around, right?
What does space do? ))

I can imagine playing this Factorio-style with right hand on the mouse and left hand on the keyboard. Then the controls could be something like this:

Move the viewbox - WASD (arrows too maybe)
Zoom in / out - R/F (?)
Rotate hovered tile clockwise / counter-clockwise - Q/E (?)
Lock or unlock hovered tile - Space

I doubt I'd actually use keys to rotate tiles but navigating around may be handy).

@Jaybrainer
Copy link

Here's my idea for a keyboard layout:
include keys for each of C, 180, and CC rotation (I suggest something like the keys l;', to be used with right hand)
a hexagonal layout of keys for each cell around the current cell (perhaps WEADZX)
a pin key (SPACE, or maybe S because it is in the middle of the cell movement keys)

Have the viewbox auto-center on the currently selected cell.

Pick whatever you want for zoom in/out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants