So I'm trying recreate the flappy bird game for android but flappy bird was made for portrait mode and the android version of love2d seems to start with landscape mode.
I've tried to fix this by interchanging the screen width and height of my window in the conf.lua file, like so
All that's needed for portrait mode is for the height to be larger than the width. Even this should work:
t.window.width = 1
t.window.height = 2
Because you cannot change the actual screen resolution on Android, the width and height is only used by LÖVE to determine the wanted aspect ratio and whether landscape or portrait mode fits the ratio better. There's currently no other way to tell LÖVE what orientation you want.
ReFreezed wrote: ↑Wed Oct 13, 2021 4:24 pm
Because you cannot change the actual screen resolution on Android, the width and height is only used by LÖVE to determine the wanted aspect ratio and whether landscape or portrait mode fits the ratio better.
Ohhh is that why love.graphics.getDimensions() still gives me landscape dimensions?
ReFreezed wrote: ↑Wed Oct 13, 2021 4:24 pm
Because you cannot change the actual screen resolution on Android, the width and height is only used by LÖVE to determine the wanted aspect ratio and whether landscape or portrait mode fits the ratio better.
Ohhh is that why love.graphics.getDimensions() still gives me landscape dimensions?
That's really help tho, thanks!
You are need to wait for it, print the getDimensions in the love.draw