from the look of it, it was not going to be 'on_something', but more 'onSomething'
though i get what you mean, but that actually makes sense to me, but then again i have not used love2d more than a week yet
maybe im just nit picking...
- hairy puppy
- Prole
- Posts: 29
- Joined: Tue Apr 22, 2014 3:34 pm
Re: maybe im just nit picking...
Really notConcerned if isKnown.
Re: maybe im just nit picking...
Oh I can go worseOttoRobba wrote:Inny wrote:I'd go one step further and ask why the callbacks aren't subscriptions
Code: Select all
love.on_update(function(dt) inny.writes.too.much:javascript() end)
Code: Select all
local handlers = { update = {} }
function love.update(dt)
for _, h in ipairs(handlers.update) do
h(dt)
end
end
function on(topic, callback)
table.insert(handlers[topic], callback)
end
love.on('update', function(dt)
inny.is.an.evil:madman()
end)
Yeah in retrospect this was a bad idea, I withdraw my original gripe.
Who is online
Users browsing this forum: No registered users and 1 guest