Dead Earth

  • Category: Personal Project
  • Project date: Nov 2022 - Dec 2022
  • Project URL: Github

A horror game created to test utilizing A* pathfinding in unity for intellegent movement

Dead Earth is the second game that I made with Unity. It is a horror maze game where the player navigates a maze with the goal of finding 5 keys to escape.

Before this game, I made another game where I had enemies that would move towards the player. After creating that game, I wanted to learn more about how to make enemy pathfinding more intellegent. I have had previous experience with the A* algorithm and wanted to find a way to implement it in a game. The game uses a tile system that is converted into pathable and nonpathable nodes. A path is found between the enemy and the player using these nodes, and then translated into game coordinates. To save performance, the nodes are only updated if the map changes in any way (using levers to close doors, open doors, etc). Every frame, the new player location and enemy location is used to create an updated path for the enemy, resulting in the enemy always taking the most optimal path to the player.