Search found 4 matches

by 9lov
Thu Feb 04, 2021 1:49 pm
Forum: Support and Development
Topic: How to develop adaptive resolution?
Replies: 7
Views: 5391

Re: How to develop adaptive resolution?

1. I don't understand how to choose the resolution for the mobile platform As far as I know, there is a usedpiscale property in conf.lua, and as long as it is true, automatic DPI scaling works. I know that DPI is the density of dots per inch, but how should this affect programming? I can't create a...
by 9lov
Thu Feb 04, 2021 10:28 am
Forum: Support and Development
Topic: How to develop adaptive resolution?
Replies: 7
Views: 5391

Re: How to develop adaptive resolution?

Disabling usedpiscale gives no results;

love.window.setMode(1,2) does not give results;

Code: Select all

function love.conf(t)
	t.window.width = 420
	t.window.height = 840
end
'
And it does not give results.

I'm using Honor 9 Lite, 2160x1080, 5.66"
:x
by 9lov
Thu Feb 04, 2021 8:25 am
Forum: Support and Development
Topic: How to develop adaptive resolution?
Replies: 7
Views: 5391

Re: How to develop adaptive resolution?

For your second question use love.window.setMode(w,h) amd make h bigger than w. https://love2d.org/forums/viewtopic.php?f=4&t=89952&sid=08b9a03b4b1a774ea5cfa6bfcd9c2d04 . As for the rest I use love.graphics.getWidth/Height to draw stuff that I want scaled, so my drawings scale automatically...
by 9lov
Wed Feb 03, 2021 9:58 pm
Forum: Support and Development
Topic: How to develop adaptive resolution?
Replies: 7
Views: 5391

How to develop adaptive resolution?

Hi, I can't figure out the resolution settings for mobile platforms, I'm testing on android. I can't immediately ask a question, I will try to describe my attempts to understand how the screen works in android. For testing, I use Love for Android. 1. I don't understand how to choose the resolution f...