With “San Andreas” having passed the $400 million worldwide box office milestone this past weekend, it was only a matter of time before the team behind it found another project to tackle.

Dwayne Johnson is set to star and Beau Flynn is on board to produce the action pic “Rampage,” based on the 1980s Midway video game.

Ryan Engle is penning the script, with plot details being kept under wraps. In the video game, players were tasked with stopping a giant gorilla, a lizard and a wolf as they wreak havoc across America.

Flynn will produce via his FlynnPictureCo. banner. John Rickard will also produce via his Rickard Pictures. Richard Brener, Michael Disco and Sam Brown will oversee for New Line.

Production is likely to start sometime in the summer of 2016 as Johnson’s schedule is filled until the next spring. Johnson is currently filming the action comedy “Central Intelligence” alongside Kevin Hart; New Line will bow that film next summer.

Though HBO has not yet ordered a renewal, Johnson is also keeping his winter schedule open to film the second season of “Ballers.” Given the show’s great start on Sunday (2.2 million viewers), that pickup looks likely.

Johnson is also planning to film the eighth installment in the “Fast & Furious” franchise next spring, reprising his role of Hobbs.

Johnson is repped by WME, the Garcia Companies and Gang Tyre. Deadline Hollywood first reported the news.