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 »

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: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: iOS Side scrolling port

Post by Ulydev »

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: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: iOS Side scrolling port

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

Who is online

Users browsing this forum: No registered users and 14 guests