/FXGL

Java / JavaFX / Kotlin Game Library (Engine)

Primary LanguageJavaMIT LicenseMIT

promo

What?

JavaFX Game Development Framework

Maven Central Javadoc CI Coverage Codacy

Why?

  • No native libraries, no setup required
  • Simple and clean API
  • Brings real-world game development techniques to JavaFX

Good for ...

  • Desktop 2D / casual games
  • Hobby / academic / commercial projects
  • Learning / improving game development skills
  • Fast prototyping of game ideas

Not so good for ...

  • 3D, mobile or web

Features

Minimal Example

public class BasicGameApp extends GameApplication {

    @Override
    protected void initSettings(GameSettings settings) {
        settings.setWidth(800);
        settings.setHeight(600);
        settings.setTitle("Basic Game App");
    }

    public static void main(String[] args) {
        launch(args);
    }
}

Getting Started

Maven

  • Maven project if you use Java
  • Maven project if you use Kotlin

Already have pom.xml? Then add:

<dependency>
    <groupId>com.github.almasb</groupId>
    <artifactId>fxgl</artifactId>
    <version>0.3.7</version>
</dependency>

Gradle

  • Gradle project if you use Java
  • Gradle project if you use Kotlin

Already have build.gradle? Then add:

repositories {
    jcenter()
}

dependencies {
    compile 'com.github.almasb:fxgl:0.3.7'
}

Uber jar

Download latest uber jar from Releases

Contribution

Contribute to FXGL, or support FXGL on Gratipay. Alternatively star the repo to show interest.

Contact

Chat Gmail Survey Survey2