Trending
Opinion: How will Project 2025 impact game developers?
The Heritage Foundation's manifesto for the possible next administration could do great harm to many, including large portions of the game development community.
A high-level look at the design of unit behaviour in our tactics game Trudy's Mechanicals.
When I initially sat down to design Trudy's combat, I wanted each unit to have a unique feel. Different attributes and abilities were a good start, but to truly achieve this, all entities had to behave in a distinct fashion.
To begin, I brainstormed a variety of scenarios I wanted to see in-game. These ranged from the somewhat common (an area-effect unit preferring to target foes clumped together) to the more original (a Steampunk robot trying to activate random machinery and only attacking when provoked).
Once I had a list of these, I came up with some character types that would facilitate each case.
Below are three examples of our finalized units, along with a short description and their AI routines. The AI is a bit simplified from the code, but shows a sorted priority of possible behaviours.
Corsair
If badly wounded, randomly alternate between the following actions:
Retreat to closest exit.
Head for a healing station, if available.
Take pot-shots at closest enemy in range.
If defending, take pot-shots at first enemy that approaches.
Grab any nearby treasures.
Man any nearby turrets.
Use saw-blade if upgraded and surrounded by 2 or more enemies.
Attack closest enemy that's weak to the flintlock rifle.
Attack closest enemy that's low on health.
Pursue closest enemy until in flintlock range.
Bruiser
The big and burly Bruiser is slow to act, but capable of travelling great distances once he's rolled up into a ball. As the muscle of the Underworld, the Bruisers pride themselves on their reputation and never run away from a fight.
If badly wounded, randomly alternate between the following actions:
Put up defenses and wait.
Retreat to closest alarm station to call for backup.
Don't move if current position blocks projectile attackers from hitting team members.
Roll into closest enemy by a wall in order to push them back and cause extra damage.
Roll into any nearby enemy.
If upgraded, follow up a rolling attack with a ground slam for extra damage.
Activate closest alarm station if requiring backup.
Retreat from flying units that can't be targeted with the roll attack.
Pursue non-flying enemies out of range until adjacent to them.
SewerSlug
The Sewer Slugs mutated in the slop cocktails of the Underworld, slowly filling with acid and becoming living batteries. Although they're naturally docile, they're considered a dangerous nuisance as they don't avoid human habitats.
If dying, explode in an acidic burst that showers the surrounding enemies in corrosive fluids.
If badly wounded, randomly alternate between the following actions:
Retreat to closest nest if flying-charge is ready.
Use self-healing ability.
If not attacked, simply move between closest nest and hatchery.
Fire electric goo on closest enemy to damage and stun them for one turn.
If flying-charge is ready, move toward closest enemy.
If flying-charge is not ready, pass to regain it.
This highly autonomous behaviour means that there's no "field general" controlling the entirety of the opposing force. Instead, the combat takes on a gang-skirmish feel where each unit follows its own whims.
For quick, small scale battles where the units are all predefined, we found this to be a generally more fun approach.
Radek Koncewicz is the CEO and Creative Lead of Incubator Games, and also runs the game design blog Significant-Bits.
Read more about:
BlogsYou May Also Like