Click the flag to start. Arrow keys to move. Try to dodge the cannonballs. Look at accuracy to see how many of the last 50 shots you have dodged. Aim prediction algorithm. The cannon looks at where you are, where you've been, and guesses where you will be. It fires towards where it thinks you will be in the time it takes a cannonball to reach you. Set "show lines" to 0 if they are annoying. The red line from the player represents your average direction over the last few seconds. The dot represents where you might be. The red line from the cannon points towards the dot. The cannon will shoot along the red line 80% of the time. (40% if yellow is relevant). The orange line points towards the player at all times. The cannon shoots along the orange line 20% of the time. If the cannon has missed 3 times in a row, it has a 40% chance to shoot along the yellow line (which is otherwise not visible). The yellow line shoots at the average angle of the last 10 shots, reflected onto the side of the player. This is to stop the player from moving back and forth to trick the aim prediction