Hi I need some ideas on would be an appropriate design pattern for the following scenario
I have a game engine and the game has different levels which execute those a modules for each level, but I want the ability for my game to pick up new levels dropped in the Game play folder. Each new level would require a new game play module for instance. I do not want to change the code of the game engine instead I would just want to add the new level to some kind of a config and the game should be to execute the new game play module for that level
In my head I am thinking either the Command Pattern or the composite pattern
Aucun commentaire:
Enregistrer un commentaire