The problem is, the video series is fairly old and since then, Love updated to 0.9.1, and broke a lot of the syntax. I've already had problems with require, which I have since fixed by changing the syntax. Now I've got a problem with what I believe to be this piece of code.
Code: Select all
function ents.Startup()
register["box"] = love.filesystem.load( ents.objpath .. "box" )
end
Code: Select all
if love.filesystem.isDirectory("entityobjects") then
print("Found the entity folder.")
end
if love.filesystem.isFile("entityobjects/base.lua") then
print("Found the base.lua.")
end
if love.filesystem.isDirectory("texturesofthings") then
print("Found the texture folder.")
end
if love.filesystem.isFile("entityobjects/box.lua") then
print("Found the box.lua.")
end