java - LIBGDX drawables on devices with different densities/resolutions -


i'm new libgdx game development, , have faced first problem. i've created 9.patch drawables (buttons) using texture packer. drawables can used on low density , high density screens , quality same.

if run project drawable on desktop project image shown okay , perfect size. if run project on low density android device, drawable becomes huge (almost half of screen). , if run project on high density android device button becomes small.

so question is, how handle drawables in libgdx, ratio (screen:image size), stays same no matter resolution/density..?

if button text button. change font of text.

if using image button, this might you


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -