blob: b419c2eff4f6d64a9b8af55b0380ebef0a7d430d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include <utility>
#include <raylib.h>
#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();
}
|