Dynamic resolution in games

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
NickRock
Citizen
Posts: 76
Joined: Thu Dec 25, 2014 9:33 pm
Location: Earth
Contact:

Dynamic resolution in games

Post by NickRock »

All of my games have a fixed resolution because I couldn't figure out how to have multiple resolutions available for the player to switch to.
Can anyone tell me how can I do this?
Weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeooow!!
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: Dynamic resolution in games

Post by Davidobot »

You can enable the resizable flag in conf.lua and then scale your graphics appropriately using love.graphics.scale.
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
NickRock
Citizen
Posts: 76
Joined: Thu Dec 25, 2014 9:33 pm
Location: Earth
Contact:

Re: Dynamic resolution in games

Post by NickRock »

And is it the same for mobile games too?
Weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeooow!!
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: Dynamic resolution in games

Post by Davidobot »

NickRock wrote:And is it the same for mobile games too?
For mobile games, enable fullscreen and get the new dimensions and work from there.
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
Post Reply

Who is online

Users browsing this forum: No registered users and 50 guests