only designed to support 1-player mode
this is a scrapped aspect of a SCC level, I figured I'd put it out there. defaults to 640x480, can be changed by changing the values of viewport.width and viewport.height. aspect ratios other than 4:3 will be stretched rather than showing black bars.
code
save as viewport.lua, and load in the local/global level script as you would any other API.