Page 1 of 1

[SOLVED] Resolution display

Posted: Fri May 10, 2019 3:42 pm
by var77
Hi everyone back here with some trouble about resolution.

I got searching on several solution to fix this but I may handle it bad that's why I ask for some help. I first make some try after post this (viewtopic.php?t=86246&p=225135#p225135) few month ago, that were efficient on his time. But I start a project for Ludum Dare 44
(https://ldjam.com/events/ludum-dare/44/doc-bloodaway) in 1920x1080 and after few review they were several problem for some players with the resolution (to high).

So I try few library like:
TLfres (https://love2d.org/wiki/TLfres)
Push (https://github.com/Ulydev/push)

I guess I got the idea that I have to use canvas for easier way to handle different resolution, even if I suck at it, but in my case I still have problem for exemple with the mouse position (menu selection) or changing size of background images (try scale them but in vain).
So I ask if anyone got a recent library that handle final project and mouse position ? or any tips with those above ? or even help to understand the algorythm (and ratio) of several display ?

Thanks in advance :)

ps: if some have patient to look at the code ^^
ld44.love
(5.72 MiB) Downloaded 94 times

Re: Resolution display

Posted: Tue May 14, 2019 11:32 am
by var77
So after few research I finaly solve my issue with this awesome library:
https://github.com/Romans-I-XVI/Love-Lo ... ion-Camera

It's just a scale not a canvas solution but fit well for me.
If some are interesting of a sample here it is.
https://www.youtube.com/watch?v=CF5XRS5EDmI

Re: [SOLVED] Resolution display

Posted: Wed May 15, 2019 2:40 pm
by var77
BTW I figure out what was the problem with canvas library (or canvas in it self). I was using position by my screen size unless using position by my canvas (or absolute position). So if you are looking the same issues as me use absolute position then draw every thing in a canvas and resize it. :crazy: