Skip to content

chris-jeune/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

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.

Features:

  • 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.

Demo

Snake.Game.mp4

Getting Started:

  1. Clone the Repository: Clone this repository to your local machine using the following command:
    git clone https://github.com/chris-jeune/Snake-Game.git
    
  2. Open the Project: Open the project in your favorite Java IDE (e.g., IntelliJ IDEA, Eclipse).
  3. 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.
  4. Run the Game: Run the Main.java file to launch the Simple Snake Game.
  5. 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.
  6. Restart: Click the restart button to play again after the game ends.

Requirements:

  • jre 1.8
  • JavaFX Library
  • Java IDE (IntelliJ IDEA, Eclipse, etc.)

Enjoy the Game!

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.

About

A basic snake game made with java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published