Manipulating the camera to keep two things onscreen at once?

I’ve seen it done in games like Soul Shatters and Untitled Combat Demo, and I want to use a camera like that for my game. How should I go about this??