[Solved] Resizing Rendered Area

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
MercatorK
Prole
Posts: 4
Joined: Tue Apr 21, 2015 8:18 am

[Solved] Resizing Rendered Area

Post 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!
Last edited by MercatorK on Tue Jul 07, 2015 10:52 pm, edited 1 time in total.
User avatar
DaedalusYoung
Party member
Posts: 407
Joined: Sun Jul 14, 2013 8:04 pm

Re: Resizing Rendered Area

Post by DaedalusYoung »

[wiki]love.graphics.scale[/wiki] should work.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Resizing Rendered Area

Post 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!)
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
MercatorK
Prole
Posts: 4
Joined: Tue Apr 21, 2015 8:18 am

Re: Resizing Rendered Area

Post by MercatorK »

Thanks you guys! That did the trick :awesome: Not sure how I missed it on the wiki.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests