libgdx is a free, open source gaming project written in Java and released under Apache-2.0. It has 25,405 GitHub stars, 6,526 forks and 337 open issues, and was last pushed 11 days ago. On this registry it ranks #8 of 16 tracked projects in Gaming, with 5 head-to-head comparisons available.

What is libgdx?

libGDX is a cross-platform Java game development framework built on OpenGL (ES) that renders 2D and 3D games for Windows, Linux, macOS, Android, web browsers, and iOS, aimed at Java developers who want one codebase and no imposed design or coding style.

What it is

libGDX is an open-source framework for building games in Java, released under the Apache 2.0 License and hosted on GitHub under the libgdx organisation. It is not a game engine with an editor and a scripting layer; it is a framework that provides rendering based on OpenGL (ES), a project setup path through Gradle, and a set of tools for multi-platform 2D and 3D development. The project deliberately does not impose a specific design or coding style, which means application architecture, update loops, scene handling, and asset pipelines stay the developer's decision. It lives in the Java and JVM ecosystem, is published to Maven Central as com.badlogicgames.gdx:gdx, and builds through Gradle.

The concrete problem it solves is that shipping a game to desktop, Android, the web, and iOS normally means maintaining separate platform code and separate engine builds. libGDX targets the whole set from one Java project. It also replaces the manual step of downloading and bundling the framework itself: because the dependency resolves through Maven Central and Gradle, a project can be created and built without fetching the framework by hand. A dedicated setup tool automates project creation and pulls in the necessary components. The project backs this with a large third-party ecosystem of tools and libraries, curated in the awesome-libgdx repository, which gives newcomers a starting point rather than a blank project.

Key capabilities

  • Renders both 2D and 3D content on top of OpenGL (ES), and targets Windows, Linux, macOS, Android, web browsers, and iOS from one codebase.
  • Distributed as the Maven Central artifact com.badlogicgames.gdx:gdx, with snapshot builds published to the maven-snapshots repository on Central.
  • Gradle-based setup that requires no manual framework download; a setup tool automates project creation and downloads all necessary components.
  • No imposed design or coding style, so developers choose their own architecture and patterns.
  • Apache 2.0 License, permitting unrestricted use in commercial and non-commercial projects, with credit appreciated but not mandatory.
  • Javadocs published online at javadoc.io and bundled with every distribution for IDE integration.
  • A third-party ecosystem of tools and libraries documented at libgdx.com/dev/tools/ and collected in the awesome-libgdx curated list.

Who uses it and how

  • Commercial studios ship finished titles with it; the libGDX showcase features popular libGDX-powered games, including Pathway by Robotality, distributed on Steam.
  • Indie and small teams use it as the single framework behind a game released across desktop, Android, iOS, and web without maintaining separate engine projects.
  • Java developers use it for rapid prototyping and iterative development, an explicit goal of the framework's design.
  • Teams needing support and discussion work through the official libGDX Discord, the blog for news, and the GitHub issue tracker for bug reports, following the Getting Help guide before filing.
  • Developers extending the stack pull community libraries and tools from the awesome-libgdx list rather than building supporting systems from scratch.

Getting started

Setup runs through Gradle: the framework resolves as a dependency without being downloaded manually, and a dedicated setup tool automates project creation and fetches the required components. Step-by-step instructions live on the project website at libgdx.com/wiki/start/setup, with follow-on guides for building a simple game and for tutorials and demos.

How it compares

The facts provided name no comparable tools and no list of paid products this project replaces, so no direct contrast can be drawn on licence, hosting, data ownership, or cost model. On that basis, libGDX stands alone in this registry.

When to use it — and when not to

libGDX fits Java teams that want large platform coverage from one codebase and are willing to own their own game architecture, asset handling, and tooling choices. It is a poor fit for teams outside the JVM, and for anyone expecting an editor-driven engine or a hosted service that manages builds and deployment for them, since libGDX offers none of that. The practical caution is documentation shape: the README defers setup, tutorials, and API details to the external website, wiki, and javadocs rather than carrying them inline, and the tracker holds 337 open issues, so developers should read the wiki and known-issue history before committing.

project readme (upstream, from github) — read inline

libGDX Logo libGDX Logo

GitHub Actions Build Status

Latest Version Snapshots

Discord Chat

Cross-platform Game Development Framework

libGDX is a cross-platform Java game development framework based on OpenGL (ES), designed for Windows, Linux, macOS, Android, web browsers, and iOS. It provides a robust and well-established environment for rapid prototyping and iterative development. Unlike other frameworks, libGDX does not impose a specific design or coding style, allowing you the freedom to create games according to your preferences.

Open Source, Feature Packed, and Fostering a Large Third-Party Ecosystem

libGDX is released under the Apache 2.0 License, offering unrestricted usage in both commercial and non-commercial projects. While not mandatory, we appreciate any credit given to libGDX when you release a game or app using it. Check out our showcase for a selection of popular libGDX-powered games. With libGDX, you gain access to a comprehensive set of tools and features to develop multi-platform 2D and 3D games using Java.

Moreover, libGDX boasts a vibrant third-party ecosystem, with numerous tools and libraries that streamline development tasks. Explore the awesome-libgdx repository for a curated list of libGDX-centered libraries, serving as an excellent starting point for newcomers in the libGDX community.

An example game created with libGDX: Pathway by Robotality. Discover more captivating games in our Showcase.

Getting Started with libGDX / Documentation

Thanks to Gradle, you can easily set up libGDX without the need to download the framework itself. Your favorite build tool can handle everything for you. Additionally, we offer a convenient setup tool that automates project creation and downloads all the necessary components. Check out our website for instructions on getting started or refer to our comprehensive wiki.

We provide the libGDX javadocs online for easy reference. Additionally, the javadocs are bundled with every libGDX distribution, ensuring smooth integration with your preferred IDE.

Community & Contribution

Stay up to date with the latest libGDX news by following our blog. For engaging discussions and support, join our official libGDX Discord.

Reporting Issues

Use the Issue Tracker here on GitHub to report any issues you encounter. Before submitting, please read our Getting Help guide, which walks you through the process of reporting an issue effectively.

Contributing to the Codebase

libGDX benefits greatly from contributions made by our dedicated developer community. We appreciate any assistance in making libGDX even better. Check out the CONTRIBUTING.md file for details on how to contribute. Note that contributing involves working directly with libGDX's source code, a process that regular users do not typically undertake. Refer to the Working with the Source article for guidance.

You can also support our infrastructure (build server, web server, test devices) by contributing financially through our Patreon!

Frequently asked questions

Is libgdx free to use?

libgdx is open source under the Apache-2.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does libgdx do?

Desktop/Android/HTML5/iOS Java game development framework

What is libgdx written in?

libgdx is primarily written in Java. Its source is publicly available at https://github.com/libgdx/libgdx, and it has 25,405 GitHub stars.