Skip to content

Indomet/SnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Features

  • Smooth movement & collision detection
  • Classic snake mechanics with score tracking
  • JavaFX UI with animations
  • Modular and maintainable game logic

Prerequisites

Before running the game, ensure you have:

Project Setup

  1. Clone or download the project

    git clone https://github.com/danielvdh24/serpent.git
    cd serpent-game
  2. Download and extract JavaFX SDK 17

    • Place the extracted javafx-sdk-17 inside the project folder (where pom.xml is).
  3. Build the project with Maven

    mvn clean package

Running the Game

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

Make sure the path to JavaFX SDK is correct based on where you placed it.

Contributers


Asim
@mehmetas

Erik
@eriknis

Rizwan
@rizwanra

Marko
@mojsov

Daniel
@heuvel

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages