diff --git a/client/svelte-client/src/App.svelte b/client/svelte-client/src/App.svelte index cf33289..6a28754 100644 --- a/client/svelte-client/src/App.svelte +++ b/client/svelte-client/src/App.svelte @@ -2,7 +2,6 @@ import {FieldWrapper} from "wasm-app"; import Canvas from "./Canvas.svelte"; import Fps from "./Fps.svelte"; - import {keysPressed} from "./game/engine"; import Input from "./Input.svelte"; import {setContext} from "svelte"; import {sessionContext, sessionStore} from "./game/session"; @@ -16,20 +15,6 @@ let debug = false; - function handleKeydown({key}) { - if ($keysPressed.includes(key)) { - return; - } - $keysPressed = [...$keysPressed, key] - } - - function handleKeyup({key}) { - if (!$keysPressed.includes(key)) { - return; - } - $keysPressed = $keysPressed.filter(key => key !== key) - } - function localSession() { sessionStore.createLocalSession(); } @@ -79,13 +64,12 @@
toggleDebug()}> - +
{/if} -