For my game I want multiple levels using the same tileset, but different layouts (defined using tiled).
What is the best way to organise my game code to achieve this?
Right now I’m trying a weird approach where I add the player and particles in the ‘gameScene’ class and the level specific stuff in the ‘levelOne’ scene class and running them in parralel, but it’s pretty confusing.
Should I just make each level it’s complete own scene, even if it means repeating the preloading of images and defining physics groups (for tiled objects)?
I already have the player movement and controls in a seperate class, which definetly is a good first step.
TLDR: Just need some guidance on how to start organising my code for a level-based game using scenes and classes. Thanks!