8000 GitHub - xpenatan/gdx-teavm: Run LibGDX in a web browser with TeaVM
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

xpenatan/gdx-teavm

Repository files navigation

gdx-teavm

Build

Maven Central Version Static Badge

gdx-teavm is a backend solution for running libGDX games directly in web browsers. It leverages TeaVM, a tool that compiles Java or Kotlin bytecode into JavaScript or WebAssembly, enabling seamless execution of game logic within the browser environment without needing additional plugins or complex setup. Additionally, gdx-teavm incorporates Emscripten to handle some of the Java Native Interface (JNI) code, allowing for the execution of specific internal functions that require native performance.

TeaVM Examples

libGDX-TeaVM

Versions:

gdx-teavm LibGDX TeaVM
1.2.1 1.13.5 0.12.0
1.2.0 1.13.1 0.12.0
1.1.0 1.13.1 0.11.0
1.0.5 1.12.1 0.11.0

Setup:

// Add sonatype repository to Root gradle
repositories {
    
    mavenCentral()
    maven { url = uri("https://central.sonatype.com/repository/maven-snapshots/") }
    maven { url = uri("https://jitpack.io") }
    
    // If there is a problem with the teavm repository, you can try using http
    maven {
        url = uri("http://teavm.org/maven/repository/")
        isAllowInsecureProtocol = true
    }
}

// Version
gdxTeaVMVersion = "-SNAPSHOT"
gdxTeaVMVersion = "[LAST_TAG_VERSION]"

// In teaVM module
dependencies {
    implementation "com.github.xpenatan.gdx-teavm:backend-teavm:$project.gdxTeaVMVersion"

    // FreeType extension
    implementation "com.github.xpenatan.gdx-teavm:gdx-freetype-teavm:$project.gdxTeaVMVersion"
}

About

Run LibGDX in a web browser with TeaVM

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 9

0