summaryrefslogtreecommitdiff
path: root/test-client/main.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-23 21:27:25 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-25 11:21:48 +0200
commit74fb8de441c68fff92680a48352f6b9b0f6e9271 (patch)
tree88e59c1043ac5de7379986eadc7f574e27f6c085 /test-client/main.ts
parent149c58d54bf9c0eda6e3d978984e5e0365b7395d (diff)
downloadhurrycurry-74fb8de441c68fff92680a48352f6b9b0f6e9271.tar
hurrycurry-74fb8de441c68fff92680a48352f6b9b0f6e9271.tar.bz2
hurrycurry-74fb8de441c68fff92680a48352f6b9b0f6e9271.tar.zst
add player portals
Diffstat (limited to 'test-client/main.ts')
-rw-r--r--test-client/main.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/test-client/main.ts b/test-client/main.ts
index db474784..e1313f8c 100644
--- a/test-client/main.ts
+++ b/test-client/main.ts
@@ -257,10 +257,10 @@ function keyboard(ev: KeyboardEvent, down: boolean) {
if (HANDLED_KEYS.includes(ev.code)) ev.preventDefault()
if (!keys_down.has(KEY_INTERACT) && ev.code == KEY_INTERACT && down) set_interact(true)
if (keys_down.has(KEY_INTERACT) && ev.code == KEY_INTERACT && !down) set_interact(false)
- if (down && ev.code == "Numpad1") send({ type: "communicate", message: { text: "/start tiny" }, persist: false })
- if (down && ev.code == "Numpad2") send({ type: "communicate", message: { text: "/start small" }, persist: false })
- if (down && ev.code == "Numpad3") send({ type: "communicate", message: { text: "/start big" }, persist: false })
- if (down && ev.code == "Numpad4") send({ type: "communicate", message: { text: "/start test" }, persist: false })
+ if (down && ev.code == "Numpad1") send({ type: "communicate", message: { text: "/start junior" }, persist: false })
+ if (down && ev.code == "Numpad2") send({ type: "communicate", message: { text: "/start senior" }, persist: false })
+ if (down && ev.code == "Numpad3") send({ type: "communicate", message: { text: "/start sophomore" }, persist: false })
+ if (down && ev.code == "Numpad4") send({ type: "communicate", message: { text: "/start debug" }, persist: false })
if (down && ev.code == "Numpad5") send({ type: "communicate", message: { text: "/start bus" }, persist: false })
if (down && ev.code == "Numpad0") send({ type: "communicate", message: { text: "/end" }, persist: false })
if (down) keys_down.add(ev.code)