public void display() { textSize(16); text("Type The Words Below:", 250, 190); tester.display(); fill(c.white); textSize(16); text("Your input:", 250, 290); user.display(); }
public void display() { quit.display(); if (!level1.isComplete()) { fill(c.white); textSize(32); text(level1.header, 290, 40); if (!level1.didStart()) { level1.displayStartButton(); } else if (level1.didStart()) { tfs.setTesterWord(level1.wordAtIndex(wordIndex)); tfs.display(); checkButton.display(); if (isWordCorrect) { nextButton.display(); } } } else if (!level2.isComplete()) { fill(c.white); textSize(32); text(level2.header, 290, 40); if (!level2.didStart()) { level2.displayStartButton(); } else if (level2.didStart()) { tfs.setTesterWord(level2.wordAtIndex(wordIndex)); tfs.display(); checkButton.display(); if (isWordCorrect) { nextButton.display(); } } } else if (!level3.isComplete()) { fill(c.white); textSize(32); text(level3.header, 290, 40); if (!level3.didStart()) { level3.displayStartButton(); } else if (level3.didStart()) { tfs.setTesterWord(level3.wordAtIndex(wordIndex)); tfs.display(); checkButton.display(); if (isWordCorrect) { nextButton.display(); } } } else { fill(c.white); textSize(32); text("Congratulations For Finishing The Game!", 30, 200); startOver.display(); } score.display(); }
public void display() { fill(c.white); drawWelcome(); drawName(); if (!didPressInfo && !didPressStart) { b1.display(); b2.display(); easy.display(); medium.display(); hard.display(); } else if (didPressInfo && !didPressStart) { drawInfo(); b3.display(); } exit.display(); }
public void displayStartButton() { startButton.display(); }