Game Design in Love with Lua

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Teraku
Prole
Posts: 27
Joined: Mon Jun 24, 2013 10:01 am
Location: The Netherlands

Re: Game Design in Love with Lua

Post by Teraku »

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.
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.
User avatar
Rishavs
Party member
Posts: 103
Joined: Sat Oct 17, 2009 5:29 am
Contact:

Re: Game Design in Love with Lua

Post by Rishavs »

I am currently using HUMP for state management. works fine and is small enough.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests