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

Add GamePad support. #2

Merged
merged 3 commits into from
Oct 25, 2019
Merged

Add GamePad support. #2

merged 3 commits into from
Oct 25, 2019

Conversation

ceranco
Copy link
Owner

@ceranco ceranco commented Oct 24, 2019

Adds GamePad support as per #1.

  • Controlling the snake.
  • Update the endgame prompt.
  • Support restarting the game.
  • Support quitting the game.

* Added "constructor" for `Direction` from `Button`.
* Fixed bug where pressing `Return` restarted the game event if it
  wasn't over.
@ceranco ceranco marked this pull request as ready for review October 25, 2019 21:58
@ceranco ceranco merged commit 8f1a891 into master Oct 25, 2019
@ceranco ceranco deleted the gamepad-support branch October 25, 2019 21:59
@ceranco ceranco mentioned this pull request Oct 25, 2019
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

Successfully merging this pull request may close these issues.

1 participant