Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beryx/fxgl-sliding-puzzle
A Java 11+ sliding puzzle game using the FXGL library
https://github.com/beryx/fxgl-sliding-puzzle
fxgl javafx jpackage sliding-puzzle-game
Last synced: 3 months ago
JSON representation
A Java 11+ sliding puzzle game using the FXGL library
- Host: GitHub
- URL: https://github.com/beryx/fxgl-sliding-puzzle
- Owner: beryx
- License: apache-2.0
- Created: 2019-02-13T22:43:59.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-16T15:56:29.000Z (over 4 years ago)
- Last Synced: 2024-11-02T07:20:28.476Z (4 months ago)
- Topics: fxgl, javafx, jpackage, sliding-puzzle-game
- Language: Java
- Homepage:
- Size: 2.22 MB
- Stars: 18
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
## FXGL Sliding Puzzle
=== Getting started
[cols="49a,2a,49a",frame=none,grid=none]
|====
|
To start the application execute:----
./gradlew run
----You can move the tiles using the arrow keys or the mouse. Have fun!
|
|
image:https://raw.githubusercontent.com/beryx/fxgl-sliding-puzzle/master/img/snapshot-small.png[role="thumb" width="240" link="https://raw.githubusercontent.com/beryx/fxgl-sliding-puzzle/master/img/snapshot.png"]
|======= Creating application packages/installers
Packages for Linux, macOS, and Windows are created automatically by GitHub Actions - see for example https://github.com/beryx/fxgl-sliding-puzzle/actions/runs/183513751[these packages]. Read the instructions below to see how to create them yourself.The Gradle build script uses the https://github.com/beryx/badass-jlink-plugin/blob/master/README.md[badass-jlink plugin], which is able to create application packages/installers. Under the hood, it calls the https://jdk.java.net/jpackage/[jpackage] tool introduced in Java 14, so you need to install jpackage on your machine.
On Windows you also need to install http://wixtoolset.org/releases/[WIX], which is required to generate msi or exe packages.You also need to specify the home of your jpackage distribution in the BADASS_JLINK_JPACKAGE_HOME environment variable. Alternatively, you can explicitly configure this location in
https://github.com/beryx/fxgl-sliding-puzzle/blob/490bf0fe35e27493640e647e92390cf7d15a11be/build.gradle#L26-L27[build.gradle].[cols="49a,2a,49a",frame=none,grid=none]
|====
|
After that, you can execute:
----
./gradlew jpackage
----The application installers will be available in the `build/jpackage` directory.
.Example (Windows)
----
build\jpackage\fxgl-sliding-puzzle-1.0.msi
----|
|
image:https://raw.githubusercontent.com/beryx/fxgl-sliding-puzzle/master/img/installer-thumb.png[role="thumb" link="https://raw.githubusercontent.com/beryx/fxgl-sliding-puzzle/master/img/installer.gif"]
|====On Windows, it's recommended to run the installed application as administrator.