From f47b2e3f68e69238b731d6183e739805db20ae5b Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 14 Feb 2021 20:25:55 +0100 Subject: Control a ship that can fire missiles --- src/screen.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/screen.ts (limited to 'src/screen.ts') diff --git a/src/screen.ts b/src/screen.ts new file mode 100644 index 0000000..930534e --- /dev/null +++ b/src/screen.ts @@ -0,0 +1,4 @@ +let canvas = document.querySelector('canvas') as HTMLCanvasElement + +export let width: number = canvas.width +export let height: number = canvas.height -- cgit v1.2.3