Reactive Extensions (Library) for LOVE 2D (not LOVR)
#lua #love #library #reactive #gamedev
|
il y a 8 ans | |
---|---|---|
LICENSE | il y a 8 ans | |
README.md | il y a 10 ans | |
dragAndDrop.lua | il y a 9 ans | |
pong.lua | il y a 9 ans | |
rx-love.lua | il y a 9 ans | |
rxlove-0.0.1-1.rockspec | il y a 8 ans |
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.