Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.davidb:jme3_skel:'
}
dependencies {
implementation("com.github.davidb:jme3_skel:")
}
<dependency>
<groupId>com.github.davidb</groupId>
<artifactId>jme3_skel</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.davidb" % "jme3_skel" % ""
:dependencies [[com.github.davidb/jme3_skel ""]]
This project is my project skeleton for jmonkeyengine 3 (jme3).
Use it :
Project show, how I integrate:
(I need to collect info about gamepad, can you share with me the content of you app/log/joysticks.txt)
I first experiment with lemur (see the lemur branch) + integration with MigLayout and create a welcome + settings pages. But I switch to jdk8 and give a try to javafx. JavaFX is less integrated into jme but provide reusable knowledge (out of jme), more doc, tuto, css, ttf... and tools like SceneBuilder 2.0 to help you design GUI.
The main downside of javaFX+jME, the need to push "action" in javaFX's Thread or in jME's Thread.
The jme3_skel project provide the following pages :
Each page is an AppState + FXML (gui)
I use gradle to build, and run the project.
cd jme3_skel
gradle run
I use eclipse 4.4 as main IDE, and netbeans 8 + jme's SDK build to edit asset.