Android Question LibGDX screen scale

coldteam

Active Member
Licensed User
Longtime User
hello!
I make a simple game with libGdx

My question:
How to set the size of the elements correctly? On different devices

i test it on my samsung galaxy s5 and s8, screens are very different!
How to size and draw correctly?

For example my texture png 128 x 128 pixels
 

coldteam

Active Member
Licensed User
Longtime User
thanks for the answer!

How best to set up the camera?
B4X:
Camera.Initialize2(1, Height / Width)
Camera.SetToOrtho(False)
like this ? or not ?
 
Upvote 0
Top