SNEeSe is an emulator for the Nintendo SNES console for x86 PCs. SNEeSe is written in 32-bit C, C++, and NASM x86 assembly. Project goal is to make as accurate, functional, and usable an emulation core as is reasonably possible.
Or when your player dies, you can say in code, if enemy exists, do nothing, but if enemy does not exist, then create enemy at certain spot. (This would be a pain tho for lots of emeies)