This repo contains sample games built with FXGL Game Library. Each game focuses on one or two aspects of FXGL, e.g. Drop focuses on bare minimums, Pac-man focuses on AI, etc.
Checkout this commit for Java 8 code for all projects (FXGL 0.5.4). All projects will eventually be upgraded to Java 11 code (FXGL 11.0+).
Build
cd PROJECT_NAME
mvn package
This will produce a standalone executable with that project in target/
.
Most games are pre-built and can be downloaded from binaries.
Run
cd target/
java -jar PROJECT_NAME-VERSION.jar
OR simply double-click the jar file if the extensions are correctly set on your machine.
Contribute
These game demos are constantly upgraded, so feel free to fork and add something of your own.
Projects by difficulty
Beginner
- Cannon
- Drop
- Tower Defense
- Bomberman
- OutRun (in Kotlin)
- Shooter
- Space Runner
Intermediate
- GeoJumper (in Kotlin)
- Pong
- Breakout
- TicTacToe
- Battle Tanks
- Flappy Bird
- Slot Machine
Advanced
Community
You are very welcome to contribute to any of these games, or link to your own games. List of community developed games / demos: (Please add links below)
- FXGL based Idle Game by Daniel Künkel.