Page 1 of 1

Scaling love.graphics calls

Posted: Thu Dec 01, 2016 3:32 am
by slimefriend
Hello!

I'm certain this has been answered before, but I'm still very much a love2d noob so I don't know exactly what to look for.

I have a game using pixelart, and I want to be able to call stuff like love.graphics.line() and love.graphics.rectangle() and have the line/rectangle scaled according to the scale set by love.graphics.scale(). Right now the result of love.graphics.line() looks like this:
lovegraphicsweirdness.PNG
lovegraphicsweirdness.PNG (24.68 KiB) Viewed 1300 times

Re: Scaling love.graphics calls

Posted: Thu Dec 01, 2016 5:58 am
by Jasoco
Create a canvas of the resolution you want the pixel stuff to be and draw to that, then scale that up instead.