SpaceFX (WebFX demo) Description
TARGET AUDIENCE
This app has been published for developers following the WebFX project, and is part of the project demos.
FOR NEW AUDIENCE
WebFX is a free, open-source cross-platform solution that can target 7 platforms (Web, Android, iOS, macOS, Linux, Windows & embed such as Raspberry Pi) from a single Java code base.
Underlying technologies: OpenJFX, Gluon & GWT.
For instance, you can visit the web version of this same app at https://spacefx.webfx.dev
Whatever the platform, the application source code is exactly the same (see the LINKS section below to access the source code of this demo).
The application is written in Java and uses the JavaFX API to build the user interface.
The Gluon toolchain (built on top of GraalVM) is used to compile the application Java code into a native app for all platforms except the Web (so this includes this Android version).
GWT is used to compile the Web version. It transpiles the Java code into an optimised JavaScript code.
As a result, all executables in all platforms offer optimized performances.
ABOUT THIS PARTICULAR DEMO
This demo is a patched version of the original SpaceFX JavaFX game written by Gerrit Grunwald (aka Hansolo). The reason of this patch is to make it GWT compatible, and therefore also compilable for the web.
This demo shows that you can write games using the JavaFX canvas API for all platforms.
LINKS
Original JavaFX game: https://github.com/HanSolo/SpaceFX
This demo source code: https://github.com/webfx-demos/webfx-demo-spacefx
WebFX Website: https://webfx.dev
WebFX GitHub: https://github.com/webfx-project/webfx
This app has been published for developers following the WebFX project, and is part of the project demos.
FOR NEW AUDIENCE
WebFX is a free, open-source cross-platform solution that can target 7 platforms (Web, Android, iOS, macOS, Linux, Windows & embed such as Raspberry Pi) from a single Java code base.
Underlying technologies: OpenJFX, Gluon & GWT.
For instance, you can visit the web version of this same app at https://spacefx.webfx.dev
Whatever the platform, the application source code is exactly the same (see the LINKS section below to access the source code of this demo).
The application is written in Java and uses the JavaFX API to build the user interface.
The Gluon toolchain (built on top of GraalVM) is used to compile the application Java code into a native app for all platforms except the Web (so this includes this Android version).
GWT is used to compile the Web version. It transpiles the Java code into an optimised JavaScript code.
As a result, all executables in all platforms offer optimized performances.
ABOUT THIS PARTICULAR DEMO
This demo is a patched version of the original SpaceFX JavaFX game written by Gerrit Grunwald (aka Hansolo). The reason of this patch is to make it GWT compatible, and therefore also compilable for the web.
This demo shows that you can write games using the JavaFX canvas API for all platforms.
LINKS
Original JavaFX game: https://github.com/HanSolo/SpaceFX
This demo source code: https://github.com/webfx-demos/webfx-demo-spacefx
WebFX Website: https://webfx.dev
WebFX GitHub: https://github.com/webfx-project/webfx
Open up