A while ago I made a "game engine" that turns a psd file with layers into a dress-up game (html5 or exe included, others you can build yourself). The repackaged version runs much faster than it used to but otherwise hasn't changed.
lampy.casa/mousePSD/