FXGL is a Java, JavaFX, and Kotlin game library and framework for building 2D games and animated business UIs without a separate install step.
Overview
FXGL is a JavaFX-oriented game development framework for JVM languages such as Java and Kotlin. It targets hobby, academic, and commercial projects where teams want a higher-level API than raw JavaFX while staying on familiar desktop and mobile JVM runtimes.
The project describes itself as working out of the box across Java 8 through current Java releases on Windows, macOS, Linux, Android, iOS, and web targets. It builds on JavaFX so game and UI code can reuse JavaFX concepts instead of learning a wholly separate UI stack.
Gameplay-oriented features mentioned in the docs include entity-component style organization, interpolated animations, particles, and related techniques. Games can be packaged into a single executable JAR or native images. The authors also note experimental 3D support and suitability for complex animated business applications.
Getting started is oriented around Maven or Gradle dependencies, sample demos, wiki tutorials, and a minimal GameApplication subclass. Universities and community projects are listed as users, and optional modular Java setup is documented for larger applications.
Key features
- JavaFX-based game framework API
- Entity-component style game structure
- Interpolated animations and particles
- Single JAR or native image packaging
- Maven and Gradle dependency templates
- Modular Java application support
- Documented wiki and sample demos
- 2D focus with experimental 3D
Use cases
- 2D platformers and arcade-style games
- Teaching game development in classrooms
- Fast prototypes of interactive app ideas
- Business apps with complex UI animation
- Side-scroller or RPG-style JVM games