From 5128aa83f92efc25f40b1b299386d396ccc69267 Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Fri, 25 Oct 2024 22:25:49 +0200 Subject: [PATCH] Added code comment --- src/screens/Game.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/screens/Game.vue b/src/screens/Game.vue index 0952660..a77d9a2 100644 --- a/src/screens/Game.vue +++ b/src/screens/Game.vue @@ -79,6 +79,10 @@ function preloadScene(scene: Phaser.Scene) { scene.load.image('blank_tile', '/assets/zone/blank_tile.png') scene.load.image('waypoint', '/assets/waypoint.png') + /** + * We're using rex-await-loader to load assets asynchronously + * Phaser does not support this out of the box, so we're using this plugin + */ scene.load.rexAwait(async function (successCallback) { await assetManager.getAssetsByGroup('tiles').then((assets) => { assets.forEach((asset) => {