diff options
author | David Thompson <dthompson2@worcester.edu> | 2023-10-23 21:23:58 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2023-10-23 21:23:58 -0400 |
commit | 9cc06fcb9e4e2f57b4cfd132119cf1fb20afe6fc (patch) | |
tree | f931cc705519c30b433ce2db8a52c8bfdf8a1ef0 /boot.js | |
parent | ba705ff0d1de68d36be42330784ab3ab6812c8ea (diff) |
Resize canvas to fit window size, rewrite enemies.
Diffstat (limited to 'boot.js')
-rw-r--r-- | boot.js | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -16,6 +16,15 @@ async function load() { const mod = await SchemeModule.fetch_and_instantiate("game.wasm", {}, { window: { + get() { + return window; + }, + innerWidth() { + return window.innerWidth; + }, + innerHeight() { + return window.innerHeight; + }, requestAnimationFrame(proc) { window.requestAnimationFrame(wrapProc(proc)); }, |