criticguy/Snake

Snake game made in html css js

โ˜… 0Forks 0JavaScriptGitHub โ†—Compare

Project website โ†—

README

Snake Game

A simple Snake Game built using HTML, CSS, and JavaScript.

Features

  • Classic snake game mechanics
  • Responsive and modern UI
  • Best score tracking using local storage
  • Smooth animations and effects
  • Playable with arrow keys

How to Play

  1. Open index.html in a web browser.
  2. Click the "Start Game" button.
  3. Use the arrow keys to control the snake:
    • Up Arrow: Move up
    • Down Arrow: Move down
    • Left Arrow: Move left
    • Right Arrow: Move right
  4. Eat the red food to grow and increase your score.
  5. Avoid colliding with the walls or yourself.
  6. The game ends when the snake collides with the wall or itself. The best score is saved automatically.

Project Structure

๐Ÿ“ฆ Snake Game
โ”œโ”€โ”€ index.html    # Main HTML file
โ”œโ”€โ”€ styles.css    # Styling for the game UI
โ”œโ”€โ”€ script.js     # Game logic and functionality

Installation & Usage

No installation is required! Just open the index.html file in your browser and start playing.

License

This project is open-source and free to use.

Contributors

criticguy

Issues