flappy-svg icon indicating copy to clipboard operation
flappy-svg copied to clipboard

Keyboard Control

Open niccokunzmann opened this issue 8 years ago • 4 comments

Allow controlling the Flappy-Game only via Keyboard:

  • [x] change character via space
  • [x] change background via b
  • [x] start the game via ENTER
  • [ ] restart the game via space and ENTER when game is over
  • [ ] Document this in the how-to

niccokunzmann avatar Jan 12 '17 08:01 niccokunzmann

@niccokunzmann I would like to work on this :)

Marauderer97 avatar Jan 12 '17 13:01 Marauderer97

@Marauderer97 sure, please go ahead!

niccokunzmann avatar Jan 12 '17 13:01 niccokunzmann

@niccokunzmann I have implemented the first 3 points. As for the restart, handling two keystrokes at once was giving me trouble, so I used r key to restart the game. I decided to wait for your approval before modifying the how to play svg. :)

Marauderer97 avatar Jan 13 '17 16:01 Marauderer97

@Marauderer97 pls change the how to play to comply with the changes, we would also like to read your good PRs

abishekvashok avatar Jan 13 '17 16:01 abishekvashok