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]
Contents 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]
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 Also included: 2 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.