conf.lua not working?

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
Creepercats
Prole
Posts: 4
Joined: Tue Dec 31, 2013 10:30 am

conf.lua not working?

Post by Creepercats »

So when i tried making my conf.lua and use it wit my main.lua it did nothing

any answers to that


~Creepercats Thanks :)
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: conf.lua not working?

Post by T-Bone »

It would help if you posted the contents of your conf.lua. You might have written something wrong. Also make sure the conf.lua lies in the same folder as the main.lua file.
User avatar
Plu
Inner party member
Posts: 722
Joined: Fri Mar 15, 2013 9:36 pm

Re: conf.lua not working?

Post by Plu »

Even better if you can upload your .love file :) There should be instructions around on how to make those, but it basically involves zipping your files (.zip!) and then renaming the file extension to .love

That lets us see what you are doing.
Ekamu
Party member
Posts: 178
Joined: Fri Sep 20, 2013 11:06 am

Re: conf.lua not working?

Post by Ekamu »

If you are using Love 0.9 the functions changed a little, instead of screen we use window

Love 0.8

Code: Select all

function love.conf(v)
 --configure game
 v.title = "My Game Title"
 v.author = "Me the Author" 
 v.screen.width = 400
 v.screen.height = 300
 v.screen.fullscreen = false
end
Love 0.9

Code: Select all

function love.conf(v)
 --configure game
 v.title = "My Game Title"
 v.author = "Me the Author" 
 v.window.width = 400
 v.window.height = 300
 v.window.fullscreen = false
end
Their is more on the wiki.
Creepercats
Prole
Posts: 4
Joined: Tue Dec 31, 2013 10:30 am

Its all good

Post by Creepercats »

It's all good guys i fixed it thanks for all the replies :)
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests