Create a project¶
Use the jMonkeyEngine Initializer to create a Gradle project for your game and the platforms you want to support. Download the generated project, open it in your preferred Java IDE and start writing code.
- Open the Initializer and enter your project's name and package.
- Select the platforms and engine modules you need.
- Add optional community modules to extend the engine with features such as physics, navigation and user interfaces.
- Download and unpack the generated project, then open it as a Gradle project in your IDE.
- Follow its README for the exact prerequisites and tasks generated for your selections.
Your shared game code lives in the app module, and game assets go in game-assets/src/main/assets/. The platform modules provide launchers and packaging for each selected target. The Initializer also lets you choose renderers and Java versions that are compatible with those targets.
To try a desktop project, run:
./gradlew :platform-desktop:run
On Windows, use gradlew.bat instead. Because the generated project includes the Gradle wrapper, you do not need to install Gradle separately. Once your project runs, continue with your first application or learn how to debug, build and distribute your game.