It would be illegal unless Rovio gave you permission or they released an SDK themselves which is unlikely if they can continue to make a small, but steady stream of money from level packs.