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