#include #include #include "DumpSource.h" #include "Reader.h" #include "View.h" int main(int argc, char* argv[]) { InitWindow(800, 600, "Derelict"); { SetWindowState(FLAG_WINDOW_RESIZABLE); SetTargetFPS(60); DumpSource source("sample.json"); auto grids = Reader::read(source); View view(std::move(grids)); while (!WindowShouldClose()) { view.update(GetFrameTime()); view.draw(); } } CloseWindow(); }