[SOLVED] Resolution display

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
var77
Citizen
Posts: 52
Joined: Wed May 02, 2018 1:57 pm

[SOLVED] Resolution display

Post 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 91 times
Last edited by var77 on Tue May 14, 2019 11:32 am, edited 1 time in total.
User avatar
var77
Citizen
Posts: 52
Joined: Wed May 02, 2018 1:57 pm

Re: Resolution display

Post 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
User avatar
var77
Citizen
Posts: 52
Joined: Wed May 02, 2018 1:57 pm

Re: [SOLVED] Resolution display

Post 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:
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 75 guests