← all posts site ↗

horror game killer ai design

spent a while working through the killer ai for a short horror game. the core principle is alien isolation logic. the killer always knows where the player is. it never truly loses you. what changes is how aggressively it commits to closing distance. awareness shifts based on what the player does. running in the open means exact position updated in real time. walking inside a building means estimated zone which floor which wing. standing still means last known position that starts drifting after a few seconds.

the killer switches between three behaviors not phases. pursue when the player is visible and in open ground. direct chase with arrows at range. flank when the player enters a building or gets behind cover. moves to cut off escape routes, enters from a different door, breaks locked doors. ambush when the player has been stationary for more than five seconds. moves to a position directly ahead of their facing direction and waits. every three to five seconds it reevaluates and switches.

the arrow system works as consumables. killer shoots with a clear arc. predictive aiming where the player will be not where they are. arrow lands as a collectible game object. player picks it up with a button press up to three in inventory. use it on a locked door to break glass and open a new area. arrow consumed. the tension is do you use your arrow now or save it. and the room you unlock might already have the killer inside.

the game is survive ten minutes on a campus with a river bridge one building and an open boardwalk area. flashback sequences trigger at key moments revealing the killer's backstory in fragments. after ten minutes a hidden crypt unlocks under the building. inside are weapons from different eras suggesting this has been happening for thousands of years. player picks up a modern handgun. cut to black. no final combat. just implication. scoped for itch.io length. maybe four to six weeks of development.