This project simulates a gravity well with 40 massive objects. Each object's area is proportional to its mass. When objects collide, their masses are combined and the two objects' trajectories are combined, relative to their masses. The screen's center follows the combined center of mass of all the objects. When all of the objects have come back together, the simulation will begin again. This is an all pen project.
Don't forget to post your high score in the comments! "Passing paths that climb halfway into the void As we cross from the side to side We hear the total mass retain" -"Total Mass Retain" by Yes Updates: I've made the gravity dissipate exponentially, made the planet's area (instead of radius) proportionate to mass, and tuned the initial spin versus the gravitational attraction.