There is no confirmed answer here, so treat guesses as guesses. Cave Story was famously the work of one developer over several years, which is part of why it is so admired.
If you want to make something in the same spirit, a general-purpose engine is a sensible place to start. GameMaker, available from YoYo Games at www.yoyogames.com, has a free version and a long history of small indie hits built with it.