How to render panoramas?

Hi everyone

I want to use blender to make a game like myst so I created a test landscape and put some cameras down on it.

So I need to make renders like this
(found on google images).

I was searching for how to do this and found some tutorials using the “pano” option, but it’s not cubic and the sides don’t match up and it makes really weird distorted images anyway.

Any ideas how can I go about getting it to render like this? Thanks very much