This is a responsive React.js snake game project.
The game is deployed to my GitHub Page: https://jundesu.github.io/snake_game/
You can play it on a mobile or desktop browser.
- Mobile: control the snake by the virtual buttons.
- Desktop: both virtual buttons and real keyboard can control the snake.
- Click the start button to play the game.
- Eat an item to get one point.
- Each item eaten makes the snake longer.
- The movement speed will be increased when the score rises.
- The game is over when the snake hits itself or the border. You will see the shaking snake CSS animation then click the start button to restart game.
This project is deployed to GitHub Pages by gh-pages module.
Install, build and deploy the /build directory:
npm install
npm run deploy

