diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2023-02-27 22:35:28 +0100 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2023-02-27 22:35:28 +0100 |
| commit | 4db4b5791cd1359519933871ab65412acafb71d7 (patch) | |
| tree | 24c9b78757e23793384481691745c8d3ff0db621 /src/consts.ts | |
| parent | 9f7331ca8b60cd91ee2493fa1872410c5755d1bd (diff) | |
| download | 1942-4db4b5791cd1359519933871ab65412acafb71d7.tar.gz 1942-4db4b5791cd1359519933871ab65412acafb71d7.tar.zst 1942-4db4b5791cd1359519933871ab65412acafb71d7.zip | |
v1.1.0
Refactor of loading screen
Faster loading time by concurently awaiting all promises
Minor bug fix
Added litle help menu at the start of the game
Diffstat (limited to 'src/consts.ts')
| -rw-r--r-- | src/consts.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/consts.ts b/src/consts.ts index 9b67159..5f1cc62 100644 --- a/src/consts.ts +++ b/src/consts.ts @@ -1,6 +1,7 @@ export const canvas = document.querySelector<HTMLCanvasElement>('canvas')! export const ctx = canvas.getContext("2d")! ctx.imageSmoothingEnabled = false; +export const helpTxt = document.getElementsByTagName("h1")[0]! export const PLAYER_SIZE = 20; // canvas-dot export const PLAYER_VEL = 3; // canvas-dot / frame |
