I used a tool named Laudelino... that's a little joke, Luadelino is the coder, I do music and graphics, and we both share the level and game design. he code for megadrive using the SGDK, a library that alow you to code in C language for Sega Genesis/mega drive.
Please, take a look on his itch acount too: https://nemezes.itch.io/