My game currently only restarts on the same tilemap, even when the key is set to level-2.
I'm trying to figure out the best way to implement multiple levels. I attempted a solution where "level-2" was designated as the key, but the tilemap failed to update.
Would it be more logical to create a new stage for each level? I tried that approach, but ran into issues with importing the player in game.ts.
Is there a simpler way to solve this by simply restarting the scene?
game.ts :
import { Scene } from "phaser";
import Scenes from "./";
import { Player } from "../objects";
// Additional code continues...
gameManager :
import { Scene } from "phaser";
import { Player } from "../objects";
import Scenes from "../scenes";
// More code follows...