Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fdelporte/jbangfxgldemo
Demo application to show how JBang can be used to run an FXGL demo
https://github.com/fdelporte/jbangfxgldemo
Last synced: 7 days ago
JSON representation
Demo application to show how JBang can be used to run an FXGL demo
- Host: GitHub
- URL: https://github.com/fdelporte/jbangfxgldemo
- Owner: FDelporte
- License: apache-2.0
- Created: 2023-12-05T14:31:19.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-04T15:43:27.000Z (11 months ago)
- Last Synced: 2024-10-18T19:43:13.565Z (about 1 month ago)
- Language: Java
- Size: 543 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JBangFXGLDemo
Demo application to show how JBang can be used to run an [FXGL](https://github.com/AlmasB/FXGL) demo game application written with Java, JavaFX, and FXGL.
Based on the Maven project [github.com/FDelporte/JavaMagazineFXGL](https://github.com/FDelporte/JavaMagazineFXGL), which is fully described in "[Look out, Duke! Part 1: Build a Java game with JavaFX and FXGL](https://blogs.oracle.com/javamagazine/post/look-out-duke-part-1-how-to-build-a-java-game-with-javafx-and-the-fxgl-library)".
## Run the Application
### JBang
Make sure you have JBang installed, see [jbang.dev](https://www.jbang.dev/download/).
### JDK with JavaFX
An SDK with bundled JavaFX is needed, use [SDKMAN](https://sdkman.io/) to install such a version:
```bash
$ curl -s "https://get.sdkman.io" | bash
$ source "$HOME/.sdkman/bin/sdkman-init.sh"
$ sdk install java 21.0.1.fx-zulu
```### Execute the application
```bash
$ git clone https://github.com/FDelporte/JBangFXGLDemo.git
$ cd JBangFXGLDemo
$ jbang JBangFXGLDemo.java
```