There are games that have already done something similar:
Secret Maryo http://www.secretmaryo.org/
Super Tux https://www.supertux.org/
Both games are open source, so you can find author e-mails and ask them if they had any problems. The games have been out there for years, so someone would probably reach out to them by now.