Combat

RoguelikeDev Builds a Roguelike, Part 6

13 minute read Published:

Part 6: Preparing for Combat
Welcome back to my series about building a Roguelike in Go (and following along with RoguelikeDev’s dev-along)! Last time, we added a field of vision algorithm to our game, putting the player in the dark, except the immediate area surrounding them. In this installment, we’re going to start adding the framework for monsters that inhabit the dark corners of the caverns. In particular, our goal will be to randomly place Game Entities, representing things such as Goblins, Troll, and Orcs, around our generated caverns, make sure they get to take actions, and allow the player to interact with them.