James and Hart will play mismatched brothers in the film that centres on Hart's character, who lives in the shadow of his larger-than-life sibling, but gets a chance to prove himself when he attends a fantasy basketball camp.

Production on the project was originally set to start in 2011, but producers Brian Grazer and Michael Rosenberg shelved the project after the Heat lost the NBA Finals, because they feared he would face criticism for spending the following summer shooting a movie instead of working on his game, according to TheWrap.com.

James and Hart will produce the movie alongside Grazer and Rosenberg, with Hart writing the script.

Production is set to begin next summer.

In addition to his big screen debut, James is also developing a TV comedy series with Glee actor Mike O'Malley.