revert comment
This commit is contained in:
parent
e70448cb6a
commit
57d442bf0e
1 changed files with 15 additions and 15 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue