Skip to content

Commit

Permalink
fix(cryptothrone.com): reverting to the older loadmap function.
Browse files Browse the repository at this point in the history
  • Loading branch information
h0lybyte committed Nov 10, 2024
1 parent aea5da6 commit 5017455
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions apps/cryptothrone.com/src/components/game/scene/SandCity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ export class SandCity extends Scene {
let cloudCityTilemap: Phaser.Tilemaps.Tilemap | null = null;

try {
await mapDatabase.prepareMapLoad('cloud-city-map');
cloudCityTilemap = await mapDatabase.loadNewMap(
this,
'cloud-city-map',
5,
12,
);
// await mapDatabase.prepareMapLoad('cloud-city-map');
// cloudCityTilemap = await mapDatabase.loadNewMap(
// this,
// 'cloud-city-map',
// 5,
// 12,
// );
cloudCityTilemap = await mapDatabase.loadMap(this, 'cloud-city-map');
} catch (error) {
Debug.error('Failed to load map:', error);
return;
Expand Down

0 comments on commit 5017455

Please sign in to comment.