Dan Slott, who wrote Amazing Spider-Man for most of the past decade, celebrated Spider-Man: Into the Spider-Verse's Oscar nominations by revealing the secret history of the comic book crossover that inspired the movie, which won the Academy Award for Best Animated Feature last night.Slott took to Twitter to tell the story of how Spider-Verse came together, starting back in June 2009.RELATED: Into the Spider-Verse Heroes Accept Academy Award in New Image

As Slott tells it, the inspiration for the storyline came from him wanting to tell his version of the plot from the video game Spider-Man: Shattered Dimensions as a comic book. In the video game, an artifact called the Tablet of Order and Chaos caused cross-dimensional trouble for four versions of Spider-Man: Spider-Man, Spider-Man Noir, Ultimate Spider-Man and Spider-Man 2099.

To one-up the game, Slott told Marvel editor Steve Wacker that he wanted to involve virtually every Spider-Man ever into his comic book story arc.

Later in the Twitter thread, Slott adds that Marvel introduced Into the Spider-Verse's core relationship when Peter Parker's Spider-Man and Miles Morales' Spider-Man meet in Spider-Men, a Brian Michael Bendis and Sara Pichelli miniseries that celebrated Spider-Man's 50th anniversary.

After revealing that he turned down the chance to work on that book in exchange for Miles' inclusion in Spider-Verse, Slott added that originally wanted to write Spider-Verse during his run on Superior Spider-Man, when Doctor Octopus controlled Peter Parker's body and was acting as Spider-Man. Due to the nature of the storyline, it was delayed until after that long-term arc had ended.  Slott teased that Spider-Verse would have been "a VERY different story" if it had happened during Superior Spider-Man.

RELATED: Spider-Ham Short Swings Onto Into the Spider-Verse Home Release

In the lead-up to Spider-Verse, Slott says that several more things changed, including the version of Spider-Gwen that would ultimately be featured in the crossover. When the story officially began in 2014, Spider-Verse featured different incarnations of Spider-Man under attack by Morlun and the Inheritors, vamipiric entities who travels from reality to reality whose goal is to eliminate all versions of Spider-Man.

In his post, Slott goes on to talk about how the popular storyline was further adapted into toys, video games, and TV cartoons. The story also spawned several comic book spinoffs and a sequel, Spider-Geddon in 2018. Slott ended by praising Into the Spider-Verse, congratulating the film on its Oscar nomination and saying that it was his favorite Spider-Man movie ever.

RELATED: Into the Spider-Verse's Peter Parker Dresses Down for Oscars Red Carpet

When asked if the "Spider-Wars" story from Spider-Man: The Animated Series, Slott said that the two-part episode wasn't on his radar until after Spider-Verse was over. However, he added that he saw the mobile game Spider-Man Unlimited as a "continuation" of that story, and said that there were initially plans to address it in Spider-Geddon that never came to be.

The Academy Award-winning Spider-Man: Into the Spider-Verse comes to home release on Blu-Ray, UltraHD, 4K and DVD on March 19 and a digital HD release on February 26.