Post

Developing for AI Games

Developing for AI Games

Context

This is a project made for the subject Developing for AI Games.
In this subject, we had to create/solve three different Game AI challenges:

  1. Create a Boids simulation.
  2. Calculate a path in a maze using the A* algorithm.
  3. Create a behaviour tree for game characters using only code.

Boids

This Boids simulation uses the three basic rules of Boids: alignment, cohesion, and separation.
The player can change the settings of the Boids. For this specific project, I added a random modifier to make the Boids look more like flying or clawing bugs.


A* Pathfinding

This exercise was about creating an A* pathfinding algorithm.
A maze is generated, and the player can click on the maze to set a start and end point.
The algorithm calculates the shortest path between the two points.
The base project was provided by my teacher, and I implemented the A* algorithm.


Behaviour System

The behaviour tree task involved creating a behaviour tree for game characters.
The behaviour tree had to be created in code only and be usable in a game engine like Unity.

Behaviour Tree Class Diagram
Behaviour Flow Diagram


This post is licensed under CC BY 4.0 by the author.