The Legend of Zelda: Ocarina of Time is the fifth main entry in The Legend of Zelda series, and the first to both be on the Nintendo 64 and in 3D. It was developed by Nintendo, with series protagonist Link tasked with rescuing Princess Zelda and Hyrule from the villain, Ganondorf. Link interacts with a variety of characters throughout the game, some friendly and some antagonistic. The game's cast had various points of inspiration, including works by J. R. R. Tolkien and the TV series Twin Peaks. The staff was told to focus less on the plot and more on the characters, and emphasis was put on giving them interesting and realistic animations to make them more real. Some members of the cast were also intended as references to previous The Legend of Zelda games.