4 ms·
Thanks for this link, I've been looking for something like that. Generators like in Python allow for nice AI scripting with explicite time-sharing - each AI ac
by ajuc 15y ago
Thanks for this link, I've been looking for something like that.
Generators like in Python allow for nice AI scripting with explicite time-sharing - each AI actor is generator function, that in main loop has yield statement.
That way it all works in one thread, and ai code can be written straightforward, like each actor had it's own thread.