O'Reilly logo

Learning Libgdx Game Development by Andreas Oehlke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Adding the Actors

In this chapter we will implement the remaining game objects which represent our actors in the game world. These are the player character bunny head and both the collectible items; the gold coin and the feather power-up. We will complete the level loader by adding support for the actor game objects so that they are handled properly when a level is loaded.

The game will be extended to feature a simple physics simulation that allows any game object to be moved using physical properties, such as velocity, acceleration, and friction. In addition, the game logic will also need to be able to detect collisions of the game objects to trigger certain events. For example, we want the player character to be able to jump, stand, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required