You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the game dimensions are a different aspect ratio than the screen dimensions, all canvases are drawn shifted relative to what they should be. It was an issue that was bugging me for a while, and pgimeno on the love2d forums helped me resolve it.
This only happens when the canvases are drawn in love.update (it works fine if the canvases are drawn in love.load).
pgimeno helped me resolve the issue by adding love.graphics.origin() before i draw the canvas. This resolves the issue, but the behaviour is still not what I'dve expect, so it might be considered a bug.
Example:
This should a 1280x720 blue rectangle over a 1280x720 game (when the screen is 1500x720):
The canvas (blue) appears shifted right relative to where it should be by 110px (which is the same as how much the game is shifted relative to the screen, but this is an extra 110px on top of that).
The text was updated successfully, but these errors were encountered:
When the game dimensions are a different aspect ratio than the screen dimensions, all canvases are drawn shifted relative to what they should be. It was an issue that was bugging me for a while, and pgimeno on the love2d forums helped me resolve it.
This only happens when the canvases are drawn in
love.update
(it works fine if the canvases are drawn inlove.load
).pgimeno helped me resolve the issue by adding
love.graphics.origin()
before i draw the canvas. This resolves the issue, but the behaviour is still not what I'dve expect, so it might be considered a bug.Example:
This should a 1280x720 blue rectangle over a 1280x720 game (when the screen is 1500x720):
The conf.lua
The main.lua:
The canvas (blue) appears shifted right relative to where it should be by 110px (which is the same as how much the game is shifted relative to the screen, but this is an extra 110px on top of that).
The text was updated successfully, but these errors were encountered: