How should I setup my LOVE2D project so that it works on mobile?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- 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?
I'm talking about resolution, handling user input. What changes should I make to the conf.lua file?
"I don't know."
Re: How should I setup my LOVE2D project so that it works on mobile?
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.
- 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?
Could you explain native resolution?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.
"I don't know."
Re: How should I setup my LOVE2D project so that it works on mobile?
Same resolution as the screen's physical resolution.
- 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?
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."
-
- 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?
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
https://love2d.org/forums/viewtopic.php?f=5&t=80738
Who is online
Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 4 guests