Recently I have read here: https://xoppa.github.io/blog/pixels/ that I should not use pixels in my game. But Im not sure that I have understood this so I have some questions.
Xoppa writes that pixels may look different on different devices but I thought all the time that viewport solves the problem of different screen size and aspect ratio. Was I wrong?
How can I draw all assets without using pixels?
I have an idea to support all screen ratios and sizes by using ExtendViewport with the biggest screen that I will support. It looks like this:
viewport = new ExtendViewport(1080, 1920, 1440, 1920, camera);
And everything works well on the smartphone during test. Game is prepared for 16:9 screen and if somebody have for example 4:3 screen he will se more background texture.
But I dont know how game will work on weaker devices. Is one viewport (1920x1440) enough? Or I should make more viewports for several sceen sizes for example 1920x1440, 1280x960 and 800x600?
Just I dont understand why I should not use pixels in game if everything works well. Can somebody explain it to me in simple way?