/snake-game

Primary LanguageJavaScript

Demo

https://qqpk2pom9q.codesandbox.io/

Get Started

  • npm run build then open /dist/index.html. Or, npm start to start the dev server.

Game Controls

  • Left
  • Right
  • Up
  • Down
  • Space Pause
  • Enter Restart

Next Steps

  • Debounce keydown to prevent direction from changing multiple times before next move.
  • Make game field responsive. e.g. Limit TOTAL_ROWS and TOTAL_COLS on small screens.
  • Make game settings configurable
  • Better UI/UX

* Dev environment: node 6.11.2, npm 5.6.0