You win Drum Tiles by scoring at least 400 points within 40 seconds.
You lose if you click on a white key instead of a drum. Another way to lose is by failing to reach 400 points within the 40-second time limit.
Use the left mouse button to click on the drums. To restart, you can either double-click the left mouse button on the pop-up window or press the R key on your keyboard.