4 ms·
Increment global state variable, add it to e, which is the number of milliseconds the game has been running modulo 300. Then set the margin size to that value.
by mgraczyk 11y ago
Increment global state variable, add it to e, which is the number of milliseconds the game has been running modulo 300. Then set the margin size to that value. It's a simple pseudo-pseudorandom number generator.