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?
The course code can be found in this GitHub repository.
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.
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
Use the LibGDX ShapeRenderer object to draw some simple shapes (and some not-so-simple fractals).
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.
Create simple animations and physics effects by updating the game world over time. Also learn to break up a complex game into separate screens.
Handle key presses, touches, and accelerometer input.
Create the core of Icicles, including player controls.
Add scoring, a head-up display, and a difficulty select screen.
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.