diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-07-20 22:22:26 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-07-20 22:22:26 -0700 |
commit | 619a039942c3c02552f72275634a9f6c0788c570 (patch) | |
tree | 43151191c920d0d705db71306f58409e97b60d03 /client/src/routes/Home.svelte | |
parent | 72c6c7de12e9833f52bf2d0718d70f044f8ab57e (diff) | |
download | jumpstorm-619a039942c3c02552f72275634a9f6c0788c570.tar.gz jumpstorm-619a039942c3c02552f72275634a9f6c0788c570.zip |
very basic websocket setup
Diffstat (limited to 'client/src/routes/Home.svelte')
-rw-r--r-- | client/src/routes/Home.svelte | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/client/src/routes/Home.svelte b/client/src/routes/Home.svelte index 935ed69..9ada10e 100644 --- a/client/src/routes/Home.svelte +++ b/client/src/routes/Home.svelte @@ -2,8 +2,11 @@ import GameCanvas from "../components/GameCanvas.svelte"; import LeaderBoard from "../components/LeaderBoard.svelte"; - let width: number = 600; - let height: number = 800; + import { Miscellaneous } from "@engine/config"; + + let width: number = Miscellaneous.WIDTH; + let height: number = Miscellaneous.HEIGHT; + </script> <div class="centered-game"> |