Chapter 8Health and Melee Combat
The brave protagonist rounds a corner in the dungeon and spots a vile goblin. Charging forward, she exchanges blows with the creature until she emerges victorious. Suddenly conscious of her wounds, she stumbles back into the corridor to rest—hoping that the other goblin won’t find her.
This scene is typical of fantasy novels and roleplaying games like Dungeons & Dragons. Implementing this scene in-game requires several elements. The hero can move and fight the goblin. The goblin can fight back. The hero is conscious of their status and realizes that they need healing. They heal by hiding in a corner and waiting.
In the previous chapter, you made the monsters move randomly. This chapter focuses on making the introductory ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access