CS-Coursework/website/screens/endscreen.js

18 lines
446 B
JavaScript
Raw Normal View History

class EndScreen {
constructor() {
2022-11-18 14:51:05 +00:00
this.menu = new Menu();
}
draw() {
background("#eeeee4");
textSize(100);
textAlign(CENTER, CENTER);
fill(0);
text("Test Complete\nPress enter to start another test", 0, 0, windowWidth - 100, windowHeight - 100);
2022-11-18 14:51:05 +00:00
this.menu.draw();
}
2022-11-18 11:33:25 +00:00
letterTyped(key) {
2022-11-18 14:51:05 +00:00
if (key === "Enter") screenManager.setScreen(new TestScreen());
}
}