software · Q691
libGDX
Java game-development framework with shared code and platform-specific backends.
Overview
libGDX is a Java framework for developing 2D and 3D games. It uses a code-centric workflow with shared game logic and platform backends for desktop, mobile and browser deployment.[1][2]
Code and game facilities
The framework includes drawing and animation facilities, asset management, input and audio, together with higher-level components such as Scene2D interfaces and tiled-map support. Optional integrations include physics libraries. These are building blocks for a programmed game, not a requirement to work inside one visual scene editor. The developer chooses how to organize gameplay and how much of the framework to adopt.[2]
Project structure
The recommended project generator, gdx-liftoff, creates a Gradle-based project with a shared core and selected backend modules. A desktop launcher and Android or browser modules are distinct build targets even when they share most game code. That separation makes platform-specific setup explicit and allows development on a desktop before checking behavior on the intended devices.[3]
Cross-platform limits
Browser deployment uses the GWT backend, whose supported Java libraries and language environment differ from an unrestricted desktop JVM. Some extensions, including the documented FreeType integration, are not available through that HTML target. The iOS workflow requires Xcode on macOS. Shared source therefore reduces duplication but does not mean every Java dependency or optional subsystem can be used unchanged on every platform.[3]
Open-source model
libGDX is published under Apache License 2.0. The framework's open-source status is separate from the rights to game art, sound, third-party libraries and platform development tools. A deployment decision should consider those components alongside the framework rather than equating a permissive core license with an entirely unrestricted release pipeline.[1]
Substitution assessment
libGDX is an alternative to Cocos Creator for teams building 2D or 3D games that prefer Java and a code-centered workflow. Moving from Creator means replacing editor-managed scenes, TypeScript components and engine-specific asset setup with a new project architecture. It is most plausible when the team wants that control, rather than when preserving an existing Creator project with minimal changes is the priority.[2][3][4]
Capabilities & limitations
Shared game code
supportedCore logic can be shared across selected backend modules.[3]
Code-driven games and interactive graphics · Windows, macOS, Linux, Android, iOS, HTML5 · Target toolchains, browser and hardware support apply
1 source · check evidence
Backend modules, GWT restrictions and iOS prerequisites
vendor · checked 2026-10-07Identical dependency support across targets
limitedGWT and optional extension constraints apply; iOS requires the Apple toolchain.[3]
Code-driven games and interactive graphics · Windows, macOS, Linux, Android, iOS, HTML5 · Target toolchains, browser and hardware support apply
1 source · check evidence
Backend modules, GWT restrictions and iOS prerequisites
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
Cocos Creator for Code-driven games and interactive graphics
limitedCandidate for code-first Java 2D/3D games; replaces the editor and scripting workflow rather than importing Creator projects unchanged.[2][4]
Windows, macOS, Linux, Android, iOS, HTML5 · Target toolchains, browser and hardware support apply
References
- libGDX overview
Java framework and target platforms
vendor · retrieved 2026-10-07 - libGDX features
Code-first workflow, rendering and optional extensions
vendor · retrieved 2026-10-07 - libGDX project generation
Backend modules, GWT restrictions and iOS prerequisites
vendor · retrieved 2026-10-07 - Cocos engine README
Runtime versus editor and native/web architecture
vendor · retrieved 2026-10-07
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 739 | 2026-10-13 03:24:06 | /* wbeditentity-create-item:0| */ sf:6fbc65c1-2297-42e0-957f-9b5ef2079c15:v1 | Add libGDX with cited game-development workflow, licensing and migration boundaries; documentation research only. | attribution: /proposals/6fbc65c1-2297-42e0-957f-9b5ef2079c15 |