summaryrefslogtreecommitdiff
path: root/engine/src/Clock.cpp
blob: 956f9c4d669288c015fc6582a33d9eb6dbd4e6fa (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
28
#include <kurator/engine/Clock.h>

#include <raylib.h>


namespace kurator
{
namespace engine
{


Clock::Clock()
{
	update();
}


void
Clock::update()
{
	ui = GetFrameTime();
	dt = ui * time_factor;
	game += dt;
}


}  // namespace engine
}  // namespace kurator