2D Game Development with LibGDX

This course explores how to use LibGDX to build 2D games that run anywhere, from web browsers to mobile devices. We start with simple drawings, and then turn to simple animations, physics, and user input handling. Finally, we create a full game, called Icicles, where icicles rain down from the top of the screen, and the player must dodge them using the arrow keys or by tilting their phone.


Need help getting started?


Contents

Course Resources

Course Code

The course code can be found in this GitHub repository.

Additional Resources

Course syllabus

Level 1-1: Intro to Cross Platform Game Development

Learn how LibGDX allows you write a game once, then deploy to to both Android and iOS devices, as well as desktop computers and web browsers. Also explore the functionality that the LibGDX game framework provides.

Level 1-2: Intro to LibGDX

Import and your first LibGDX project and run it on your computer and Android device. Learn the basic structure of a LibGDX game, and the

Level 1-3: Drawing

Use the LibGDX ShapeRenderer object to draw some simple shapes (and some not-so-simple fractals).

Level 1-4: Cameras and Viewports

Use a camera to focus the player's field of view on a portion of a larger game world, and learn to use viewports to simplify camera management.

Level 1-5: Movement

Create simple animations and physics effects by updating the game world over time. Also learn to break up a complex game into separate screens.

Level 1-6: User Input

Handle key presses, touches, and accelerometer input.

Level 1-7: Growing Icicles

Create the core of Icicles, including player controls.

Level 1-8: Polishing Icicles

Add scoring, a head-up display, and a difficulty select screen.

Acknowledgments

Thanks to Kagure Kaube and Megan Smith for mad video editing skills. Thanks to Nathaly Machatius and Kim Dryden for their patience and heroic efforts to manage the unmanageable. Thanks to James Williams for making sure we didn't wander off into the tall grass too often. Thanks to Louis Webb and Ophir Silverman for finding ALL THE BUGS in the course code.