We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am currently trying to display a countdown, where when the countdown is finished, the game will start. Here is my code
void draw() {
  background(255);
  textSize(14);
  fill(0);
  textAlign(RIGHT);
  text("Use the arrow keys to move", width, height-20);
  text("Press pause to take a break", width, height-5);
  if (alive && Countdown()) {
      obstacles();
      interactions();
    } else { 
      restart();
    }
  }
boolean Countdown() {
  textAlign(CENTER);
  text(countdown, width/2, 50);
  countdown -= 1;
  if (countdown>0) return false;
  else return true;
}
Answers
https://forum.Processing.org/two/discussions/tagged/countdown