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

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (1)

Collapse
 
kylestech95 profile image
Kyle A. • Edited

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

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay