-
Notifications
You must be signed in to change notification settings - Fork 16
Instructions
To try dragome backend you will need to follow the steps below. It current requires projects sources but gradle setup is on the way.
- Must have Dragome Backend source project or the [1] jar file imported in eclipse.
- Must have Libgdx source project or the jar file imported in eclipse .
- Must have DragomeSDK source project or the jar file imported in eclipse.
- Two ways to use in eclipse when you have the source project:
- [Not Required] May need the forked [Dragome project] (https://github.com/xpenatan/dragome-sdk) (There is a chance it has modifications that is not yet in official branch).
- Eclipse Jetty plugin is recommended to be able to easy launch and test in the browser. Two plugins that works fine is Plugin 1 and [Plugin 2] (https://github.com/xzer/run-jetty-run). Your free to use any jetty plugin as you like.
- When lanching look for context in plugin launch configuration to know the http link for testing. Ex: http://localhost:8080/[CONTEXT]/index.html
- Explore the test project to see how it works. Currently you will need to copy assets manually to webapp folder.
[1] Release and Nightlies jars will be available soon.
- Download DragomeSDK master branch [1].
- Find the root pom.xml and build it with mvn clean install.
- Download Dragome Backend.
- Go to "backends\gdx-backend-dragome" and build it with mvn clean install.
- Go to "extensions\gdx-bullet\gdx-bullet-dragome" and build it with mvn clean install.
- Go to "tests\gdx-tests-dragome".
- Build it with mvn clean install. Release files will be in target folder.
- Or run it with mvn jetty:run, open your browser and type http://localhost:8080/index.html
[1] It wont require if maven central is updated with the last changes.
You can change demos by adding "?BulletTest", "?Gears", "?AnimationTest" and so on (Check the demos link).
To run the test demos you will to download SoundManager2 and gdxBullet javascript files and put them in webapp folder (next to index.html).
See front page or gdx-shadertoy fork which shows how to set up Gradle. Gradle for bullet/TrueType is not yet available.
Use:
compile "com.github.xpenatan:gdx-backend-dragome:1.0.0-SNAPSHOT"
Its only the backend.
Or use:
compile "com.github.xpenatan:gdx-backend-dragome:1.0.0-ALL-SNAPSHOT"
For all in one jar (Includes the core backend and DragomeSDK)
Compiling dragome backend Jar & FatJar to local maven repo:
gradle clean uploadArchives -P local
Compiling dragome backend Jar & FatJar to a custom directory:
gradle clean uploadArchives -P local -P localPath=C:TEST
Use the command below to force to download a newer dragome backend snapshot.
gradlew :dragome:jettyRun --refresh-dependencies