CHAPTER 2

image

The LibGDX Framework

This chapter introduces many of the major features of the LibGDX library. It illustrates how to use them in the process of creating a game called Cheese, Please!, where you help the player’s character, Mousey, scurry around the floor while looking for a tasty piece of cheese. A screenshot of this game in action appears in Figure 2-1. You’ll see a few ways to accomplish standard game programming tasks, such as representing game entities. Then, you’ll incrementally add a variety of features, such as animation, a user interface, and an introductory menu screen.

Figure 2-1. The main screen for the game Cheese, Please! ...

Get Beginning Java Game Development with LibGDX now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.