It has been confirmed that Warner Bros. has secured the rights to proceed with a horror film adaptation based on the popular mobile game series, "Five Nights at Freddy's."

The upcoming film will reportedly closely follow the story line set by the game franchise, according to The Hollywood Reporter.

The "Five Nights at Freddy's" will be produced by Roy Lee, David Katzenberg and Seth Grahame-Smith. Lee served as the producer of Liam Neeson's 2015 action film "Run All Night." He also worked on the "Poltergeist" remake which is due to come out in May 22.

Katzenberg and Grahame-Smith, on the other hand, are serving as producers for the sequel of director Tim Burton's 1988 horror-comedy film "Beetljuice" starring Michael Keeton, Winona Ryder, Alec Baldwin and Geena Davis.

The "Five Nights at Freddy's" film project is already in the hands of writers. According to Grahame-Smith, the film studio will work closely with the game's creator Scott Cawthon to deliver a different kind of horror movie.

"We're looking forward to working with Scott to make an insane, terrifying and weirdly adorable movie," the producer said in a statement according to The Hollywood Reporter.

The first installment of the "Five Nights at Freddy's" game series first came out for the Microsoft Windows platform in August 8, 2014. It then made its way to iOS and Android devices during the same year.

The game's two sequels were released for the same platforms in late 2014 and in March of this year.

In the game, players take on the role of a newly hired night-shift security guard for Freddy Fazbear's Pizza, a fictional restaurant based on chains such as Chuck E. Cheese's.

Like the real-world restaurant, Freddy Fazbear's Pizza features an animatronic animal band that performs song number during the day to entertain the diners. However, at night, the members of the animatronic band come to life and kill anyone they encounter.

As the security guard, players must survive each shift by using the facilities of the restaurant to keep the murderous animatronic robots at bay, Cinema Blend reported.