Game Combat

1 min. read

Combat Systems

Characters with a base set of attributes that increase as they progress through the game
Items and equipment that augment character attributes and enable abilities
Enemies with unique attributes and abilities user to attack players
An element of chance to determine the success and impact of attacks

Elements of Combat

Combatants - The game entities that engage in combat
Attacks - Data which define how combatants do damage
Weapons/Spells/Skills - Objects that enable and/or modify attacks
Chance - Randomness to keep combat engaging

Combat Systems Should be:
Flexible
Modular
Extensible
Integrated into the large game framework

Combat Flow

Combat Framework

AttackDefinition - A class applied to our combatants that defines the details of our attacks
Attack - A class containing just the damage information to be applied to the target
IAttackable - An interface implemented by one or more behaviours on a target when attacked
IDestructible - An interface implemented by one or more behaviours on a target when destroyed

Paid Courses

https://app.pluralsight.com/library/courses/swords-shovels-combat-system/table-of-contents

References

How To Make RPG Combat More Interesting