We start by creating a variable called 'score'. We then set the score to zero.
As the shark is too big we set the size to 40%.
We then set the shark sprite to point towards the 'mouse-pointer' (it will follow wherever the user moves the mouse) if the distance away is greater than 5 - this prevents the shark from flickering when it sits on the mouse as it won't be trying to move towards it. |