Page 1 of 1

iOS Side scrolling port

Posted: Mon Jun 18, 2018 1:09 pm
by MRCoxall
I am a computer science teacher and I would like to try and make a side-scrolling platformer game with my students using LÖVE.
I used the iOS port and got some example code working.
The problem is that I would like the game to be in landscape, but my window is always portrait.

Is there a way to specify that the game, even during testing, is in landscape even when I am using full screen:

function love.load()
platform.width = love.graphics.getWidth()
platform.height = love.graphics.getHeight()

Ideally, in the end, I would like the game to be ported to:
- iOS
- Android
- Windows
- Pi (if all goes well the students will actually be developing the code on Pi 3B+s)
- Mac

Thanks

Re: iOS Side scrolling port

Posted: Mon Jun 18, 2018 8:21 pm
by Ulydev
Hello, you need to configure your project in Xcode. Set the orientation to "landscape".
https://stackoverflow.com/questions/358 ... wift-xcode

Re: iOS Side scrolling port

Posted: Tue Jun 19, 2018 5:33 pm
by bartbes
As far as I know you can just set your resolution (either in conf.lua or using setMode) to one that is wider than it is high.