JavaFX Game Development Framework
- No native libraries, no setup required
- Simple and clean API
- Brings real-world game development techniques to JavaFX
- Desktop 2D / casual games
- Hobby / academic / commercial projects
- Learning / improving game development skills
- Fast prototyping of game ideas
- 3D, mobile or web
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);
}
}
- Written tutorials - Wiki
- Video tutorials - YouTube
- The Samples module is constantly updated with feature demos
- Advanced examples - FXGLGames
- Pre-built game demos (standalone .jar) - Games
<dependency>
<groupId>com.github.almasb</groupId>
<artifactId>fxgl</artifactId>
<version>0.3.2</version>
</dependency>
repositories {
mavenCentral()
}
dependencies {
compile 'com.github.almasb:fxgl:0.3.2'
}
Latest pre-compiled uber jar can be found in Releases
Contribute to FXGL, or support FXGL on Gratipay. Alternatively star the repo to show interest.