wanting to portray a location entirely controlled by ghosts. Ghost behaviour was a combination of that implemented in the first two games, with both ghost movement and ghosts vanishing being implemented to challenge players. Kikuchi felt that the team had managed to include all their planned concepts for Fatal Frame III in the final product. The story was written by Shibata and Tsuyoshi Iuchi. Iuchi wrote the game script, reprising his role from the first two games. Shibata drew inspiration from his nightmares when creating the setting, including a specific dream about a haunted mansion filled with the spirits of dead loved ones. The horror theme was also meant to be "indigenous" as opposed to the fantastic threats in earlier entries. Due to the theme of suffering and the presence of the tattoo, a more mature heroine was chosen as the lead. Fatal Frame III acted as a sequel to the two previous game, though its story was also written to be understandable to series newcomers. Kei was included based on fan requests for a male protagonist. While earlier games ended in tragedy, Fatal Frame III was written to start with the worst possible situation and end with a positive resolution. While writing the ending, Shibata chose for Rei to live while remembering Yuu, as death would be a betrayal of the memories of Yuu and those she meets in the Manor of Sleep. This approach was inspired by a tanka by Japanese writer Kyoko Inaba. The ending where Rei, Miku and Kei all survive is considered the canon ending. Shibata's original ending draft was thirteen minutes long, and he was forced to trim it down into the final version. Rei was designed to be more mature than earlier Fatal Frame protagonists while retaining their established slender style. Her role as a photographer also salvaged a discarded plan for the first game of having a professional photographer as protagonist. Miku's design did not change much from the first game, being altered to show her growing maturity. Kei's design was based on his personality as being unlucky with women and stealth-based gameplay abilities. The key color for the game was blue, with the Japanese character for it being incorporated into the title as a double-meaning. The engine was improved, allowing for more detailed environments and ghost designs to increase the sense of fear for players. The CGI cutscenes were created by