I'd say that's a better idea than mine, considering require will only load the file once, it's mostly used for loading dependencies and classes.Jasoco wrote:For levels, instead of require I use local tempLevel = love.filesystem.load(filename)() then run through the tempLevel table and handle things accordingly. Or store it in a less local table instead. Either way, as long as you delete the old level table data completely when loading a new one you're fine.
Game Design in Love with Lua
Re: Game Design in Love with Lua
Re: Game Design in Love with Lua
I am currently using HUMP for state management. works fine and is small enough.
Who is online
Users browsing this forum: Google [Bot] and 2 guests