LevelTable

While completing quests that we learned to implement in Chapter 6, So Many Quests, So Little Time…, and defeating legions of monsters on the battle field, the player will receive experience points for helping out the local NPCs and making BludBourne a better place overall. For the purposes of this chapter, a simple leveling system was developed to reward and communicate to the player that they are in fact progressing as their character develops.

The first part for handling the leveling is to develop the attributes that will change according to the different levels. LevelTable is a POJO class that represents all of these attributes for a level, including all the accessor methods. The following class diagram (Figure 10) represents the ...

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.