

7·
1 year agoUse J and L for bigger steps and no annoying volume adjustment


Use J and L for bigger steps and no annoying volume adjustment


Wow, this is some hardcore bash black magic.
Some other useful stuff: toSorted, toReversed, splice, destructuring, spreading. Last two are not methods but very useful when working with arrays
Use requestAnimationFrame for the drawing loop. Dont instantiate new objects unless needed