map handling redesign #13

Open
opened 2025-12-17 08:02:46 +01:00 by MiauRizius · 0 comments
Owner

Currently you cannot really handle lightning (or environment in general) differently on different maps because they‘re only stored as enum with a name so the program can find the file in the assets/maps folder.
Maybe adding a class for every map (using an interface or an abstract class) with different environment handling.
Additionally, you could move the AssetSetter to these objects so the methods in the now existing assetsetter won‘t be an eternity long.
Maybe you could also add a worldhandler where all map objects are stored for easy access from the panel.

Currently you cannot really handle lightning (or environment in general) differently on different maps because they‘re only stored as enum with a name so the program can find the file in the `assets/maps` folder. Maybe adding a class for every map (using an interface or an abstract class) with different environment handling. Additionally, you could move the [AssetSetter](https://git.miaurizius.de/MiauRizius/JGame2D/src/branch/main/src/de/miaurizius/jgame2d/core/handlers/AssetSetter.java) to these objects so the methods in the now existing assetsetter won‘t be an eternity long. Maybe you could also add a worldhandler where all map objects are stored for easy access from the panel.
MiauRizius added the
Kind/Enhancement
Reviewed
Confirmed
1
Priority
Critical
1
labels 2025-12-17 08:02:46 +01:00
MiauRizius self-assigned this 2025-12-17 08:02:46 +01:00
Sign in to join this conversation.
No description provided.