libGDX targets Windows, Linux, macOS, Android, iOS, and browsers from one Java codebase using OpenGL. It supports rapid prototyping without imposing a fixed game architecture.
Overview
libGDX is a Java game development framework built on OpenGL (ES) for multiple desktop, mobile, and web targets. Teams use a shared codebase to ship on Windows, Linux, macOS, Android, iOS, and HTML5 browsers.
The framework includes tooling for 2D and 3D games and leaves design and coding style to the developer. API choices emphasize reducing garbage collection pressure through custom collections and careful interfaces.
Projects typically start via Gradle-based setup or a setup tool that fetches dependencies and scaffolds templates. Bundled Javadocs and wiki material cover building simple games, tutorials, and integration with IDEs.
A large third-party ecosystem offers companion libraries for common game tasks. Community channels, showcases, and jams support developers learning the framework or shipping commercial titles.
Key features
- Single Java codebase across platforms
- OpenGL-based 2D and 3D rendering
- Gradle-based project setup
- Bundled API reference docs
- No enforced game architecture
- Custom collections for memory-aware code
- Third-party library ecosystem
- Setup tool for new projects
Use cases
- Indie 2D and 3D game projects
- Cross-platform mobile and desktop games
- Browser-deployed HTML5 games
- Rapid gameplay prototyping
- Java teams avoiding engine lock-in
Does the same job as
libGDX doesn't name these products itself, but its own description shows it does the same job.