DEV Community

Cover image for ReactJS - Classic Snake
Kyle A.
Kyle A.

Posted on • Updated on

ReactJS - Classic Snake

Classic Snake Game accessible for Desktop & Mobile play.


Languages:

  1. HTML
  2. React JS
  3. Javascript
  4. CSS

Desktop
Snake game for desktop

Play the Game: https://kylestech95.github.io/snake-game/
Source Code: https://github.com/KylesTech95/snake-game
Clone Ref: https://github.com/KylesTech95/snake-game.git

Mobile (Portrait)
Snake play portrait view

Play the Game: https://kylestech95.github.io/snake-game/
Source Code: https://github.com/KylesTech95/snake-game
Clone Ref: https://github.com/KylesTech95/snake-game.git

Mobile (Landscape)
Snake play landscape view

Play the Game: https://kylestech95.github.io/snake-game/
Source Code: https://github.com/KylesTech95/snake-game
Clone Ref: https://github.com/KylesTech95/snake-game.git

Features

  • Never-ending Fun
  • Score Tracking
  • Automatic-Type Animation (Desktop view)
  • Game over screen with the option to restart
  • Keyboard/Touch Controls on Desktop & Mobile

What makes this version of Snake unique?
As snake, you are given the chance to move through your body (provided by an empty space) without collapsing.

Snake moving through body (empty space) without collapsing

Snake Controls

  • Use the arrow keys or W,A,S,D keys on your keyboard to update the snake's position :

↑ (Up) or W - Move Up
↓ (Down) or S - Move Down
← (Left) or A - Move Left
β†’ (Right) or D - Move Right

Top comments (1)

Collapse
 
kylestech95 profile image
Kyle A. • Edited

Any input/forking is appreciated! I release my code for educational & collaborative use.