I haven't use love2d since a year+ and when I tried to start an old prototype I got an error about my conf.lua
I used to do this:
is there anything that has changed related to that? what are the major points of 0.9?Anickyan wrote:Actually, this would be the easiest, I think:
conf.luamain.luaCode: Select all
configTable = {} -- use any variable name function love.conf(t) t.screen.width = 800 t.screen.height = 600 t.title = "Test Window" configTable = t end
Code: Select all
function love.load() local screenWidth = configTable.screen.width -- access all of the values inside the table end
This is what I get:
Code: Select all
tommy@chrubuntu:~/Downloads/igs_lua$ love .
conf.lua:11: attempt to index field 'screen' (a nil value)
Error: main.lua:2: attempt to index field 'screen' (a nil value)
stack traceback:
main.lua:2: in main chunk
[C]: in function 'require'
[string "boot.lua"]:360: in function <[string "boot.lua"]:241>
[C]: in function 'xpcall'
I'm so glad to be back here Thanks!