-
Notifications
You must be signed in to change notification settings - Fork 0
Using libgdx with other jvm languages
Libgdx is mainly a java-based framework. However, because java produces Java Bytecodes, and the virtual machine runs these bytecodes, it is possible to run libgdx in any JVM language with proper java interoperability.
This works out of the box, as the desktop libgdx backend uses the JVM that you have installed on your computer, which is most likely either OpenJDK or Oracle JDK. Both of these JVMs support polyglot code, as they run on .class files, not java source code.
This works for many languages, but it is sometimes unavailable. For best results, search on your favorite search engine [JVM language of choice] on android.
Some examples:
- Lein-droid for Clojure
- SBT-Android for Scala
- Kotlin on android using the Kotlin plugin of IntelliJ IDEA
The ROBOVM backend is a JVM on iOS which executes java bytecode. This should work, but has not been tested!
GWT transpiles Java to JavaScript. As opposed to Java Bytecodes (.class files) to JavaScript code. There are a few reasons, quickly outlined by a Google Employee here.
Many people have used libgdx in their JVM language of choice. Here are some examples.
TODO (find some recent examples, would love contributions!)
-
Developer's Guide
- Introduction
- Goals & Features
- Community & Support
- Contributing
- Games Built with Libgdx
- Prerequisites
- Gradle Project Setup, Running, Debugging and Packaging
- Project Setup, Running & Debugging
- Third Party Services
- Working from Source
- Using libgdx with other JVM languages
- The Application Framework
- A Simple Game
- File Handling
- Networking
- Preferences
- Input Handling
- Memory Management
- Audio
-
Graphics
- Configuration & Querying Graphics ??
- Fullscreen & VSync
- Continuous & Non-Continuous Rendering
- Clearing the Screen
- Take a Screenshot
- OpenGL ES Support * Configuration & Querying OpenGL ?? * Direct Access ?? * Utility Classes * Rendering Shapes * Textures & TextureRegions * Meshes * Shaders * Frame Buffer Objects
- 2D Graphics * SpriteBatch, TextureRegions, and Sprite * 2D Animation * Clipping, with the use of ScissorStack * Orthographic camera * Mapping Touch Coordinates ?? * Viewports * NinePatches * Bitmap Fonts * Distance field fonts * Using TextureAtlases * Pixmaps * Packing Atlases Offline * Packing Atlases at Runtime * 2D Particle Effects * Tile Maps * scene2d * scene2d.ui * Skin
- 3D Graphics * Quick Start * Models * Material and environment * 3D animations and skinning * Importing Blender models in LibGDX * Perspective Camera ?? * Picking ??
- Managing Your Assets
- Utilities
-
Math Utilities
- Interpolation
- Vectors, Matrices, Quaternions
- Circles, Planes, Rays, etc.
- Path interface & Splines
- Bounding Volumes ??
- Intersection & Overlap Testing ??
- Physics
- Tools
- Extensions
- Deploying your Application
- Building Libgdx ??
- Known Issues
- Articles
- Deprecated (May be outdated)