LonamiWebs / Klooni1010

libGDX game based on the original 1010!
https://lonamiwebs.github.io/klooni
GNU General Public License v3.0
233 stars 72 forks source link

Disable resizable property for desktop configuration to avoid stretching of images #60

Closed jaeheonshim closed 4 years ago

jaeheonshim commented 4 years ago

The game would stretch and look really bad if it was resized when running on desktop, so I disabled resizing in the DesktopLauncher class.

Lonami commented 4 years ago

That sounds like a better default, but maybe we want to detect resizing and have the window resize itself to the new size with the aspect ratio kept? Not sure if I explained myself. If the window is 500x1000 and the user changes it to 1000x1000, it would change its own size to 1000x2000. I don't know if it's possible yet but what do you think?

jaeheonshim commented 4 years ago

Actually, I noticed that the resizing issue was only apparent on the MainMenuScreen. I set the viewport of the Stage on the MainMenuScreen to a FitViewport so that the window can be resized without streching any of the images.

Lonami commented 4 years ago

Thanks, if you think it's good this way it probably is.