DEV Community

Frank Delporte
Frank Delporte

Posted on • Originally published at webtechie.be

JavaFX In Action #11 with Almas Baim about FXGL, a multipurpose game library for JavaFX

In the "JFX In Action" interviews, we already saw many business use cases of JavaFX. Let's take a side step and look at game development. FXGL is a library that helps us create JavaFX games. But it's much more than games! With the integrated Goal-Oriented Action Planning (GOAP) functionality, it can use game technology and AI to solve any kind of goal based on actions and preconditions.

In this video, Almas live-codes a fully working GOAP example application!

About Almas

Almas Baim is Computing and Maths Department Lead at the University of Brighton and the creator of the JavaFX game library FXGL.

You can find him on LinkedIn and Twitter.

About FXGL

FXGL is a JavaFX Game Development Framework with the following highlights:

  • No installation or setup is required
  • "Out of the box": Java 8-21, 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

You can use it 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

You can find the sources of FXGL on GitHub with a lot of examples in the fxgl-samples directory.

Various FXGL applications in one screenshot

The sources of the GOAP-example are available in a GutHub Gist as a single-file application that can be executed with JBang with the command jbang FXGLGoapExample.java.

Screenshot of the GOAP demo

Video content

00:00 Who is Almas?

00:20 What is FXGL?

01:07 Several demo FXGL applications

05:53 Live coding a GOAP application, Goal Oriented Action Planning

28:16 Conclusion

More JFX In Action...

Click here for more posts with JFX In Action videos.

Top comments (0)