Reactive Extensions (Library) for LOVE 2D (not LOVR)
#lua #love #library #reactive #gamedev
|
пре 8 година | |
---|---|---|
LICENSE | пре 8 година | |
README.md | пре 10 година | |
dragAndDrop.lua | пре 9 година | |
pong.lua | пре 9 година | |
rx-love.lua | пре 9 година | |
rxlove-0.0.1-1.rockspec | пре 8 година |
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.
MIT, see LICENSE
for details.