the monster increases his speed. The player can choose between keep escaping him or hide. Once in the hideout, the monster will search the player in the nearest hideouts randomly, with a success probability of 1/4. If he finds the player, the player dies. If not, he hide and once the player exit the hideout, he/she has an advantage of some seconds before the monster appears again. The player must find more ammo to kill the monster. If the player kills him, the player wins.
The way the monster AI works is with pathfinding (A*) searching for the player. He can go through the walls because is some kind of ghost, but the player is limited to the map, so he/she must be careful while running. The ammo spawns randomly, so part of the game is to search for them. The game also has 3 difficulty modes (Easy, medium or hard) which are defined by how much life the monster has. Depending on the difficulty, there are 3 different rankings.
Git Repository: https://github.com/SergioQV/UnityGame1-YouWontScape