Warner Bros.’ videogame division will continue to play with Legos through 2016.

The studio has renewed a deal with the toymaker that will enable TT Games to continue to produce titles starring Lego characters.

TT Games produced the hits “Lego Star Wars,” “Lego Batman” and “Lego Indiana Jones,” and its next game is “Lego Harry Potter: Years 1-4,” which hits store shelves later this year.

Warner Bros. acquired TT Games in 2007 as part of the studio’s ongoing effort to build its internal videogame division, which produces original titles as well as a slew of titles based on its movie and TV franchises for a variety of audiences.

At the same time, the games have enabled Lego to expand beyond solely selling playsets in toy stores, while also upping interest in the building blocks.

A Lego theatrical pic is also in the works at WB, while Lego recently released the direct-to-DVD feature “Lego: Adventures of Clutch Powers” through Universal.

TT’s first Lego game, “Lego Star Wars: The Video Game,” bowed in 2005.

The Lego games, which appeal primarily to kids and families, have sold nearly 50 million units worldwide, the studio said.

“We are very fortunate to have the opportunity to continue the successful partnership between this legendary company and the talented TT Games, which will enable us to further expand our slate of widely recognized, family-friendly games,” said Kevin Tsujihara, Warner Bros. Home Entertainment Group president, in a statement.