Earn points by hitting veggies with flowers, while avoiding dragonflies. Click the mouse to fire flowers and move the mouse to change direction of the flowers.
Directions: (not necessarily in this order)
Use the array of Prize objects called, prizeArray to access specific values to draw the veggies.
define a function to place prizes randomly in the right-most third of the canvas. Use the value stored in prizeArray[index].time to render veggies at different times. Also, use the value stored in prizeArray[index].live. Please use index variables of your own selection.
Set interval to call the above function periodically.
declare a varible to keep track of time( number of function invocations).