Press and hold on the screen to create a planet; the longer you hold, the more mass it will have. Press the arrow keys to move around, and press "1" and "2" (on your keyboard) to scale. Drag to set initial speeds of a new planet. Press the space bar to pause the simulation. If two planets collide, the bigger one gets larger based on what it had just collided with.
In celebration of the first black hole picture, I have created a planet simulator. Enjoy! This project uses the actual gravitational formula, rigged to fit on your screen, to calculate movement of planets. Credits to @cat-991 for an idea of what to do if two planets collide. Credits to "Motion Array" on Youtube for creation sound effects, and to the Scratch library for collision sound effects.