Refactor the LevelManager into a module like textures #59

Closed
opened 2025-07-07 16:03:28 +00:00 by zedshaw · 0 comments
zedshaw commented 2025-07-07 16:03:28 +00:00 (Migrated from lcthw.dev)

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.

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.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: games/raycaster#59
No description provided.