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
iOS Side scrolling port
Re: iOS Side scrolling port
Hello, you need to configure your project in Xcode. Set the orientation to "landscape".
https://stackoverflow.com/questions/358 ... wift-xcode
https://stackoverflow.com/questions/358 ... wift-xcode
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: iOS Side scrolling port
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.
Who is online
Users browsing this forum: No registered users and 6 guests