Page 1 of 1

viewport.lua: make the screen smaller

Posted: Mon Jul 17, 2017 11:18 am
by The0x539
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.

Re: viewport.lua: make the screen smaller

Posted: Sat Oct 19, 2019 11:55 am
by SPEEDIE
I love this, I changed the res and it looks way more like SMW now, thanks for this!

Re: viewport.lua: make the screen smaller

Posted: Wed Jan 01, 2020 11:20 pm
by CheesyYoY
Woah i needed this! Thanks.

Re: viewport.lua: make the screen smaller

Posted: Fri Jan 03, 2020 2:54 pm
by Hoeloe
This isn't needed in SMBX2 MAGLX3 or later. You can just do:

Code: Select all

local handycam = require("handycam")
handycam[1].zoom = 1.25
And that will do the same job. You can also make it support 2 player mode. You can also add black bars pretty easily yourself.

Re: viewport.lua: make the screen smaller

Posted: Sun Mar 15, 2020 5:47 am
by SPEEDIE
Hoeloe wrote:
Fri Jan 03, 2020 2:54 pm
This isn't needed in SMBX2 MAGLX3 or later. You can just do:

Code: Select all

local handycam = require("handycam")
handycam[1].zoom = 1.25
And that will do the same job. You can also make it support 2 player mode. You can also add black bars pretty easily yourself.
2 bad I already released my episode with viewport though.