An Async library for lua that works great with love2d

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
rayaman
Prole
Posts: 10
Joined: Sat May 17, 2014 6:18 pm

An Async library for lua that works great with love2d

Post by rayaman »

Hello everyone I have been working on a multi tasking library for a long time and recently posted it to my github. It offers really good multitasking features. Usage in love2d is a bit different than regular lua in regards to starting it up.

Feedback is welcomed

https://github.com/rayaman/multi

On the github readme you will see how to use the library and all of its features.

Code: Select all

-- In love you require like this
require("multi.compat.love2d")
-- if you plan on using my GuiManager library (WIP) then un-comment the next line since it is older and uses older features of the multi library
--require("multi.compat.backwards[1,5,0]") -- allows the old syntax to work for some methods
alarm=multi:newAlarm(3)
alarm:OnRing(function(self)
	print("3 seconds have passed!")
end)
-- No need for multi:mainloop() since the love.run function is overwritten to make a seamless integration
My github also has a few other useful libraries that work with love2d as well. The bin library, the net library, and the guimanager library.

To see working examples of all of my libraries around the love2d engine check out: https://github.com/rayaman/IntroSoftwareProject

There I used love2d to write a chat client for a project I had. The server runs using luajit and works on both linux, mac and windows
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 41 guests