top of page

BattleBot Project

This class Unity project began with the creation of my own unique battle bot. When we later revisited the project, I had the chance to create an AI to play my custom bot.

​

The overarching AI structure is a behavior tree with a utility score system to aid the decision-making.

​

The video on the right showcases the AI in action as well as the utility scores calculated when determining its next move.

Bot Abilities

BB_BladeRush.gif

Fast damaging attack with forward momentum.

Cannot be used again until cooldown ends, represented by the color of the bot's backside vent.

Pulls in all of the bot's existing projectiles towards itself. Can be used as a defensive move or to set up a trick shot.

Shoots a persisting projectile. The speed of the projectile is based on how long the attack is held. A maximum of five projectiles can be shot with the number remaining represented by the glowing squares on the bot's top.

Pushes away all of the bot's existing projectiles.

Great for cornering an opponent.

Performs a small area of effect attack that can push away nearby projectiles. Best used after pulling  projectiles close.

My interest in AI lead me to implement my own version of an utility-based behavior tree as outlined in Chapter 10 of Game AI Pro, a collection of game AI articles edited by my professor Steve Rabin.

​

The scores for each of my bots options are based on factors such as: distance from the enemy, ammo remaining, cooldown, surrounding objects and time since last use. To add some unpredictability, the next action is chosen through weighted randomness rather than selecting the highest score.

Click to enlarge

©2022 by Carlos Esteban Garcia-Perez. Proudly created with Wix.com

bottom of page