A plea for scancodes
Guys and girl(s), when you make a game with keyboard input, please remember that not everybody is using a qwerty keymap. There are others, like azerty (French), qwertz, bépo, dvorak, and another one whose name I forgot.
So for example wasd for movement is pretty terrible and totally unplayable on an azerty keyboard… *Unless* you use scancodes and not ascii codes to bind keys to actions. That is to say, use the position of the key on the keyboard and not the letter that’s printed on it.
How to do that will depend on your framework/engine/OS of choice.
Other solutions:
– use non-moving keys like shift, alt, ctrl, space, the arrows, return, etc. (Some combinations can be problematic, for example DOWN+LEFT+CTRL doesn’t work here.)
– let the player choose his or her key mappings.
I can change my keymap to qwerty before playing your game, and set it back to azerty after, but it’s a pain…