The project is split into two main Gradle modules:
core— platform-independent game logic and resources.desktop— desktop launcher and LWJGL backend.
The desktop application is launched by:
com.volcano3d.desktop.Volcano3DDesktop
- Java
- libGDX 1.9.6
- LWJGL 2.9.2
- Gradle 2.14.1
- Java 8
The project uses an intentionally old toolchain because it was originally developed with an older version of libGDX and Gradle.
For the original build configuration, use:
- JDK 8
- Git
- Windows for the desktop build/run configuration
The included Gradle wrapper (gradlew.bat) provides the required Gradle version, so Gradle does not need to be installed separately.
Clone the repository:
git clone https://github.com/houseofbits/Volcano3D.git
cd Volcano3DMake sure Java 8 is active:
java -versionThe expected version is similar to:
java version "1.8.0_231"
Build the project:
gradlew.bat clean buildA successful build produces the desktop JAR under:
desktop/build/libs/
Run the desktop application directly through Gradle:
gradlew.bat desktop:runThe desktop launcher is:
com.volcano3d.desktop.Volcano3DDesktop
The application loads its configuration using:
VConfig.loadConfig("config.json");Configuration includes settings such as:
- Window resolution
- Fullscreen/windowed mode
- Other application/game settings
The desktop window configuration is created in Volcano3DDesktop.
To force windowed mode:
config.fullscreen = false;To explicitly set the window size:
config.width = 1280;
config.height = 720;
config.fullscreen = false;The project can be imported into IntelliJ IDEA as a Gradle project.
When working on the original codebase, use JDK 8. Newer Java versions are not compatible with the project's Gradle 2.14.1 wrapper without upgrading the build system.
The project currently targets an older Java language level, so warnings such as:
bootstrap class path not set in conjunction with -source 1.6
may appear during compilation. These are expected with the legacy build configuration.
Build everything:
gradlew.bat clean buildRun the desktop application:
gradlew.bat desktop:runBuild only the desktop module:
gradlew.bat desktop:buildClean build artifacts:
gradlew.bat cleanThe current known-working environment is:
Gradle 2.14.1
Java 8
libGDX 1.9.6
LWJGL 2.9.2
OS Windows
The project should first be kept reproducible with this environment before modernizing the Gradle/libGDX dependencies.