I understand that it can be tiresome to work on the same thing over a long period of time. With the scrollgroup bug fixed, Gspot is, like, 95% amazing. A pretty good score if you ask me


Code: Select all
require("Gspot")
love.load = function()
state = {
common = {gui = Gspot()},
menu = {
gui = Gspot(),
update = function(this, dt)
state.common.gui:update(dt)
this.gui:update(dt)
end,
draw = function()
// you get the idea ..
end
},
world = {gui = Gspot(),
// these should really inherit from a gamestate class, since they contain identical functions.
}
}
state.current = state.menu
end
love.update = function(dt)
state.current:update()
end
love.draw = function()
state.current:draw()
end
love.mousepressed = function()
// prioritize as you see fit ..
if state.common.gui.mousein then state.common.gui:mousepress(x, y, button) else state.current.gui:mousepress(x, y, button) end
end
// etc ..
What is this I don't even.Karai17 wrote:separate love-like instances
Users browsing this forum: No registered users and 1 guest