Page 1 of 1
Newbie Question: How to force the screen to a specific size?
Posted: Thu Jun 06, 2013 1:18 am
by Calahagus
Just as the topic says. I've looked around the documentation but it's all very new to me; I just want to know how to make the screen a specific size. Thanks for the help!
Re: Newbie Question: How to force the screen to a specific s
Posted: Thu Jun 06, 2013 1:22 am
by slime
You can use
love.graphics.setMode in love.load.
Re: Newbie Question: How to force the screen to a specific s
Posted: Thu Jun 06, 2013 2:04 am
by Calahagus
Re: Newbie Question: How to force the screen to a specific s
Posted: Thu Jun 06, 2013 7:24 am
by bramblez
Just in case, you might want to check
this one too
Re: Newbie Question: How to force the screen to a specific s
Posted: Thu Jun 06, 2013 9:43 am
by sanjiv
Wait, isn't conf.lua the way to go?
www.love2d.org/wiki/Config_Files
Basically, make conf.lua in the same place as main.lua, and add the following
Code: Select all
function love.conf(t)
t.screen.width = 1024
t.screen.height = 768
end
Re: Newbie Question: How to force the screen to a specific s
Posted: Thu Jun 06, 2013 10:02 am
by chezrom
conf.lua is for initial configuration at startup, but if you want to change the graphic mode during game, setMode() is usefull.