aboutsummaryrefslogtreecommitdiff
path: root/src/screen.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.ts')
-rw-r--r--src/screen.ts4
1 files changed, 4 insertions, 0 deletions
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