Skip to content

byomkesh03/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake-Game

Snake Game Using Pure HTML, CSS & JAVASCRIPT

Snake Game

Snake Game

Description

Snake Game is a classic arcade game where the player controls a snake and tries to eat as much food as possible without hitting the walls or its own body. This version of the game is created using HTML, CSS, and JavaScript.

Demo

You can play the game online by visiting the following link: here.

Features

Simple and intuitive gameplay Responsive design that works on desktop and mobile devices Smooth and fluid controls Score tracking to keep track of your progress Game over screen with the final score Sound effects for added immersion

Getting Started

To run the Snake Game locally on your machine, follow these steps:

  1. Clone the repository: git clone https://github.com/your-username/snake-game.git

  2. Open the index.html file in your preferred web browser.

    • Instruction to Play the Game :-

      1. Press any key to Play the Game.
      2. Use ArrowUp, ArrowDown, ArrowLeft, ArrowRight Keys to move the Snake.

Usage

Use the arrow keys on your keyboard to control the snake: up, down, left, and right. Try to eat the food (represented by red dots) to grow longer. Avoid hitting the walls or the snake's own body, as it will result in game over. The game ends when the snake collides with the walls or itself. After game over, you can restart the game by refreshing the page.

Customization

Feel free to customize the game according to your preferences. Here are a few suggestions:

Adjust the speed of the snake by changing the update interval in the JavaScript code. Modify the size and appearance of the snake and food by updating the CSS styles. Add additional features like power-ups or obstacles to make the game more challenging.

Contributing

Contributions are welcome! If you have any ideas or improvements, please open an issue or submit a pull request.

Acknowledgments

This game is inspired by the classic Snake Game from the Nokia mobile phones. Special thanks to the open-source community for providing helpful resources and inspiration.

Contact

If you have any questions or suggestions, feel free to reach out to me at byomkeshmahato03@gmail.com.

Thank you for playing Snake Game! Enjoy the game and have fun!

About

Snake Game Using Pure HTML, CSS & JAVASCRIPT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published