I am new to phaser and wanted to ask something fundamental. What is the best way to switch from one level to the next?
I currently, use the same scene object and call restart once the level changes. As the level index is incremented, the create() function creates a new level based on my configuration.
Is this a proper way or should I create a new scene for each level or maybe there is a better way…
I don’t know that I can confirm that your approach is a best practice, but I can confirm that I’ve done things your way and its worked well for me. I currently pass whatever level data I need to into the restart call and use that in my Scene’s create method to construct the level.
The way you describe seems perfectly fine and convenient. One can say it can be the fundamental way to achieve level management.
I don’t see connection between your sprite sharpness issue and level management via scene restart. Can you elaborate a bit and probably in another post if it is not related to this topic please?