revert comment

This commit is contained in:
s-prechtl 2023-01-11 12:30:52 +01:00
parent e70448cb6a
commit 57d442bf0e

View file

@ -202,18 +202,18 @@ function resetScore(): void {
/**
* Handler for key events.
*/
// function keyPressed() {
// if (!ready) return;
// // Jump
// if (BOOST_KEYS.includes(key.toLowerCase())) {
// resetScore();
// raspberry.boost();
// }
//
// // Pause the Game
// if (key == "Escape") {
// paused = !paused;
// } else if (paused) {
// paused = false;
// }
// }
function keyPressed() {
if (!ready) return;
// Jump
if (BOOST_KEYS.includes(key.toLowerCase())) {
resetScore();
raspberry.boost();
}
// Pause the Game
if (key == "Escape") {
paused = !paused;
} else if (paused) {
paused = false;
}
}