Reputation: 174
This is my first time to use LibGDX. I have created my first game on Android based on libGDX. The Textures / Images are scaled differently on different screen sizes that the game is impossible to be played. I wanted to use mipmap, and create each image with different size in each folder, but android.os.Bundle can't be imported in the Game class, so I can't use R.mipmap..etc. I have been searching for a solution for two days now. I hope you help me here.
Upvotes: 1
Views: 863
Reputation: 1001
You need to use Scene and add Actor. then you can configure for differently sized screens. I had this problem, and this helped me solve it.
Upvotes: 0
Reputation: 1005
You need to use a viewport. There are different kinds of viewports you can use to make sure your game looks good on all screen sizes.
links:
Aspect Ratios & Viewports tutorial by Brent Aureli
Upvotes: 3