From 62fa17b9538e8024ecf46661edddcb60dede3cab Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Thu, 28 Jul 2022 17:33:44 +0200 Subject: [PATCH] keydown test --- client/src/lib/view/game/scene.svelte | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/lib/view/game/scene.svelte b/client/src/lib/view/game/scene.svelte index abef2ef..3c098be 100644 --- a/client/src/lib/view/game/scene.svelte +++ b/client/src/lib/view/game/scene.svelte @@ -20,9 +20,14 @@ function decreaseLives() { $connection!.setLives($gameData!.lives - 1); } + function keydown(e: KeyboardEvent) { + if(e.key === "KeyT") { + increaseScore(); + } + } - + \ No newline at end of file