The magic of Harry Potter is coming to the PlayStation 3.

In a partnership with author J.K. Rowling, Sony Corp. has unveiled a new game, Wonderbook: Book of Spells that turns its PlayStation Move motion controller into a magic wand.

The game comes with a book of spells. Gamers wave the wand in prescribed patterns and learn how to cast spells that make fire, unlock gates and move through new stories written by Rowling.