Basic config system from a json file but it's got serious issues. Can't copy construct it because of the variable blocking copying, and it can't even be put into the dinkyecs in any way.
This commit is contained in:
parent
24b1e4a500
commit
0ba789697a
7 changed files with 93 additions and 5 deletions
4
main.cpp
4
main.cpp
|
@ -6,6 +6,7 @@
|
|||
#include "dbc.hpp"
|
||||
#include "collider.hpp"
|
||||
#include "render.hpp"
|
||||
#include "config.hpp"
|
||||
|
||||
#include "ftxui/screen/terminal.hpp" // for SetColorSupport, Color, TrueColor
|
||||
|
||||
|
@ -53,11 +54,14 @@ void configure_world(DinkyECS::World &world, Map &game_map) {
|
|||
int main() {
|
||||
Terminal::SetColorSupport(Terminal::Color::TrueColor);
|
||||
DinkyECS::World world;
|
||||
|
||||
Map game_map(GAME_MAP_X, GAME_MAP_Y);
|
||||
game_map.generate();
|
||||
|
||||
configure_world(world, game_map);
|
||||
System::init_positions(world);
|
||||
|
||||
GUI gui(world, game_map);
|
||||
|
||||
return gui.main();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue