Game Logic and Organization

What could be the right way to organize and load different maps. Things like storing maps, loading maps, reload map, instantiating assets, game modes and etc.

I was thinking about something like a game manager that stores and manages the game states. Also storing maps(assets) as arrays maybe?

I think you basically just store your levels as objects/arrays of all your assets and have a function that packs/unpacks the target level at runtime.

I wager there’s many strategies, love to hear if anybody has best practices wisdom. I’m leveraging holding level data in each: an s3 bucket, web storage, static precomputed data served from the app server, and in memory during runtime.