Code: Select all
-- main.lua
function love.load()
states = {}
-- ...
end
function love.update(dt)
states[state].update(dt)
end
Code: Select all
--movement.lua
states.game = {}
function states.game.update(dt)
--blah
end
Code: Select all
-- main.lua
function love.load()
states = {}
-- ...
end
function love.update(dt)
states[state].update(dt)
end
Code: Select all
--movement.lua
states.game = {}
function states.game.update(dt)
--blah
end
Users browsing this forum: Bing [Bot] and 7 guests