Now have a working config manager that can exist in the world properly.
This commit is contained in:
parent
f6ddf4b03b
commit
ddf1ba955c
5 changed files with 46 additions and 6 deletions
3
main.cpp
3
main.cpp
|
@ -54,6 +54,9 @@ void configure_world(DinkyECS::World &world, Map &game_map) {
|
|||
int main() {
|
||||
DinkyECS::World world;
|
||||
|
||||
Config config("./assets/config.json");
|
||||
world.set_the<Config>(config);
|
||||
|
||||
Map game_map(GAME_MAP_X, GAME_MAP_Y);
|
||||
game_map.generate();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue