JavaFX Game Development Framework
public class BasicGameApp extends GameApplication {
@Override
protected void initSettings(GameSettings settings) {
settings.setWidth(800);
settings.setHeight(600);
settings.setTitle("Basic Game App");
}
public static void main(String[] args) {
launch(args);
}
}
For a quick dive into code, see standalone basic examples. Otherwise, see:
Already have pom.xml
? Then add: (use 0.5.4
for Java 8-10). Note: make sure to set <release>11</release>
for maven-compiler-plugin
.
<dependency>
<groupId>com.github.almasb</groupId>
<artifactId>fxgl</artifactId>
<version>11.12</version>
</dependency>
Already have build.gradle
? Then add: (use 0.5.4
for Java 8-10). Note: in case you have errors, please see templates for Gradle above.
repositories {
jcenter()
}
dependencies {
compile 'com.github.almasb:fxgl:11.12'
}
Download the latest uber jar from Releases
If your institution wants to use / is using FXGL, drop me an email to be added to the list.
Community tutorials:
Community projects (identified using fxgl
topic):
If you'd like your project featured here, just add a note in the Chat.
If you want to build FXGL from sources or want to contribute, please see the Contribution Guide (including non-code). FXGL is fully modular, so new contributors do not need to understand the entire codebase, only the module to which the contribution is made. Contributions will be reviewed in accordance with the Code of Conduct.
You can support the FXGL development / show interest by simply starring the repo or becoming a sponsor.
Users:
Companies:
javafx
and fxgl