Skip to content

Instructions

Xpe edited this page May 13, 2017 · 15 revisions

To try dragome backend you will need to follow the steps below. It current requires projects sources but gradle setup is on the way.

Working with Sources

Eclipse - (Import and launch)

  • 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:
      • For non maven stuff, DragomeSDK requires some dependecies, download them at release or here. It contains the libs and the project settings (put in dragome source folder and import).
      • Import dragome as maven project (pom).
    • [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.
  • 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.

Maven (dragome backend pom is not updated often)

  • 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).

Note

To run the test demos you will to download SoundManager2 and gdxBullet javascript files and put them in webapp folder (next to index.html).

Working with Release/Nightlies

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