Libgdx Dragome Backend.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
backends/gdx-backend-dragome
extensions
tests
.gitattributes
.gitignore
LICENSE
README.md
build.gradle
deploy.gradle
eclipse-formatter.xml
gradle.properties
settings.gradle

README.md

Libgdx Dragome Backend

This backend use DragomeSDK to generate libgdx games to javascript. A alternative to gwt backend.

  • Its fast to compile ¹
  • Easy to use
  • Lightweight ²
  • Use bytecodes and not source code
  • ProGuard ready Shrink/Obfuscate ³
  • Reflection ready

¹: It can take seconds to compile when using proguard shrink + obfuscation.

²: All in one jar is about 16mb and includes Dragome Backend, Proguard and DragomeSDK.

³: Shrink remove unused classes and Obfuscate makes your class/methods smaller and harder to mess with it.

Quick Setup:

//######## Root build.gradle

repositories {
  mavenLocal()
  mavenCentral()
  maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
  maven { url "https://oss.sonatype.org/content/repositories/releases/" }
}

project(":dragome") {
    apply plugin: "java"

    dependencies {
        compile project(":core")
        compile "com.github.xpenatan:gdx-backend-dragome:1.0.0-ALL-SNAPSHOT"
    }
}

//######## Dragome Project build.gradle

apply plugin: 'org.akhikhl.gretty'

sourceCompatibility = 1.8

gretty {
  extraResourceBase 'webapp'
}

sourceSets.main.java.srcDirs = ["src"]

buildscript {
  repositories {
    jcenter()
  }

  dependencies {
    classpath 'org.akhikhl.gretty:gretty:+'
  }
}

Running:

gradlew :dragome:jettyRun

Current demos:

Go to Wiki for more information.

#Example