about summary refs log tree commit diff stats
path: root/html/rogue/js/game.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/rogue/js/game.js')
-rw-r--r--html/rogue/js/game.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/html/rogue/js/game.js b/html/rogue/js/game.js
index 427fab2..48133d8 100644
--- a/html/rogue/js/game.js
+++ b/html/rogue/js/game.js
@@ -7,11 +7,11 @@ const state = {
     ctx: null
 };
 
-function init() {
+async function init() {
     state.canvas = document.getElementById('gameCanvas');
     state.ctx = state.canvas.getContext('2d');
     
-    player.init();
+    await player.init();
     Debug.init();
     
     function resize() {
@@ -118,4 +118,4 @@ function handleClick(event) {
     }
 }
 
-init();
\ No newline at end of file
+init().catch(console.error);
\ No newline at end of file