iOS Side scrolling port

Discuss any ports of LÖVE to different platforms.
Post Reply
MRCoxall
Prole
Posts: 1
Joined: Mon Jun 18, 2018 1:01 pm

iOS Side scrolling port

Post by MRCoxall » Mon Jun 18, 2018 1:09 pm

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

User avatar
Ulydev
Party member
Posts: 438
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: iOS Side scrolling port

Post by Ulydev » Mon Jun 18, 2018 8:21 pm

Hello, you need to configure your project in Xcode. Set the orientation to "landscape".
https://stackoverflow.com/questions/358 ... wift-xcode

User avatar
bartbes
Sex machine
Posts: 4944
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: iOS Side scrolling port

Post by bartbes » Tue Jun 19, 2018 5:33 pm

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.

lindagriffithh
Prole
Posts: 3
Joined: Thu Jun 20, 2019 9:57 am

Re: iOS Side scrolling port

Post by lindagriffithh » Thu Jul 04, 2019 9:52 am

Try changing the resolution.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests