From 4db4b5791cd1359519933871ab65412acafb71d7 Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Mon, 27 Feb 2023 22:35:28 +0100 Subject: 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 --- src/consts.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/consts.ts') 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('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 -- cgit v1.3.1