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.
Overview
Syllabus
- Intro to Cross Platform Game Development
- LibGDX allows you write a game and deploy it to Android and iOS devices, desktop computers and browsers.,Explore the functionality that the LibGDX game framework provides.
- Intro to LibGDX
- Import and your first LibGDX project.,Run it on your computer and Android device.,Learn the basic structure of a LibGDX game.
- Drawing
- Use the LibGDX ShapeRenderer object to draw some simple shapes (and some not-so-simple fractals).
- Cameras and Viewports
- Use a camera to focus the player's field of view on a portion of a larger game world.,Learn to use viewports to simplify camera management.
- Movement
- Create simple animations and physics effects by updating the game world over time.,Learn to break up a complex game into separate screens.
- User Input
- Handle key presses, touches, and accelerometer input.
- Growing Icicles
- Create the core of Icicles, including player controls.
- Polishing Icicles
- Add scoring, a head-up display, and a difficulty select screen.
Taught by
Jeremy Silver and Peter Heinrich