sentence: the next year , the japanese company square was struggling and hironobu sakaguchi decided to make his final game -- a role-playing game ( rpg ) modeled after dragon quest and titled final fantasy -- resulting in the series , which would go on to become the world 's most successful rpg franchise spawning 15 main series titles to date and a host of spin-off games , movies and other media .