]> git.lizzy.rs Git - shadowclad.git/blob - src/main.c
Add copyright and license notices in source code
[shadowclad.git] / src / main.c
1 /**
2  * Copyright 2018-2020 Iwo 'Outfrost' Bujkiewicz
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
8
9 #include "engine/engine.h"
10
11 #include "game/game.h"
12
13 int main(/*int argc, char** argv*/) {
14         EngineConfig cfg = { .windowWidth = 1280,
15                              .windowHeight = 720,
16                              .windowTitle = newString("shadowclad"),
17                              .swapInterval = 1 };
18
19         // Engine startup
20         init(cfg);
21
22         initGame();
23
24         // Main update loop
25         run(update);
26
27         // Shutdown
28         terminate();
29         return 0;
30 }