/** * @file This file is the base screen when the user visits the site * @author Arlo Filley */ /** * This screen class is the base screen. It provides the user with basic instructions * and a set of menus to navigate the site */ class StartScreen { constructor() { this.menu = new Menu(); } draw() { background("#eeeee4"); textSize(100); textAlign(CENTER, CENTER); fill("#000"); text("Press enter to start test", 0, 0, windowWidth - 100, windowHeight - 100); this.menu.draw(); fill("#000"); text(`Logged in as ${user.username}`, windowWidth-400, 15); } letterTyped(key) { if (key === "Enter") { screenManager.setScreen(new TestScreen()); } } }