Green flag to start/reset. Press the up arrow or click with the mouse to move the pin. Try and press the up arrow/mouse when the pin is on the dot. If you miss the dot you lose. Up arrow/Mouse to restart/continue. For each lock, you must get the count down to 0. Each time you hit a dot the count goes down by 1. Every round, 1 more is added to the starting count.
This is a remake of the game Pop the Lock for iOS. For the most part this is an exact copy of the game. Since the pin is moved based on time passed, it will always move the same speed for everyone. To get the smooth motion of the lock shackle when you win, I used the equations for easeOutQuart and easeInQuart to animate the shackle smoothly.