O'Reilly logo

Mastering LibGDX Game Development by Patrick Hoey

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

Implementing your player character with animation

The next class that we will look at in our class diagram hierarchy is the Entity class that can be found at core/src/com/packtpub/libgdx/bludbourne/Entity.java. The Entity class represents the primary game object, including the player character and non-playable characters (NPCs), which can move around in the world and interact with their environment.

Entity

The following class diagram demonstrates the relevant attributes and methods that we are going to use for this chapter (Figure 11):

Entity

Figure 11

We will discuss some of the imports from the source code of Entity:

package com.packtpub.libgdx.bludbourne; ...

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