JavaFX Game Development Framework
- No native libraries, no setup required
- Simple and clean API
- Brings real-world game development techniques to JavaFX
- Works with Java 8 and 9 "out of the box"
- Any 2D genre (side-scroller / platformer / arcade / RPG)
- Hobby / academic / commercial projects
- Teaching / learning / improving game development skills
- Fast prototyping of game ideas
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);
}
}
Already have pom.xml
? Then add:
<dependency>
<groupId>com.github.almasb</groupId>
<artifactId>fxgl</artifactId>
<version>0.4.0</version>
</dependency>
Already have build.gradle
? Then add:
repositories {
jcenter()
}
dependencies {
compile 'com.github.almasb:fxgl:0.4.0'
}
Download latest uber jar from Releases
Please see the Contribution Guide (including non-code), or simply star the repo to show interest.