Skip to content

A classic Snake Game implemented in JavaScript. Control the snake, eat food, and avoid collisions. Created for learning and fun. For more details, refer to the README.md file.

Notifications You must be signed in to change notification settings

Lelin07/snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

Welcome to the Snake Game project! This project was developed to understand the core concepts of logic building and grasp the basics of JavaScript. As I continue to learn and grow, I plan to expand this project with additional features, potentially including a multiplayer mode.

How to Play

  1. Use the arrow keys on your keyboard to control the movement of the snake.
  2. Guide the snake to eat the food represented by a dot () on the screen.
  3. Each time the snake eats food, it will grow longer.
  4. Avoid colliding with the walls or the snake's own body, as this will end the game.
  5. The game speed may increase as the snake grows longer, making it more challenging.

Technologies Used

  • HTML5
  • CSS3
  • Javascript
  • Vite

Local Development Setup

To set up the project for local development, follow these steps:

  1. Clone this repository to your local machine:

    git clone https://github.com/Lelin07/snake-game.git
  2. Navigate to the project directory:

    cd snake-game
  3. Open the index.html file in your preferred web browser.

  4. Make changes to the JavaScript, HTML, or CSS files as needed.

  5. Reload the browser to see the changes in action.

Future Enhancements

Here are some features and improvements that I plan to add in the future:

  • Implementing additional game mechanics to enhance gameplay.
  • Adding different levels of difficulty.
  • Including sound effects and background music.
  • Implementing a multiplayer mode for added excitement.

Contributions

Contributions are welcome! If you have any suggestions, feature requests, or bug reports, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License. Feel free to use and modify the code as needed.

About

A classic Snake Game implemented in JavaScript. Control the snake, eat food, and avoid collisions. Created for learning and fun. For more details, refer to the README.md file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published