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.
- Use the arrow keys on your keyboard to control the movement of the snake.
- Guide the snake to eat the food represented by a dot (
•
) on the screen. - Each time the snake eats food, it will grow longer.
- Avoid colliding with the walls or the snake's own body, as this will end the game.
- The game speed may increase as the snake grows longer, making it more challenging.
- HTML5
- CSS3
- Javascript
- Vite
To set up the project for local development, follow these steps:
-
Clone this repository to your local machine:
git clone https://github.com/Lelin07/snake-game.git
-
Navigate to the project directory:
cd snake-game
-
Open the
index.html
file in your preferred web browser. -
Make changes to the JavaScript, HTML, or CSS files as needed.
-
Reload the browser to see the changes in action.
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 are welcome! If you have any suggestions, feature requests, or bug reports, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. Feel free to use and modify the code as needed.