Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Vanilla JS Snake Game

A classic Snake game built using pure JavaScript, CSS, and HTML5. This project demonstrates modular coding practices, game loop implementation, and coordinate-based collision detection.

🕹️ Features

  • Smooth Movement: Frame-rate independent game loop for consistent speed.
  • Dynamic Growth: Snake grows in length upon consuming food.
  • Collision Logic: Detects wall hits and self-collisions.
  • Clean Architecture: Divided into modules (snake.js, food.js, input.js) for maintainability.

🛠️ Tech Stack

  • HTML5 Canvas/Grid: For rendering.
  • Vanilla JavaScript: No external libraries or frameworks.
  • CSS3: For styling and responsive layout.

🚀 How to Play

  1. Open index.html in any modern web browser.
  2. Use the Arrow Keys to control the snake.
  3. Eat the food to grow and increase your score.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages