Badass Runtime Plugin - Pacman Example
This project shows how to use the Badass Runtime Plugin to create a custom runtime image and a platform-specific installer for a non-modularized application. Our example application is Almas Baimagambetov's Pacman. This application is available in the FXGLGames repository, which includes several games based on his awesome FXGL game library.
From the releases page download the archived custom runtime image for your operating system.
Unpack the archive and execute the
pacman script found in the
Creating a custom runtime image
Gradle must use Java 11 in order to be able to build the project. To create the custom runtime image execute:
This command creates the runtime image in the
build/pacman directory and a zip file of it in
The start scripts are found in the
(Before creating the runtime image, the Gradle script creates a clone of the FXGLGames repository in the
This may take several minutes. Be patient.)
You can easily adjust the
build.gradle script if you want to create a runtime image for another game from the FXGLGames repository.
Creating a platform-specific installer
To create the platform-specific installer execute:
The generated platform-specific installers are found in the