]> git.lizzy.rs Git - shadowclad.git/blob - src/game/game.c
Add copyright and license notices in source code
[shadowclad.git] / src / game / game.c
1 /**
2  * Copyright 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 "game.h"
10
11 #include "engine/input.h"
12
13 #include "input.h"
14 #include "level.h"
15 #include "player.h"
16
17 void initGame() {
18         initLevel();
19         initPlayer();
20         startLevel();
21
22         setKeyboardInputCallback(keyboardInput);
23 }
24
25 void update(float delta) {
26         updatePlayer(delta);
27 }