Skip to content

The Snake game is a classic arcade-style game built with JavaScript, HTML5, and CSS3, where the player controls a growing snake that moves continuously on a grid. The objective is to consume randomly appearing food that causes the snake to lengthen, while avoiding collisions with the walls . The game features smooth controls W,A,S,D or arrow keys

Notifications You must be signed in to change notification settings

abhiraj1027/Snakes-In-Js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Snake Game

A classic Snake Game built using HTML, CSS, and JavaScript. This project recreates the nostalgic arcade experience with smooth controls, responsive design, and clean visuals — all crafted from scratch without external game libraries.


🎮 Features

  • Smooth and responsive gameplay
  • Score tracking and real-time updates
  • Dynamic speed increase as the snake grows
  • Simple yet modern UI with clean visuals
  • Restart and game-over logic implemented using pure JavaScript

🧱 Tech Stack

  • HTML5 for the game structure
  • CSS3 for layout, design, and animations
  • Vanilla JavaScript (ES6+) for logic and interactivity

🚀 How to Play

  1. Use Arrow Keys to move the snake:
    • ⬆️ Up/W
    • ⬇️ Down/S
    • ⬅️ Left/A
    • ➡️ Right/D
  2. Eat the food to grow longer and increase your score.

Tip: The faster you grow, the quicker it gets!


About

The Snake game is a classic arcade-style game built with JavaScript, HTML5, and CSS3, where the player controls a growing snake that moves continuously on a grid. The objective is to consume randomly appearing food that causes the snake to lengthen, while avoiding collisions with the walls . The game features smooth controls W,A,S,D or arrow keys

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published