maybe im just nit picking...

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
hairy puppy
Prole
Posts: 29
Joined: Tue Apr 22, 2014 3:34 pm

Re: maybe im just nit picking...

Post by hairy puppy »

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 ;)
lewis lepton
------
http://smokingbunny.net
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: maybe im just nit picking...

Post by Ref »

Really notConcerned if isKnown.
User avatar
Inny
Party member
Posts: 652
Joined: Fri Jan 30, 2009 3:41 am
Location: New York

Re: maybe im just nit picking...

Post by Inny »

OttoRobba 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)
Image
Oh I can go worse

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)
Mwahaha

Yeah in retrospect this was a bad idea, I withdraw my original gripe.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests