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):
We will discuss some of the imports from the source code of Entity
:
package com.packtpub.libgdx.bludbourne; ...
Get Mastering LibGDX Game Development 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.