This project is a basic snake game implemented using JavaFX and Scene Builder. Enjoy the nostalgia of controlling a snake as it moves around the game board, eating food to grow longer while avoiding collisions with itself and the walls.
- Classic Gameplay: Experience the classic gameplay of controlling a snake in a grid-based environment.
- User Controls: Control the movement of the snake using arrow keys or designated buttons in the user interface.
- Scoring System: Keep track of your score as the snake eats food and grows longer.
- Game Over Detection: Detect collisions with the snake's body or the game board's boundaries to end the game.
- Restart Option: Restart the game with the click of a button after the game ends.
Snake.Game.mp4
- Clone the Repository: Clone this repository to your local machine using the following command:
git clone https://github.com/chris-jeune/Snake-Game.git
- Open the Project: Open the project in your favorite Java IDE (e.g., IntelliJ IDEA, Eclipse).
- Set Up JavaFX: Make sure you have JavaFX set up in your IDE. If not, follow the instructions for setting up JavaFX in your specific IDE.
- Run the Game: Run the
Main.java
file to launch the Simple Snake Game. - Play the Game: Use the arrow keys or the designated buttons in the user interface to control the snake. Eat food to score points and avoid collisions to survive as long as possible.
- Restart: Click the restart button to play again after the game ends.
- jre 1.8
- JavaFX Library
- Java IDE (IntelliJ IDEA, Eclipse, etc.)
Thank you for exploring the Simple Snake Game repository. I hope you enjoy playing this snake game. If you find the game enjoyable, don't forget to leave a star ⭐️ on the repository.