Scaling love.graphics calls

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
slimefriend
Prole
Posts: 7
Joined: Thu Dec 01, 2016 2:45 am

Scaling love.graphics calls

Post 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 1299 times
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Scaling love.graphics calls

Post by Jasoco »

Create a canvas of the resolution you want the pixel stuff to be and draw to that, then scale that up instead.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 6 guests