Newbie Question: How to force the screen to a specific size?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Newbie Question: How to force the screen to a specific size?
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!
- slime
- Solid Snayke
- Posts: 3176
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Newbie Question: How to force the screen to a specific s
You can use love.graphics.setMode in love.load.
Re: Newbie Question: How to force the screen to a specific s
Thank you very much!slime wrote:You can use love.graphics.setMode in love.load.
Re: Newbie Question: How to force the screen to a specific s
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
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
conf.lua is for initial configuration at startup, but if you want to change the graphic mode during game, setMode() is usefull.
Who is online
Users browsing this forum: devtastic, Google [Bot] and 3 guests