3 ms·
Coroutined make programming for pico8 very chill as well. The biggest challenge is sometimes you do want external flow control, and there coroutines can get ha
by rtpg 3y ago
Coroutined make programming for pico8 very chill as well.
The biggest challenge is sometimes you do want external flow control, and there coroutines can get hard to untangle if your design is a bit messy.
Something like “A signals to B to do something else” starts to be a bit tricky (along with interruptible actions). I think there are good patterns in theory but I’ve found myself with pretty tangled knots at times.
This is ultimately a general problem when programming everything as functions. Sometimes you need to mess with state that’s “hidden away” in your closure. Building out control flow data structures ends up becoming mandatory in many cases.