大约 8 个星期
大约 8 个星期
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.
You already know that making and playing games is the most fun you can have with a computer, but if you need more convincing, you should know that over the last decade, mobile gaming has grown into a huge market. It's full of opportunities for independent game developers, or for people looking to join established gaming studios.
If you want the skills to turn your game ideas into reality, or get ready to jump into professional game development, this is the course for you.
This course assumes basic proficiency with Java, including working with collections, implementing interfaces, and extending abstract classes. It is also assumed that you can read and understand documentation and source code.
Proficiency with Git and Android Studio is helpful, but not required.
Build a "Breakout" style game with keyboard and mobile device controls, collision detection, and a defined set of rules to make the base game more difficult.
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, run it on your computer and Android device, and learn the basic structure of a LibGDX game.
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.