Understanding Scaling for different resolutions

A project to port LÖVE to Android handhelds
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Understanding Scaling for different resolutions

Post by slime »

portify wrote:Just pass all coordinate input through love.window.fromPixels and all coordinate output through love.window.toPixels.
Indeed – although if you're using love.graphics.scale(love.window.getPixelScale()), then you probably won't want to use toPixels since the scaled coordinates won't be in pixels.
Locked

Who is online

Users browsing this forum: No registered users and 0 guests