Skip to content

jundesu/snake_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game Challenge

This is a responsive React.js snake game project.

The game is deployed to my GitHub Page: https://jundesu.github.io/snake_game/

Screen Shot 2022-04-05 at 17 25 09

Screen Shot 2022-04-05 at 18 48 12

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.

Rules

  1. Click the start button to play the game.
  2. Eat an item to get one point.
  3. Each item eaten makes the snake longer.
  4. The movement speed will be increased when the score rises.
  5. 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.

Build and Deploy

This project is deployed to GitHub Pages by gh-pages module.

Install, build and deploy the /build directory:

npm install
npm run deploy

About

React snake game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors