love code not working error badd argument #1 to init
Posted: Wed Apr 29, 2015 12:52 pm
hey guys
im pretty new to love2d and am having some trouble with loading external code into my project
here is my code
and here is my error
im pretty new to love2d and am having some trouble with loading external code into my project
here is my code
Code: Select all
love.filesystem.init()
main = love.filesystem.load('data/main.lua')()
Code: Select all
Error
main.lua:1:bad argument #1 to 'init'(string expected, got no value)
traceback
[C]: in function 'init'
main.lua:1: in main chunk
[C]: in function 'require'
[C]: in function 'xpcall'