2022-10-11 10:29:40 +01:00
|
|
|
class EndScreen {
|
|
|
|
constructor() {
|
2022-11-18 14:51:05 +00:00
|
|
|
this.menu = new Menu();
|
2022-10-11 10:29:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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-10-11 10:29:40 +01:00
|
|
|
}
|
2022-11-11 19:54:52 +00:00
|
|
|
|
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());
|
2022-11-11 19:54:52 +00:00
|
|
|
}
|
2022-10-11 10:29:40 +01:00
|
|
|
}
|