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

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
BruceTheGoose
Citizen
Posts: 76
Joined: Sat Sep 20, 2014 2:54 pm

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

Post by BruceTheGoose »

I'm talking about resolution, handling user input. What changes should I make to the conf.lua file?
"I don't know."
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

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

Post 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.
User avatar
BruceTheGoose
Citizen
Posts: 76
Joined: Sat Sep 20, 2014 2:54 pm

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

Post 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?
"I don't know."
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

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

Post by raidho36 »

Same resolution as the screen's physical resolution.
User avatar
BruceTheGoose
Citizen
Posts: 76
Joined: Sat Sep 20, 2014 2:54 pm

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

Post 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?
"I don't know."
TheHistoricApple
Prole
Posts: 26
Joined: Sun Jan 15, 2017 6:46 am

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

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

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Semrush [Bot] and 2 guests