this is an example n-body simulator made in around 3 hours, it's a really basic version... it uses averages of the X and Ys to calculate the direction it should go, (then changes it's momentums to keep momentum's in check.) turbowarp runs ~1000 N-Body. https://turbowarp.org/1098331973