Search found 11 matches

by GlorifiedPig
Sat Sep 26, 2020 12:49 pm
Forum: Libraries and Tools
Topic: Hook Library
Replies: 13
Views: 12321

Re: Hook Library

Nekyia wrote:
Tue Sep 08, 2020 3:46 pm
Hello! I think it is similar to: https://hump.readthedocs.io/en/latest/signal.html
Am I right?
Hello there, yep this is correct! That looks very similar to that library.
by GlorifiedPig
Sun Sep 06, 2020 9:03 am
Forum: Libraries and Tools
Topic: Hook Library
Replies: 13
Views: 12321

Re: Hook Library

This would work but I cannot find a use case for having it in a specific order There's this thing called "the principle of least surprise", and library code is usually expected to adhere to it. In this case it means that hooks should be called in the order they were added, instead of the order of i...
by GlorifiedPig
Sat Sep 05, 2020 3:47 pm
Forum: Libraries and Tools
Topic: Hook Library
Replies: 13
Views: 12321

Re: Hook Library

I think the lib would be much better if you just stored your hooks in a list and used ipairs. You can also use the func pointer as a unique id anyways. This goes completely against what the library was made for, the unique IDs are for direct reference to the table. I believe you are having trouble ...
by GlorifiedPig
Sat Sep 05, 2020 3:02 pm
Forum: Ports
Topic: LÖVR - a LÖVE-like engine for virtual reality
Replies: 31
Views: 73767

Re: LÖVR - a LÖVE-like engine for virtual reality

GlorifiedPig wrote:
Sat Sep 05, 2020 2:58 pm
Looks good. Is there any way to debug without putting your VR headset on everytime?
Nevermind lol, I found out, turns out you can, good stuff mate
by GlorifiedPig
Sat Sep 05, 2020 2:58 pm
Forum: Ports
Topic: LÖVR - a LÖVE-like engine for virtual reality
Replies: 31
Views: 73767

Re: LÖVR - a LÖVE-like engine for virtual reality

Looks good. Is there any way to debug without putting your VR headset on everytime?
by GlorifiedPig
Sat Sep 05, 2020 2:55 pm
Forum: Games and Creations
Topic: DRÖM, a DREAM 6800 emulator
Replies: 2
Views: 4809

Re: DRÖM, a DREAM 6800 emulator

Looks really good, great job
by GlorifiedPig
Sat Sep 05, 2020 2:54 pm
Forum: Libraries and Tools
Topic: turtle.lua - Drawing library
Replies: 16
Views: 19894

Re: turtle.lua - Drawing library

Good job, looks like you've put a lot of effort into this
by GlorifiedPig
Sat Sep 05, 2020 2:51 pm
Forum: Libraries and Tools
Topic: Hook Library
Replies: 13
Views: 12321

Re: Hook Library

I see. Going over the code I think it closely resembles the publisher->subscriber model. The primary feature which you forgot to mention is that you can attach multiple hooks/callbacks to one particular event/hookID. It's not bad although I'm not 100% sold on having to specify uniqueIDs. Also this ...
by GlorifiedPig
Fri Sep 04, 2020 5:37 pm
Forum: Libraries and Tools
Topic: Hook Library
Replies: 13
Views: 12321

Re: Hook Library

Any examples on how/why this could be used? Also, I should mention that the debug. module has general purpose hooks. This is completely unrelated to the debug module hooks brother, also sure thing: main.lua function love.update( dt ) Hook.Call( "Update", dt ) end otherfile.lua Hook.Attach( "Update"...
by GlorifiedPig
Fri Sep 04, 2020 3:35 pm
Forum: Libraries and Tools
Topic: A* path finding (public domain)
Replies: 1
Views: 4039

Re: A* based path finding

Thanks, this is significantly faster than other A* libraries I have found :) could you put it on GitHub so I can fork and perhaps contribute?