Let's ignore how it wold actually be coded. And just think about how it would ideally work. How does other big good 2d games deal with?
Locked track (like the camera is stuck on a 1 dimensional line and tries the best to follow)
Follow loosely and just constrained at specific walls (the same as stanncam right now, though it's hard to set up the constraints in the room editor)
Something else?
open to ideas for how to best think up this system
in it, is constrained on top and bottom, making camera be in the middle.