1 room multiple monster stages

In games like pet battle sim and tapping sim heroes your on 1 island (sometimes afew) and the mob your fighting changes as its HP reaches zero. I’d like to use a similar setup in a different way, the fundamentals should be the same tho

How is this done roughly? id google a guide of some sorts but I dont know what to call this feature

Have a look at this:

It might help.