aboutsummaryrefslogtreecommitdiffstats
path: root/src/Events.ts
diff options
context:
space:
mode:
authorMaksymilian Jopek <maks@jopek.eu>2022-06-01 00:26:52 +0200
committerMaksymilian Jopek <maks@jopek.eu>2022-06-01 00:26:52 +0200
commit5413001f654d4ea27129cf2edfc15322f2ba27ec (patch)
treecd5c4bda29622ca5406a7f641143c7c5ead20a51 /src/Events.ts
parent0010f2de57cfa97106432ea1849c1bb75d3d99a1 (diff)
download1942-5413001f654d4ea27129cf2edfc15322f2ba27ec.tar.gz
1942-5413001f654d4ea27129cf2edfc15322f2ba27ec.tar.zst
1942-5413001f654d4ea27129cf2edfc15322f2ba27ec.zip
Spawning enemies, start Startscreen
Diffstat (limited to 'src/Events.ts')
-rw-r--r--src/Events.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Events.ts b/src/Events.ts
index 2a3e363..2a07ea9 100644
--- a/src/Events.ts
+++ b/src/Events.ts
@@ -31,6 +31,8 @@ function setKey(key: string, val: boolean, repeat: boolean) {
else if (["f"].includes(key)) keys.fps = 50;
else if (["g"].includes(key)) keys.fps = 1;
else if (["c"].includes(key)) keys.fps = 12;
+ else if (["y"].includes(key)) keys.fps += 1;
+ else if (["t"].includes(key)) keys.fps -= 1;
// console.log(key, val ? "keydown" : "keyup")
}