Book Image

Mastering LibGDX Game Development

By : Patrick Hoey
Book Image

Mastering LibGDX Game Development

By: Patrick Hoey

Overview of this book

Table of Contents (18 chapters)
Mastering LibGDX Game Development
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 7. Time to Show These Monsters Who's the Boss

A core component of any RPG is a battle system in which a player's character fights an enemy (or enemies) in hostile territory for the purpose of gaining experience and gold and completing quests. This chapter will cover the topics involved in creating this system, starting with the look and feel of the battle system as it relates to BludBourne. Our retro look and feel is inspired by elements of Dragon Warrior with a simple, but effective UI design. Other topics covered include handling leveling for the player as they progress, updating status during a battle, creating randomized monsters, and creating a flexible script for adding monsters in specific battle zones.

In summary, we will cover the following topics in this chapter:

  • A battle system with enemy NPC creation and battle mechanics

  • A battle UI used for encounters with monsters

  • HUD updates tied with state changes in an environment such as damage (health bar, magic bar, and experience...