Skip to content

PengyuanZhao/snake-game

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published