Welcome to the repository for a Snake Game, a classic arcade game implemented in Java. This project is designed to provide a simple yet entertaining gaming experience, while demonstrating object-oriented design principles. This is my first larger project and my first video game. I built this game based off of GamesWithGabe's Youtube Snake tutorial and added some little features, such as a highscore, game music and and a pause menu.
- Classic Gameplay: Guide the snake to eat food and grow in length. Avoid colliding with the walls or the snake's own tail.
- Difficulty Stages: The game includes multiple difficulty stages that increase the speed of the snake as the player progresses.
- High Score Tracking: Scores are tracked between sessions, and the player's high score is displayed on the main menu.
- Pause and Resume: Players can pause the game at any moment and resume where they left off.
To run this game, you'll need to have Java installed on your machine. Follow these steps to get the game up and running:
- Clone the repository:
git clone https://github.com/sophie4075/snake.git
- Navigate to the cloned directory:
cd snake - Compile the Java code:
javac *.java - Run the game;
java Main
After starting the game, use the arrow keys to control the direction of the snake. Eat as many pieces of food as possible to increase your score. Avoid colliding with the walls or the snake itself.
- Thanks to Gabe from GamesWithGabe: https://www.youtube.com/c/GamesWithGabe for providing a great tutorial with good explenations! :)
Music Credits <3 :
- Start/Game Over Menu: 8 Bit Nostalgia - by David Renda via https://www.fesliyanstudios.com/
- Game Scene: Arcade Kid - by David Renda via https://www.fesliyanstudios.com/
- Pause Menu: Local Forecast – Elevator by Kevin MacLeod via https://www.fesliyanstudios.com/