DEV Community

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

Posted on • Edited 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

SurveyJS custom survey software

Build Your Own Forms without Manual Coding

SurveyJS UI libraries let you build a JSON-based form management system that integrates with any backend, giving you full control over your data with no user limits. Includes support for custom question types, skip logic, an integrated CSS editor, PDF export, real-time analytics, and more.

Learn more

Top comments (1)

Collapse
 
kylestech95 profile image
Kyle A. • Edited

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

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs