Courses / Specialisations & media / Java Game Development with LibGDX

₹399Self-paced

Java Game Development with LibGDX

Build a desktop LibGDX game in Java with tested input, rendering, collisions and resource handling.

  • Who it's for. Java programmers comfortable with classes, collections and Gradle who want to build 2D games.
  • Before you start. Prerequisite courses: Java Programming, Mathematics for Programmers: Discrete and Applied Foundations.
  • 25 to 42 hours of study with practice
  • 8 modules, 48 lessons
  • 4 guided projects and a final project

What you'll learn

  • Generate a LibGDX project with gdx-liftoff and explain what each generated module does.
  • Render textures and Tiled maps with SpriteBatch, OrthographicCamera and viewports, with camera maths covered by tests.
  • Manage native resources with Disposable rules and AssetManager, and prove with a ledger that nothing leaks.
  • Structure the game into screens and a state machine, with versioned, validated save data and settings.
  • Build, run, document and measure a desktop jar release with a checklist and evidence.

Skills you'll gain

  • Game lifecycle
  • Rendering
  • cameras
  • Input
  • Assets
  • disposal
  • Movement
  • collisions
  • Screens
  • state
  • Audio
  • Desktop game build

Tools you'll use

  • LibGDX
  • Java (JDK)
  • Gradle wrapper
  • gdx-liftoff
  • JUnit
  • OpenGL

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 8 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 4 phases

Each phase ends with something you have built and checked.

  1. 01

    Modules 1 to 2

    Game lifecycle to Rendering and cameras

    Generate a LibGDX project, trace the ApplicationListener lifecycle, and structure the game so update logic can be stepped deterministically and tested without a window.

    You build: Guided project “Tested clock-and-camera sandbox”: Generated project with lifecycle log GameWorld stepped by a fixed-step accumulator with deterministic JUnit tests.

  2. 02

    Modules 3 to 4

    Input to Assets and disposal

    Read keyboard, mouse and touch input by polling and by events, convert pointer coordinates to world space, and isolate raw devices behind a testable input snapshot.

    You build: Guided project “Controllable character with asset ownership”: Input snapshot with replay tests and a pointer converter.

  3. 03

    Modules 5 to 6

    Movement and collisions to Screens and state

    Move entities with velocity, detect and resolve rectangle collisions against entities and tiles, tune jump behaviour, and understand where Box2D fits at concept level.

    You build: Guided project “Collidable level with screens and saves”: Tile collisions, tuned jump and a documented collision decision.

  4. 04

    Modules 7 to 8

    Audio and UI to Desktop game build

    Play sound effects and music with a game-level audio event layer, and build menus and HUD with scene2d Stage, Table and listeners while keeping game input working.

    You build: Guided project “Audible, operable desktop release”: Audio event layer, HUD and command-driven menu.

Full curriculum

8 modules and 48 lessons, 25 to 42 hours of study

01Game lifecycle6 lessons, 3 to 4 hours

Lessons

  • Generating a LibGDX project and reading its module layout
  • Tracing create, resize, render, pause, resume and dispose
  • Using render as the game loop with Gdx.graphics.getDeltaTime
  • Separating game update from rendering
  • Stepping time with a fixed-timestep accumulator
  • Testing game logic with JUnit and a fixed delta

After this module you can

  • Generate a desktop-capable project with gdx-liftoff and identify which Gradle module holds shared game code, which holds the desktop launcher, and where assets live.
  • Predict the order and number of lifecycle calls for a launch, a window resize, a minimize and restore, and an exit by logging each ApplicationListener method.
  • Write JUnit tests that drive a world with a scripted sequence of fixed deltas and assert exact positions, scores and entity counts.
02Rendering and cameras6 lessons, 3 to 4 hours

Lessons

  • Clearing the screen and drawing a texture with SpriteBatch
  • World units, pixels and the y-up coordinate system
  • Positioning with an OrthographicCamera and its combined matrix
  • Choosing FitViewport, ExtendViewport or ScreenViewport and handling resize
  • Following the player with a clamped camera
  • Rendering a Tiled map with TmxMapLoader and OrthogonalTiledMapRenderer

After this module you can

  • Render one Texture per frame between SpriteBatch begin and end after clearing the screen, and explain which objects must be created once and disposed.
  • Choose a world-unit scale, convert between tile and world coordinates, and predict where an image appears given its bottom-left origin and y-up axis.
  • Load a Tiled tmx map, choose a unit scale, set the renderer view from the camera, render, and read a tile through a TiledMapTileLayer cell.
03Input6 lessons, 3 to 4 hours

Lessons

  • Polling the keyboard to steer a player
  • Receiving one-shot events through an input listener
  • Converting pointer coordinates to world coordinates
  • Isolating devices behind an InputState snapshot
  • Buffering and edge-detecting presses for jump and fire
  • Combining a game processor with a UI stage and controllers

After this module you can

  • Poll arrow keys each frame, turn them into a movement direction and scale the result by speed and delta, and list the caveat about opposing keys.
  • Register an input listener to receive key-down events once per press, and decide which actions belong to events and which to polling.
  • Explain input ordering when a UI stage and gameplay both want events, and decide how to chain them.
04Assets and disposal6 lessons, 3 to 4 hours

Lessons

  • Recognising which objects must be disposed
  • Loading files from the internal asset area
  • Queuing and retrieving assets with AssetManager
  • Building a loading screen from getProgress and a time budget
  • Unloading, reference counts and clear versus dispose
  • Packing sprites into atlases and auditing leaks in tests

After this module you can

  • Use the Disposable contract and the memory-management list to decide, for ten given types, whether they need an explicit dispose call and when to call it.
  • Locate files with Gdx.files.internal, understand where the asset folder lives in the generated project, and diagnose a missing-file failure.
  • Explain why sprites are packed into atlases and write a test using a counting wrapper that proves every created resource was disposed exactly once.
05Movement and collisions6 lessons, 3 to 4 hours

Lessons

  • Modelling entities with position, velocity and per-step movement
  • Detecting overlaps with axis-aligned rectangles
  • Resolving collisions against solid tiles one axis at a time
  • Implementing gravity, grounded state and jump tuning
  • Placing Box2D in a game: World, bodies, fixtures and steps
  • Choosing AABB tile collision or Box2D and syncing bodies to sprites

After this module you can

  • Create an Entity data class with position and velocity and move it each fixed step, with speed limits applied in game code and physics derivations left to the earlier course.
  • Test overlap between entity rectangles with Rectangle.overlaps semantics and check touching-edge cases.
  • Decide between hand-written collision and Box2D for three game designs and describe how a body position drives a sprite, plus concept-level contact events.
06Screens and state6 lessons, 3 to 4 hours

Lessons

  • Splitting a game into Screen objects
  • Modelling game state as an explicit state machine
  • Pausing in-game versus the platform pause callback
  • Persisting settings with Preferences
  • Saving and loading a versioned game save
  • Restarting and resetting a level without leaking or carrying stale state

After this module you can

  • Divide a game into menu, play and game-over screens where each owns its resources, and trace show, render, hide and dispose across switches.
  • Define an enum of states and a transition table for menu, playing, paused, and game over, and test that illegal transitions are rejected.
  • Reset the world deterministically on restart and prove with a test that two runs from the same seed and inputs end identically.
07Audio and UI6 lessons, 3 to 4 hours

Lessons

  • Choosing Sound or Music and controlling playback
  • Routing gameplay events to audio through an event queue
  • Building a scene2d Stage with Actors and the act and draw loop
  • Laying out a HUD with Table and Skin
  • Wiring buttons and listeners to screen changes
  • Keeping UI scaled, audible and operable across window sizes

After this module you can

  • Choose between a short Sound and a streamed Music for given assets, set looping and volume, and plan disposal for both.
  • Emit named events from the world, translate them to audio calls in an AudioPlayer interface, and test that each event leads to exactly one call without sound hardware.
  • Make the Stage follow window changes, expose volume and mute settings, and verify operability with a checklist of window sizes and keyboard-only reachability.
08Desktop game build6 lessons, 3 to 4 hours

Lessons

  • Configuring the LWJGL3 desktop launcher
  • Producing and running the desktop jar with lwjgl3:dist
  • Reading platform notes for Android, HTML and iOS targets
  • Preparing a distribution package with licences and a JRE decision
  • Measuring frame time and per-frame allocations
  • Integrating the capstone and running the release checklist

After this module you can

  • Edit window title and size in the launcher's configuration method and decide which settings belong in launcher code versus game code.
  • Build the runnable jar with the Gradle task, locate it in the output folder and run it with java -jar, recording the JDK used and the exact output path.
  • Assemble the tested game, run the full JUnit suite, build the jar, play the documented scenario and complete the release checklist with evidence.

What you'll build

4 guided projects along the way, then a final project.

  • Tested clock-and-camera sandbox

    after module 2
  • Controllable character with asset ownership

    after module 4
  • Collidable level with screens and saves

    after module 6
  • Audible, operable desktop release

    after module 8

Final project

LibGDX game with tested input rendering collision and resource lifecycle. Choose one option: Top-down collector; Side-view platformer; Arena survival game.

What you submit

Source and artifact submission: repository link, the built jar and the release folder. Functional checks: a JUnit suite covering fixed-step stepping, input replay, collisions, state machine and save round trip, run on a clean checkout.

How it's reviewed

Trainer review against the rubric: Lifecycle and disposal correctness (ledger balanced) Determinism of tests (fixed delta, seeds) Input, collision and rendering separation from game rules Save and settings robustness.

Where you'll use it

  • Build a tile-map game with collisions and test movement logic with replayed input.
  • Package a desktop build and make sure textures and sounds are disposed correctly.

Roles that use these skills

  • Game developer
  • Java developer
  • Gameplay programmer

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

What do I need before I start?

Prerequisite courses: Java Programming, Mathematics for Programmers: Discrete and Applied Foundations. Comfortable Java: classes, interfaces, collections, exceptions, and running a Gradle-based project from a terminal (the existing Java course, not re-taught here). Basic vectors and coordinates from the discrete and applied maths course are assumed for reading positions and directions; this course does not teach physics or maths derivations. A JDK and a desktop with OpenGL support are needed to run the game window; all graded checks are JUnit tests that need no window. Alternatives: equivalent Java experience shown by a diagnostic (write a class with an interface, a List and a unit test). Object-oriented design is helpful and referenced, not required.

Do I get a certificate?

We do not issue certificates until you successfully build and demonstrate your live project. Module and final assessments are planned; the module pass rule is proposed, not final. Certificates are issued by OUTLEARN staff; nothing is issued automatically.

Where do the labs run?

Learner's own machine with a JDK, the Gradle wrapper from a gdx-liftoff project, JUnit for logic tests, and a desktop with OpenGL for the window.14.2 listed as latest/release, last updated 2026-06-05; the project-generation page recommends Java 8 as default and mentions 11 and 22). No LMS runner is assumed and no production server is used.

Be first in when Java Game Development with LibGDX opens

Email us and we will tell you as soon as enrolment opens.

Notify me when it opens
₹399Opens soon
Notify me