To change the x speed, use the Left and Right keys. To change the y speed, use the Up and Down keys. Once you are ready, in order to fire the catapult, press space. Your goal is to hit the target in the least amount of attempts. Every failed attempt will reduce your score and the points that you earn once you hit the goal depends on how many attempts it took to hit the target. The fewer attempts it takes, the more points you will get. Hitting the top will reduce momentum, and hitting the left or right sides will stop momentum altogether. Press the number keys 0-9 to change the color of the trail. 0 is orange to red, 1 is dull orange to dark red, 2 is yellow to red, 3 is lime green to yellow, 4 is dark green to green, 5 is light blue to cyan, 6 is blue to light blue, 7 is magenta to purple, 8 is purple to blue, and 9 is dark purple to indigo. Press "r" to reset the starting speeds, clear all pen trails, and reset the pen color.
v1.1 -The projectile now stops when it hits the left side This is based off of an Hour of Code project. Try an Hour of Code here: https://hourofcode.com/us The code project that this was based off of can be found here: http://gpblocks.org/hourOfCode2017b/