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:
- AnimationTest
- Gears Demo
- BulletTest
- BulletTestCollection
- Box2DTestCollection
- UITest
- Quantum
- Shader-toy - Github
- Pax-Britannica - Github
- FreeType
Go to Wiki for more information.
#Example