Skip to content

mokun/FXGL

 
 

Repository files navigation

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
  • Works with Java 8 and 9 "out of the box"

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.9</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.9'
}

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

About

Java / JavaFX / Kotlin Game Library (Engine)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 80.7%
  • Kotlin 18.2%
  • Other 1.1%