Page 1 of 1
[Solved] Resizing Rendered Area
Posted: Tue Jul 07, 2015 4:03 pm
by MercatorK
Hello! Currently with my project I'm trying to go for an old-school DOS game look with small-pixel particles and whatnot. However, I want it to be authentic, and all of the sprites to be properly in-scale, meaning I actually want the game to render in an area like 320x240 and then scale up the size. I've been looking on the wiki for a solution but the closest thing I can find is implementing some sort of camera system, or possibly Canvas. How would I achieve this effect? Thanks!
Re: Resizing Rendered Area
Posted: Tue Jul 07, 2015 7:18 pm
by DaedalusYoung
[wiki]love.graphics.scale[/wiki] should work.
Re: Resizing Rendered Area
Posted: Tue Jul 07, 2015 7:20 pm
by Nixola
The easiest, and best in my opinion, way would be drawing everything to a 320x200 canvas, set its filter to 'nearest' and draw it scaled (by integer numbers! Don't ever scale anything by decimal numbers if you don't want to cause massive eye bleeding!)
Re: Resizing Rendered Area
Posted: Tue Jul 07, 2015 10:51 pm
by MercatorK
Thanks you guys! That did the trick
Not sure how I missed it on the wiki.