Learn LIBGDX with Real Code Examples
Updated Nov 24, 2025
Installation Setup
Use LibGDX project generator (gdx-setup)
Select platforms (Desktop, Android, iOS, HTML)
Import into IDE (IntelliJ/Eclipse)
Write code in core module
Run via platform launchers
Environment Setup
Generate project via gdx-setup
Import into IntelliJ
Write code in core folder
Run desktop target
Deploy to other platforms
Config Files
gdx-setup project config
Android manifest
Gradle build files
GWT configuration
Scene2D JSON skins
Cli Commands
java -jar gdx-setup.jar
gradle desktop:run
gradle html:superDev
gradle android:installDebug
gradle ios:launchIPhoneSimulator
Internationalization
I18NBundle for translations
Locale switching
Bitmap fonts per language
RTL support via custom layout
UTF-8-safe rendering
Accessibility
Customizable UI scaling
High-contrast fonts
Keyboard navigation
Gamepad input
Text-to-speech via platform APIs
Ui Styling
Scene2D skins via JSON
Bitmap fonts
Nine-patch UI elements
Custom UI widgets
Shader effects
State Management
Custom state machines
Scene2D actions
ECS with Ashley
Global singletons
JSON/XML save data
Data Management
AssetManager for textures/audio
Texture atlases
JSON map + config files
Box2D body definitions
Platform-specific storage APIs