Reactive Extensions (Library) for LOVE 2D (not LOVR)

#lua #love #library #reactive #gamedev

bjorn 8093a36eb6 Add rockspec; há 8 anos atrás
LICENSE 593abf0a93 Update LICENSE; há 8 anos atrás
README.md 657f255924 Update README; há 10 anos atrás
dragAndDrop.lua e1ae0d4e53 Update for LÖVE 0.10.0; há 9 anos atrás
pong.lua 49876a8f45 Update pong example; há 10 anos atrás
rx-love.lua e1ae0d4e53 Update for LÖVE 0.10.0; há 9 anos atrás
rxlove-0.0.1-1.rockspec 8093a36eb6 Add rockspec; há 8 anos atrás

README.md

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.