Posted July 20, 2022 by Wide Arch Shark
#demo #pico-8
The more I play with PICO-8, the more I love it !
Trying to find a clean way to initiate a sequence of some sort (eg explosions like this), and get them to run independently.
One trick is to create a local table with an "update" and "draw" function. Then have an array that stores the active tables, and calls "update/draw" on them. Once the sequence (aka explosion) is complete, it removes itself from the array ... del(explosions, self).
Good times! Watch out though. I spotted something cool I can also do using PAL statement!