test docs
This commit is contained in:
parent
7f83b5eca9
commit
e70448cb6a
22 changed files with 3795 additions and 17 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