Skip to content

AshishKukreti2003/coding_snake_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

This is a classic Snake game built using HTML, CSS, and JavaScript.

Overview

The Snake Game is a fun and addictive game where the player controls a snake that moves around the board, eating food to grow while avoiding collisions with itself and the walls. The game features scorekeeping, music, and the ability to control the snake's movement using arrow keys.

Files

  • index.html: Contains the structure of the web page and sets up the game board.
  • css/style.css: Defines the styles for the game elements and layout.
  • js/index.js: Implements the game logic, including movement, collision detection, and scorekeeping using JavaScript.

Usage

To play the game:

  1. Open index.html in a web browser.
  2. Use the arrow keys to control the direction of the snake.
  3. Eat the food to grow the snake while avoiding collisions with the walls and itself.
  4. Try to achieve the highest score possible.

Features

  • Dynamic snake movement.
  • Food generation and snake growth mechanics.
  • Scorekeeping functionality to track the player's score.
  • Background music and sound effects.

High Score

The game keeps track of the highest score achieved during gameplay and displays it as the "Hi Score."

How to Run

Simply open the index.html file in a web browser to start playing the Snake Game.

Website Link

Visit the live game: Snake Game

Credits

  • Background image sourced from: Background Image
  • Sound effects obtained from the game are used for an interactive experience.

Feel free to contribute, report issues, or suggest improvements to this project!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published