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.portify wrote:Just pass all coordinate input through love.window.fromPixels and all coordinate output through love.window.toPixels.
Understanding Scaling for different resolutions
- slime
- Solid Snayke
- Posts: 3162
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Understanding Scaling for different resolutions
Who is online
Users browsing this forum: No registered users and 3 guests