Serpent is a classic snake game built with JavaFX and Maven. This project was designed to be modular, interactive, and fun while improving my understanding of game loops, event handling, and UI development.
- Smooth movement & collision detection
- Classic snake mechanics with score tracking
- JavaFX UI with animations
- Modular and maintainable game logic
Before running the game, ensure you have:
- Java 17 or later
- Maven
- JavaFX SDK 17, which you can download from:
https://gluonhq.com/products/javafx/
-
Clone or download the project
git clone https://github.com/danielvdh24/serpent.git cd serpent-game -
Download and extract JavaFX SDK 17
- Place the extracted
javafx-sdk-17inside the project folder (wherepom.xmlis).
- Place the extracted
-
Build the project with Maven
mvn clean package
After building the project, run the following command:
java --module-path "javafx-sdk-17/lib" --add-modules javafx.controls,javafx.fxml -jar target/serpent-game-1.0-SNAPSHOT.jarMake sure the path to JavaFX SDK is correct based on where you placed it.
|
Asim @mehmetas |
Erik @eriknis |
Rizwan @rizwanra |
Marko @mojsov |
Daniel @heuvel |
