void setup() { size(1000, 800); } void draw() { drawField(); drawGoal(); drawBall(); drawScore(); } // Draw the field markings. // The centre of the field should be clearly marked. void drawField() { } // Draw and animate the moving goal posts. void drawGoal() { } // Draw and animate the ball. void drawBall() { } // Move the ball so that it moves to the centre of the opening in the // goal posts. To be called after the user scores a goal. void moveBallToGoal() { } // Reset the game and update the score and speed of the goal posts. void restart() { } // draw the score to the screen. void drawScore() { } // Return if the ball is past the half mark. False otherwise. boolean ballPastHalf() { return false; } // Return true if the point (a, b) is in the circle centred at (x, y) // with radius r. boolean pointInCircle(float a, float b, float x, float y, float r) { return false; } // Return true if the point (a, b) is in the rectangle with *corner* is // (x, y), width w and height h boolean pointInRect(float a, float b, float x, float y, float w, float h) { return false; }