aboutsummaryrefslogtreecommitdiff
path: root/server/src/constants.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-08-25 18:10:09 -0600
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-08-25 18:10:09 -0600
commit2fbe0f0595d06800c1a648a4168b57471d395ee4 (patch)
tree830342a963be8e560cf07cfca8b8346bdcb51d90 /server/src/constants.ts
parent773ce84f4bf559337e132edd7fcce02a0a2598fd (diff)
downloadjumpstorm-2fbe0f0595d06800c1a648a4168b57471d395ee4.tar.gz
jumpstorm-2fbe0f0595d06800c1a648a4168b57471d395ee4.zip
refactor server structure
Diffstat (limited to 'server/src/constants.ts')
-rw-r--r--server/src/constants.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/constants.ts b/server/src/constants.ts
new file mode 100644
index 0000000..a2b3d12
--- /dev/null
+++ b/server/src/constants.ts
@@ -0,0 +1,6 @@
+export namespace Constants {
+ export const SERVER_PORT = 8080;
+ export const SERVER_TICK_RATE = (1 / 60) * 1000;
+ export const GAME_TOPIC = 'game';
+ export const MAX_PLAYERS = 8;
+}