Page 1 of 1

How should I setup my LOVE2D project so that it works on mobile?

Posted: Thu Jun 08, 2017 9:45 pm
by BruceTheGoose
I'm talking about resolution, handling user input. What changes should I make to the conf.lua file?

Re: How should I setup my LOVE2D project so that it works on mobile?

Posted: Thu Jun 08, 2017 10:15 pm
by raidho36
As far as I remember, it would ignore the resolution you put in config file and use native resolution instead. User input is 100% the same, the whole "difference" amounts to there not being many multitouch screen desktop computers and not many mobile devices having bluetooth keyboard and mouse connected.

Re: How should I setup my LOVE2D project so that it works on mobile?

Posted: Thu Jun 08, 2017 10:17 pm
by BruceTheGoose
raidho36 wrote: Thu Jun 08, 2017 10:15 pm As far as I remember, it would ignore the resolution you put in config file and use native resolution instead. User input is 100% the same, the whole "difference" amounts to there not being many multitouch screen desktop computers and not many mobile devices having bluetooth keyboard and mouse connected.
Could you explain native resolution?

Re: How should I setup my LOVE2D project so that it works on mobile?

Posted: Thu Jun 08, 2017 10:27 pm
by raidho36
Same resolution as the screen's physical resolution.

Re: How should I setup my LOVE2D project so that it works on mobile?

Posted: Thu Jun 08, 2017 10:46 pm
by BruceTheGoose
raidho36 wrote: Thu Jun 08, 2017 10:27 pm Same resolution as the screen's physical resolution.
Just tried running a project on my phone. The resolution wasn't scaled and was off screen. What would be a solution to this?

Re: How should I setup my LOVE2D project so that it works on mobile?

Posted: Fri Jun 09, 2017 3:28 am
by TheHistoricApple
love does not auto scale to different resolutions. Meaning you have to make the code to do so. The simplest way to do this is use a library like this
https://love2d.org/forums/viewtopic.php?f=5&t=80738