Summary

In this chapter, we first learned the basics of how UIs are created with LibGDX by understanding widget styles, texture atlases, 9-patch images, and creating skins for the widgets. We then took this foundation and implemented a HUD, a UI for player status, a UI for player inventory, screen UIs for the main screen, and loading game profiles. Finally, we implemented a save and restore solution in order to persist our game profiles using the observer pattern.

In the next chapter, we will begin to look at speech windows and dialog trees for NPC interaction and also implement a shop store UI with a buy and sell transaction system.

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.