Home › AI Game Development › libGDX
What is libGDX? The cross-platform Java 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 is a robust, well-established environment for rapid prototyping and iterative development — and unlike other frameworks, it does not impose a specific design or coding style on you.
libGDX in one paragraph
libGDX (github.com/libgdx/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, with a comprehensive set of tools and features to develop multi-platform 2D and 3D games using Java. Unlike other frameworks, libGDX does not impose a specific design or coding style, allowing you the freedom to create games according to your preferences.
libGDX was created in August 2012 and passed 25,000 GitHub stars by December 2026, with its most recent push in November 2026. It is released under the Apache 2.0 licence, offering unrestricted usage in both commercial and non-commercial projects — credit is appreciated but not mandatory. It has a large third-party ecosystem and a showcase of popular libGDX-powered games, including Pathway by Robotality.
What libGDX actually does
libGDX is a code framework, not a visual editor: you write Java, and it gives you the cross-platform plumbing for a 2D or 3D game. Its work breaks down into four parts.
1. One codebase, six platforms
A libGDX game is written once in Java and runs on Windows, Linux, macOS, Android, web browsers and iOS, on top of OpenGL (ES). That is the core promise: one codebase, every major platform, with no per-platform rewrite of the game itself.
2. A complete toolkit for 2D and 3D games
libGDX gives you a comprehensive set of tools and features to develop multi-platform 2D and 3D games using Java. It does not impose a specific design or coding style, so you are free to structure your game the way you prefer — the framework provides the pieces, you decide how they fit together.
3. Setup that mostly does itself
Thanks to Gradle, you can easily set up libGDX without needing to download the framework itself — your favourite build tool handles everything. There is also a setup tool that automates project creation and downloads all the necessary components. Getting-started guides cover creating a project and building a simple game, and the full wiki and the javadocs — online and bundled with every distribution — document the rest.
4. A large third-party ecosystem
libGDX fosters a large third-party ecosystem, with numerous tools and libraries that streamline development tasks, and a curated awesome-libgdx list as a starting point for newcomers. The community meets on the libGDX Discord and follows the project blog for news, and the project accepts financial support through Patreon for its infrastructure — build server, web server and test devices.
What it costs
libGDX itself is free — Apache 2.0, no subscription, no royalties, unrestricted use in commercial and non-commercial projects. The only costs around a libGDX project are your time, your own tooling, and whatever you spend publishing and promoting the finished game. Supporting the project’s infrastructure through Patreon is voluntary.
Who libGDX is for
Java developers
You already write Java and want to make games in it. libGDX is a Java framework through and through, with javadocs bundled with every distribution and Gradle handling the build.
Cross-platform indie developers
You want one codebase on desktop, mobile and web. libGDX targets Windows, Linux, macOS, Android, web browsers and iOS from the same project.
Rapid prototypers
You iterate fast and want a robust, well-established environment for it. libGDX is built for rapid prototyping and iterative development, with a setup tool that gets a project going quickly.
Developers who want freedom
You do not want a framework telling you how to structure your game. libGDX imposes no design or coding style — you build it your way, on top of its tools.
libGDX at a glance
- Project: libgdx/libgdx — “Desktop/Android/HTML5/iOS Java game development framework”
- Licence: Apache 2.0 — free and open source, unrestricted commercial and non-commercial use
- Popularity: over 25,000 GitHub stars by December 2026 (created August 2012)
- Language: Java
- Platforms: Windows, Linux, macOS, Android, web browsers and iOS — one codebase
- Setup: Gradle-based, with a setup tool that automates project creation
- Docs: wiki, getting-started guides, and javadocs online and bundled with every distribution
- Showcase: popular libGDX-powered games include Pathway by Robotality
Honest limits
libGDX is a framework, not a visual game engine: there is no built-in editor where you drag scenes together — you write the game in Java, and the framework gives you the plumbing. That freedom is the point, but it means more code to write and more decisions to make than in an editor-first engine. It is also a mature project rather than a new one, so its look and workflow feel like a programmer’s tool, not a modern all-in-one studio. If you want a visual editor, libGDX will not give you one; if you want a solid, free, cross-platform Java framework, that is exactly what it is.
Want a game without doing the setup?
libGDX is one of the frameworks behind our AI game development service: we build your game instead of from scratch, playtest everything by hand, and hand over a finished game with its source code. Mini-games from £499, full 2D games from £1,499, 3D games from £2,999. You bring the idea; there are no surprise bills.
Have a game idea?
Tell us the idea — a sentence is enough. We will tell you what it takes and what it costs, honestly.