Home

Awesome

RxLove

Turn Love2D events into reactive streams:

require 'rx'
require 'rx-love'

love.keypressed
  :filter(function(key) return key == ' ' end)
  :subscribe(function()
    print('You pressed the space bar')
  end)

See dragAndDrop.lua and pong.lua for more examples. Requires RxLua. See Reactive Extensions for more info.

License

MIT, see LICENSE for details.