Zayn Malik has been transformed into an animated version of himself for the latest Harry Potter mobile game.