Huanted is the game I made for the final project for game design class. It features a first person controller in a 3D environment.
In this game, the player plays a ghost that is haunting this house in the middle of the woods. Using ghost power to interact with objects in the house, the player will try to scare the man reading by his bookshelf. The goal is to scare the man out of his house.
NPC tries to trun off the record player that started by the ghost (i.e. the player)
I used a state machine to controll the movement of NPC over time. The red bar on left side of the screen indicates the current "scared level" of the NPC, corresponding to the state of NPC. There are total of 5 states for the NPC: