Logo

dev-resources.site

for different kinds of informations.

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

Published at
12/5/2024
Categories
java
javafx
fxgl
gamedev
Author
fdelporte
Categories
4 categories in total
java
open
javafx
open
fxgl
open
gamedev
open
Author
9 person written this
fdelporte
open
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.

javafx Article's
30 articles in total
Favicon
GUI Design with JavaFX Layout Managers
Favicon
Give your app a modern look with FxPopup
Favicon
JavaFX In Action #12 with Steve Hannah about jDeploy, to distribute your Java app as a native bundle
Favicon
JavaFX In Action #11 with Almas Baim about FXGL, a multipurpose game library for JavaFX
Favicon
JavaFX In Action #10 with Clément de Tastes about QuarkusFX, combining the strengths of Quarkus and JavaFX
Favicon
OSD Final Chapter: Part 3
Favicon
OSD Final Chapter: Part 2
Favicon
JavaFX In Action #8 with Ulas Ergin: How JavaFX helps to migrate from Swing to React UIs, all combined in one Java app
Favicon
Desktop E-commerce Application
Favicon
JavaFX Dock project
Favicon
JavaFX In Action with Daniel Zimmermann about JavaFX and Kotlin
Favicon
JavaFX In Action with Pedro Duque Vieira, aka Duke, about Hero, PDFSam, FXThemes, FXComponents,...
Favicon
JavaFX In Action with Christopher Schnick about XPipe, an app to manage all your servers
Favicon
JavaFX In Action with Robert Ladstätter about LogoRRR, a cross-platform log analysis tool
Favicon
Devlog - Creating a MVCI JavaFX Application
Favicon
Book review - Frontend Development with JavaFX and Kotlin
Favicon
Search in Documentation with a JavaFX ChatGPT-like LangChain4j Application
Favicon
How to assign shortcut to a button in fxml
Favicon
A JavaFX Game Application in a Single Java File with JBang and FXGL
Favicon
How to Create an Executable .jar file for JavaFX using Maven
Favicon
How to use the JavaFX library Medusa to display weather data
Favicon
JavaFX en Eclipse
Favicon
JFxBorderlessNative provide Windows Native Aero Snap support for UNDECORATED view in JavaFx
Favicon
How to Set Up JavaFX in IntelliJ IDEA with Maven
Favicon
Arabic Text Rendering Issues in JavaFX
Favicon
Hide JavaFX FXML Warnings in IntelliJ IDEA
Favicon
Using Sass in your JavaFX project
Favicon
Animating using sliders in JavaFX and SceneBuilder
Favicon
Multithreading example with video play by JavaFx
Favicon
Idaesbasic - An all in one project manager

Featured ones: