AI Shepherds, Sheep & Wolves

Gameplay Video

AI behaviour tree for video game development

Sheep AI Behaviour Tree

AI behaviour tree for video game development

Wolf AI Behaviour Tree

AI behaviour tree for video game development

Shepherd AI Behaviour Tree

This is a solo project I made hoping to learn more about how to handle large quantities of different AI types. In this game, AI sheep (Teal if wild, White if tamed) graze in search for food pellets, Wolves (large, Red) will hunt the lone sheep, and Shepherds (Pink) will gather in groups to wrangle Sheep and chase away Wolves. If either the Sheep or the Wolves don’t eat, they will starve and despawn.

I personally:

  • Designed behaviours for all 3 AI types

  • Designed AI motivations to mimic real herding, hunting and survival

  • Programmed and integrated all 3 AI trees

  • Designed and programmed survival mechanics

The AI in this simulation have many different states, colours show what state their currently in. Shepherds will form groups with a leader (bright pink) and the followers will accompany them (purple) in their search for sheep. Once they have found a sheep and gained enough followers they will use their numbers to scare off Wolves attacking their herd.

This project taught me a lot about the limits of on screen entities and scripts running on the Unity engine and how to manage large quantities of separate AI and objects at once.

Download on Itch.io now to see the simulation for yourself!

Download the scripts here!

Contact Me!

Blakefisher202@gmail.com
(647) 968-6454

Previous
Previous

AI Fox vs AI Guard