Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/almasb/fxglgames
This repo contains sample games built with FXGL
https://github.com/almasb/fxglgames
2d android bomberman breakout flappy-bird fxgl games geometry-wars ios java javafx kotlin mario pacman pong space-invaders tic-tac-toe tower-defense
Last synced: 2 days ago
JSON representation
This repo contains sample games built with FXGL
- Host: GitHub
- URL: https://github.com/almasb/fxglgames
- Owner: AlmasB
- License: mit
- Created: 2015-12-29T11:24:49.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-28T17:55:39.000Z (12 months ago)
- Last Synced: 2024-12-22T10:05:57.368Z (2 days ago)
- Topics: 2d, android, bomberman, breakout, flappy-bird, fxgl, games, geometry-wars, ios, java, javafx, kotlin, mario, pacman, pong, space-invaders, tic-tac-toe, tower-defense
- Language: Java
- Homepage: http://almasb.github.io/FXGLGames/
- Size: 173 MB
- Stars: 832
- Watchers: 35
- Forks: 330
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
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](https://github.com/AlmasB/FXGLGames/commit/a0821c76ba4a7a64dba4f9ec6f182827d909561c) for Java 8 code for all projects (FXGL 0.5.4).
All projects will eventually be upgraded to Java 11 code (FXGL 11.0+).## Run
```bash
cd PROJECT_NAME
mvn javafx:run
```## Build for Mobile
Follow latest instructions from [client-samples](https://github.com/gluonhq/client-samples#build-and-run-the-samples). A relevant extract is copied below.
For example, to build Breakout for Android (can only build from Linux):
1. Download [GraalVM](https://github.com/graalvm/graalvm-ce-builds/releases/tag/vm-20.2.0) zip: `graalvm-ce-java11-linux-amd64-20.2.0.tar.gz`
2. Set `GRAALVM_HOME` and `JAVA_HOME` environment variables to the GraalVM installation directory. For example:
```
export GRAALVM_HOME=/opt/graalvm-ce-java11-20.2.0
export JAVA_HOME=$GRAALVM_HOME
```3.
```
cd Breakout
mvn clean client:build
mvn client:package// connect your Android device and allow it installation over USB
mvn client:install
```You can now run the game from Android, or you can run with logging from Linux: `mvn client:run`.
## Contribute
These game demos are constantly upgraded, so feel free to fork and add something of your own.
## Projects by difficulty
### Beginner
* [Cannon](Cannon)
* [Drop](Drop)
* [Tower Defense](TowerDefense)
* [Bomberman](Bomberman)
* [OutRun](OutRun) (in Kotlin)
* [Shooter](Shooter)
* [Space Runner](SpaceRunner)### Intermediate
* [GeoJumper](GeoJumper) (in Kotlin)
* [Pong](Pong)
* [Breakout](Breakout)
* [TicTacToe](TicTacToe)
* [Battle Tanks](BattleTanks)
* [Flappy Bird](FlappyBird)
* [Slot Machine](SlotMachine)### Advanced
* [Space Invaders](SpaceInvaders)
* [Geometry Wars](GeometryWars)
* [Mario](Mario)
* [Pac-man](Pacman)## 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](https://github.com/softknk/softknk.io) by Daniel Künkel.
* [Greedy Snake Game](https://github.com/wuzirui/SnakeDungeon) by wuzirui