Shameless plug: I wrote my Master's thesis on this topic waaay back in the day:
https://oaktrust.library.tamu.edu/bitstream/handle/1969.1/ET...
Was pretty proud of how the related game turned out, though sadly it won't run anymore on modern machines as it was done in Flash: https://www.kongregate.com/games/larsiusprime/super-energy-a...