Okay so, I want to make a (generic) platformer game where each level/stage consists of multiple rooms. The player can go back and forth between rooms.
What are the ways to go about this? I was thinking all the rooms must be different scenes or a single scene has multiple rooms. But would that really be the best way in terms of performance? I would also like each room to have it's own camera bounds, enemies and traps.
Assuming all my rooms for that level are in one single scene, if I have multiple enemies and traps going on in different rooms, how would I optimize it so that only the entities in the current room are shown.
How are rooms/screens in games like Celeste and Hollow Knight made?
TL;DR how do I implement a room system similar to the ones in, let's say, Celeste?