maandree / cnt

Coop Network Tetris, a university project.
maandree.github.com/cnt
4 stars 1 forks source link

Keyboard listening in GamePanel #24

Closed maandree closed 12 years ago

maandree commented 12 years ago

GamePanel should be able to send GameMoveCommand when the user uses the keyboard.

Agreed keys:

Left: GameMoveCommand.Move.LEFT Right: GameMoveCommand.Move.RIGHT Down: GameMoveCommand.Move.DOWN Space: GameMoveCommand.Move.DROP

Key suggestions (do what feels best):

Up: GameMoveCommand.Move.ANTICLOCKWISE Shift+Up: GameMoveCommand.Move.CLOCKWISE S: GameMoveCommand.Move.ANTICLOCKWISE D: GameMoveCommand.Move.CLOCKWISE