blob: 96f5e23067a1bd0572f7250ba851a3fcfc779694 (
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 = Reader::read(source);
View view(std::move(grids));
while (!WindowShouldClose())
{
view.update(GetFrameTime());
view.draw();
}
}
CloseWindow();
}
|