Implementing Combat

Learn how to attack monsters and how health bars and monsters’ tooltips will show damage.

Combat plays a large part in most games, so it’s worth the effort to develop a flexible system. We now have all of the elements required to implement combat. Monsters and the adventurer have health, we know where they are, and we’re displaying the results. Let’s implement bump-to-attack melee combat.

Get hands-on with 1200+ tech skills courses.