LEGO Harry Potter: Years 5-7 is a LEGO game for the Nintendo 3DS. Developed by Traveller's Tales and published by Warner Bros. Interactive, the game is based on the final four Harry Potter films, and was released on November 11, 2011, being the LEGO game for the system, following LEGO Star Wars III: The Clone Wars, and LEGO Pirates of the Caribbean: The Video Game.
The game is based on Harry Potter and the Order of the Phoenix, Harry Potter and the Half-Blood Prince, Harry Potter and the Deathly Hallows - Part 1 and Harry Potter and the Deathly Hallows - Part 2, recreating the events of those movies in humorous LEGO form.
Lego Harry Potter's gameplay is similar to that of most previous Lego games, with an emphasis on collecting and exploring. Casting spells is an integral part of the gameplay, with a wide range of spells available for unlocking as the player progresses. As there are many spells available in the game, the player can use the spell wheel to select the spell. Potion-making is another integral feature; potions can help the player complete levels or, if created incorrectly, have adverse side effects. 
- ↑ http://www.gameinformer.com/b/news/archive/2011/05/19/harry-potter-saga-to-conclude-in-lego-form.aspx