Added code comment

This commit is contained in:
Dennis Postma 2024-10-25 22:25:49 +02:00
parent f75528b2af
commit 5128aa83f9

View File

@ -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) => {