Search found 9 matches

by babulous
Fri Feb 07, 2020 2:58 am
Forum: Libraries and Tools
Topic: TimelineEvents | A Coroutine-Based Event System
Replies: 18
Views: 21053

Re: TimelineEvents | A Coroutine-Based Event System

Ah no, the old version was the one that would block immediately when called, but the new version only blocks if there the trigger didn't activate that frame. So if the trigger activated the same frame it's called it just passes through without blocking and returns whatever those results were. In thi...
by babulous
Thu Feb 06, 2020 10:45 pm
Forum: Libraries and Tools
Topic: TimelineEvents | A Coroutine-Based Event System
Replies: 18
Views: 21053

Re: TimelineEvents | A Coroutine-Based Event System

The key part here is the repeat...until loop within function script(). The function TLE.PollTextInput blocked the thread (the coroutine) until LÖVE received something in the textinput callback. I used the hack I mentioned earlier, where I fed characters to TL.textinput() from the keypressed event, ...
by babulous
Tue Feb 04, 2020 9:11 pm
Forum: Libraries and Tools
Topic: TimelineEvents | A Coroutine-Based Event System
Replies: 18
Views: 21053

Re: TimelineEvents | A Coroutine-Based Event System

I found a typo in https://github.com/babulous/TimelineEvents/wiki/Documentation : "TL.mousereleased" is listed twice, I think one of them should be "TL.mousemoved". You're right, oops ><" I'm still working out the details of the new version and having some trouble. It seems...
by babulous
Fri Jan 31, 2020 7:13 pm
Forum: Libraries and Tools
Topic: TimelineEvents | A Coroutine-Based Event System
Replies: 18
Views: 21053

Re: TimelineEvents | A Coroutine-Based Event System

Okay, I made the new version, I'm happier with this design and it contains some new features over the old one. I really just sat on releasing it because I was uncertain about a few things with the API, but it's fine. To be clear, what I meant by non-blocking is similar to the difference between Chan...
by babulous
Wed Nov 06, 2019 12:49 pm
Forum: Libraries and Tools
Topic: TimelineEvents | A Coroutine-Based Event System
Replies: 18
Views: 21053

Re: TimelineEvents | A Coroutine-Based Event System

The example seems complex, could be simplified i guess with more explanation? I edited the example to include some comments for clarification. I've just run into one. I'm writing a very straightforward input function that lets you enter characters and delete them. In your example, you create a bran...
by babulous
Mon Nov 04, 2019 11:02 pm
Forum: Libraries and Tools
Topic: TimelineEvents | A Coroutine-Based Event System
Replies: 18
Views: 21053

Re: TimelineEvents | A Coroutine-Based Event System

How would I check for a key *position* in love? love.keyboard.isScancodeDown Scancodes are the physical position-based keys, and KeyConstants are what you'd expect those positions to be on a US QWERTY keyboard. Another example for why it's important is that there are games that use the directional ...
by babulous
Mon Nov 04, 2019 3:20 pm
Forum: Libraries and Tools
Topic: TimelineEvents | A Coroutine-Based Event System
Replies: 18
Views: 21053

Re: TimelineEvents | A Coroutine-Based Event System

I have some criticisms though. First. I find the naming scheme confusing. O and G are not descriptive. The prefix "Poll" does not make it clear whether it blocks or not, and I'm not sure but there may not be a blocking and a non-blocking variant of e.g. PollKeyPress. I agree, honestly I'm...
by babulous
Sun Nov 03, 2019 8:28 pm
Forum: Libraries and Tools
Topic: TimelineEvents | A Coroutine-Based Event System
Replies: 18
Views: 21053

Re: TimelineEvents | A Coroutine-Based Event System

Hey, cool library you got there! :3 I do have two observations i wanted to share: - E.PollMouseActivity() doesn't seem to return the x,y positions in any of the variants it could return them from; this isn't an issue if a love.mouse.getPosition call right after would be guaranteed to return the sam...
by babulous
Sun Nov 03, 2019 6:06 pm
Forum: Libraries and Tools
Topic: TimelineEvents | A Coroutine-Based Event System
Replies: 18
Views: 21053

TimelineEvents | A Coroutine-Based Event System

Hello! I'm new here, but I've been playing with LOVE for a few years now. I wanted to share the product of an experiment I've been playing with lately, it's called TimelineEvents. You can see the readme on github for information, I'll just talk a little here. The general idea is to allow the program...