G.I. Joe: The Rise of Cobra is a 2009 American action thriller based on the G.I. Joe toy franchise, with particular inspiration from the comic book and cartoon series G.I. Joe: A Real American Hero. The film is directed by Stephen Sommers, produced by Lorenzo di Bonaventura and co-written by Stuart Beattie, based on a 1998 screenplay by John Paul Kay. G.I. Joe features an ensemble cast based on the various characters of the franchise. The story follows two American soldiers, Duke and Ripcord, who join the G.I. Joe Team after being attacked by MARS troops. After leaked drafts of the script were criticized by fans, Larry Hama, writer of the comic, was hired as creative consultant and rewrites were made. Rise of Cobra opened at the top of the box office and grossed over $302 million worldwide by the end of its run. Critical reception was mostly negative, with criticism of the writing and acting. The sequel, G.I. Joe: Retaliation was released on March 28, 2013.