Awesome Open Source
Awesome Open Source






JavaFX Game Development Framework

Maven Central Build Status codecov sponsor


  • No installation or setup required
  • "Out of the box": Java 8-17, Win/Mac/Linux/Android 8+/iOS 11.0+/Web
  • Simple and clean API, higher level than other engines
  • Superset of JavaFX: no need to learn new UI API
  • Real-world game development techniques: Entity-Component, interpolated animations, particles, and many more
  • Games are easily packaged into a single executable .jar or native images

Good for:

  • Any 2D game (side-scroller / platformer / arcade / RPG)
  • Any business application with complex UI controls / animations
  • Experimental 3D
  • Hobby / academic / commercial projects
  • Teaching / learning / improving game development skills
  • Fast prototyping of app ideas

Minimal Example

public class BasicGameApp extends GameApplication {

    protected void initSettings(GameSettings settings) {
        settings.setTitle("Basic Game App");

    public static void main(String[] args) {

Getting Started

For a quick dive into code, see standalone basic examples. Otherwise, see:


  • Maven template project if you use Java and/or Kotlin (Java 17+)

Make sure to set <release>17</release> for maven-compiler-plugin.


Note: use 0.5.4 for Java 8-10 and 11.17 for Java 11-16.


  • Gradle template project if you use Java and/or Kotlin (Java 17+)

Please refer to the template if there are any errors.

repositories {

dependencies {
    compile 'com.github.almasb:fxgl:17.2'

Note: use 0.5.4 for Java 8-10 and 11.17 for Java 11-16.


If you wish to develop a modular application, here's a complete example of your

open module {
    requires com.almasb.fxgl.all;

Uber jar

Download the latest uber jar from Releases


  • University of Brighton, UK
  • University of Nottingham, UK
  • Georgia Institute of Technology, USA
  • kidOYO, USA
  • Walton High School, USA
  • Conant High School, USA
  • Zealand Institute of Business and Technology, Denmark
  • Federal Institute of Education, Science and Technology of Rio Grande do Sul, Brazil
  • FHNW School of Engineering / Computer Science, Switzerland

If your institution wants to use or is using FXGL, add a note in the Chat to be added to the list.

Community tutorials:

Community projects (identified using fxgl topic):

If you'd like your project featured here, just add a note in the Chat.

Development Team

Description of roles is given in the Contribution Guide.

Maintainers (Collaborators):



Contribution & Support

If you want to build FXGL from sources or want to contribute, please see the Contribution Guide (including non-code). FXGL is fully modular, so new contributors do not need to understand the entire codebase, only the module to which the contribution is made. Contributions will be reviewed in accordance with the Code of Conduct.

You can support the FXGL development or show interest by simply starring the repo or becoming a sponsor.



  • @Marsl10
  • @SergeMerzliakov
  • @mbains
  • @sabit86
  • @hendrikebbers
  • @ImperaEtConquer
  • @thejeed


  • @karakun


Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Java (411,965
Game (83,603
Kotlin (53,336
Web (37,744
Tutorial (23,811
3d (18,100
Gradle (13,063
2d (9,118
Game Development (7,468
Gamedev (7,468
Game Engine (4,837
Javafx (3,809
Uber (1,587
2d Game Engine (234
3d Game Engine (107
2d Game Framework (48
Fxgl (16
2d Framework (16