From 1f614c56522d1e42f933a6c411a49b610bb8b166 Mon Sep 17 00:00:00 2001 From: Tom Tibble Date: Sat, 4 Apr 2020 18:04:30 -0500 Subject: [PATCH] added scoreboard hotkey --- .idea/workspace.xml | 16 ++++++++-------- game.js | 4 +++- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ab36595..d606f53 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -26,13 +26,13 @@ - + - + @@ -70,8 +70,8 @@ - - + + @@ -253,12 +253,12 @@ - + - @@ -369,8 +369,8 @@ - - + + diff --git a/game.js b/game.js index 04ae0c8..192ee66 100644 --- a/game.js +++ b/game.js @@ -432,7 +432,9 @@ window.addEventListener("keypress", (e)=>{ }else { deletecheck = false } - + if (e.key === "s"){ + console.log(scoreboard); + } if(e.key ===" "){ document.body.click(); }