Search found 3 matches

by ThERAt
Thu Oct 14, 2021 8:34 am
Forum: Support and Development
Topic: Portrait rotation in android - correct way?
Replies: 5
Views: 5833

Re: Portrait rotation in android - correct way?

darkfrei wrote: Wed Oct 13, 2021 5:31 pm You can switch two parameters just as:

Code: Select all

t.window.height, t.window.width = t.window.width, t.window.height
Neat! Ty
by ThERAt
Thu Oct 14, 2021 8:33 am
Forum: Support and Development
Topic: Portrait rotation in android - correct way?
Replies: 5
Views: 5833

Re: Portrait rotation in android - correct way?

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 ...
by ThERAt
Wed Oct 13, 2021 9:29 am
Forum: Support and Development
Topic: Portrait rotation in android - correct way?
Replies: 5
Views: 5833

Portrait rotation in android - correct way?

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 -- conf.lua file fun...