Refactor the LevelManager into a module like textures #59
Closed
opened 2 months ago by zedshaw
·
0 comments
Loading…
Reference in new issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Currently I have the level management and the current game level everywhere, which makes sense because it's a core thing in the game. Based on that it'd be better if LevelManager was a module, System just accessed it directly, and nothing else had a reference to the current level. Anything that needs the current level goes through the levelmanager module, or uses System.
That could also be the protocol: Nothing actually has the current level, levelmanager is basically a database, and Sytem is in charge of managing it.